Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Burla 2560 posts 8256 karma points
    Oct 27, 2009 @ 20:14
    Anders Burla
    0

    Creating a package?

    Is there a wiki or guide how to create a package?

    Found this http://our.umbraco.org/wiki/reference/packaging/package-actions

    But i think it is all the actions, but need to know from the start how to create a package for umbraco v4. Any umbraco dude know where to find info? :)

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Oct 27, 2009 @ 20:34
    Richard Soeteman
    4

    Hi,

    Don't think there is real documentation on this topic. But it's really easy to create a package. Go to the developer section. right click packages, select create. then follow the wizard, you can include items such as doctypes/templates/macros content etc. ands select files that you want to include in your package. Then as an addition you can use package actions to automate stuff. Powerful functionality but not necessary when building a package.

    Cheers,

    Richard

  • skiltz 501 posts 701 karma points
    Oct 27, 2009 @ 20:37
    skiltz
    0

    In v4 you can go to the Developers section - right mouse click on packages and click "new". 

  • Anders Burla 2560 posts 8256 karma points
    Oct 27, 2009 @ 21:54
    Anders Burla
    0

    Thanks!

    Is it possible to create nested documentTypes from a package? Lets say a "base" document type and "child" document type that has "base" as parent?

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Oct 27, 2009 @ 22:07
    Richard Soeteman
    0

    Don''t think atm I have read somewhere that this might be possible with 4.1.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 28, 2009 @ 04:00
    Aaron Powell
    0

    It's currently not possible in 4.1 still. Long story short, no one has had enough time to look into it.

    If anyone does one to do it submit a patch!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Oct 28, 2009 @ 09:16
    Jeroen Breuer
    0

    Its possible if you use a workaround. The document types are stored in alphabetical order in the xml the package generates. When you have a base document type it should be in a higher order (for example starting with the letter "a") then its child document type (for example starting with the letter "b"). This way the child document type will be placed under its parent.

    Another way is to first create a package which contains all base document types and then create a second package with all child document types. This way if the base document types already exists the child document types will always be placed under the base document type.

    A third way (which I haven't tested yet) is to just adjust the xml in the package and change the order of the document types so al the base document types are created first.

    Hope this helps.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Oct 28, 2009 @ 09:35
    Jeroen Breuer
    1

    I've also created several workitems related to the umbraco packages:

    Package datatype bug

    Sort order document type tabs after package installment

    Master Content Type in package bug

    Please vote for these workitems. 

  • Patrik Örngren 3 posts 23 karma points
    Jan 09, 2010 @ 16:48
    Patrik Ă–rngren
    0

    Hi!

    Neewbie as I am I tryi to create a package since I have (locally) created a site with a MS SQL database and now I need to migrate it to MySQL due to lack of MS SQL support with my webhost. :(

    However, I cannot seem to succed. When I save it says ok, but when I click save and publish I get an confirmation message that Save failed and I should check the Umbraco log. The only way I figured out to check the log is to check in the database and I didn't get any wiser from that.

    It seems that the majority of you nice people out there are producing packages without a breeze so any pointers would be much appreciated.

    Thanx!

    /Patrik

  • Ewan Duthie 12 posts 32 karma points
    May 13, 2010 @ 11:59
    Ewan Duthie
    0

    Hi

    Sorry to bump an old thread. I'm experiencing the same as Patrik - I can save but not publish, to get the .zip file. I think it might be the package URL field I'm not filling out correctly. What URL should this field take exactly?

    thanks

    Ewan

  • Ewan Duthie 12 posts 32 karma points
    May 13, 2010 @ 15:05
    Ewan Duthie
    0

    Anyone? :)

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 13, 2010 @ 16:49
    Sebastiaan Janssen
    0

    Just any old URL will do. But make sure to check the umbracoLog table or Windows Event Log to see any errors that you might be getting.

  • Ewan Duthie 12 posts 32 karma points
    May 13, 2010 @ 17:13
    Ewan Duthie
    0

    Hi Sebastiaan, thanks.

    Windows event log gives these details.

    Log Name:      Application

    Source:        ASP.NET 2.0.50727.0

    Date:          13/05/2010 12:11:55

    Event ID:      1309

    Task Category: Web Event

    Level:         Warning

    Keywords:      Classic

    User:          N/A

    Computer:      Ewan-PC

    Description:

    Event code: 3005 

    Event message: An unhandled exception has occurred. 

    Event time: 13/05/2010 12:11:55 

    Event time (UTC): 13/05/2010 11:11:55 

    Event ID: eb40cb501b454eafada1d7d8ff73202c 

    Event sequence: 2 

    Event occurrence: 1 

    Event detail code: 0 

     

    Application information: 

        Application domain: 1a021417-3-129182227150849609 

        Trust level: Full 

        Application Virtual Path: / 

        Application Path: C:\Websites\websiteaddr.com\ 

        Machine name: EWAN-PC 

     

    Process information: 

        Process ID: 3876 

        Process name: WebDev.WebServer.EXE 

        Account name: Ewan-PC\Ewan 

     

    Exception information: 

        Exception type: ArgumentException 

        Exception message: Item has already been added. Key in dictionary: 'RegEx'  Key being added: 'RegEx' 

     

    Request information: 

        Request URL: http://localhost:29504/umbraco_client/ui/jquery.js ;

        Request path: /umbraco_client/ui/jquery.js 

        User host address: 127.0.0.1 

        User:  

        Is authenticated: False 

        Authentication Type:  

        Thread account name: Ewan-PC\Ewan 

     

    Thread information: 

        Thread ID: 10 

        Thread account name: Ewan-PC\Ewan 

        Is impersonating: False 

        Stack trace:    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)

       at System.Collections.Hashtable.Add(Object key, Object value)

       at System.Configuration.Provider.ProviderCollection.Add(ProviderBase provider)

       at UrlRewritingNet.Configuration.Provider.UrlRewritingProviderCollection.Add(ProviderBase provider)

       at UrlRewritingNet.Web.UrlRewriting.Initialize()

       at UrlRewritingNet.Web.UrlRewriting.CreateRewriteRule(String providerName)

       at UrlRewritingNet.Web.UrlRewriteModule.Init(HttpApplication context)

       at System.Web.HttpApplication.InitModulesCommon()

       at System.Web.HttpApplication.InitModules()

       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)

       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)

       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)

       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

     

     

    Custom event details: 

     

    Event Xml:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

      <System>

        <Provider Name="ASP.NET 2.0.50727.0" />

        <EventID Qualifiers="32768">1309</EventID>

        <Level>3</Level>

        <Task>3</Task>

        <Keywords>0x80000000000000</Keywords>

        <TimeCreated SystemTime="2010-05-13T11:11:55.000000000Z" />

        <EventRecordID>519933</EventRecordID>

        <Channel>Application</Channel>

        <Computer>Ewan-PC</Computer>

        <Security />

      </System>

      <EventData>

        <Data>3005</Data>

        <Data>An unhandled exception has occurred.</Data>

        <Data>13/05/2010 12:11:55</Data>

        <Data>13/05/2010 11:11:55</Data>

        <Data>eb40cb501b454eafada1d7d8ff73202c</Data>

        <Data>2</Data>

        <Data>1</Data>

        <Data>0</Data>

        <Data>1a021417-3-129182227150849609</Data>

        <Data>Full</Data>

        <Data>/</Data>

        <Data>C:\Websites\websiteaddr.com\</Data>

        <Data>EWAN-PC</Data>

        <Data>

        </Data>

        <Data>3876</Data>

        <Data>WebDev.WebServer.EXE</Data>

        <Data>Ewan-PC\Ewan</Data>

        <Data>ArgumentException</Data>

        <Data>Item has already been added. Key in dictionary: 'RegEx'  Key being added: 'RegEx'</Data>

        <Data>http://localhost:29504/umbraco_client/ui/jquery.js</Data>;

        <Data>/umbraco_client/ui/jquery.js</Data>

        <Data>127.0.0.1</Data>

        <Data>

        </Data>

        <Data>False</Data>

        <Data>

        </Data>

        <Data>Ewan-PC\Ewan</Data>

        <Data>10</Data>

        <Data>Ewan-PC\Ewan</Data>

        <Data>False</Data>

        <Data>   at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)

       at System.Collections.Hashtable.Add(Object key, Object value)

       at System.Configuration.Provider.ProviderCollection.Add(ProviderBase provider)

       at UrlRewritingNet.Configuration.Provider.UrlRewritingProviderCollection.Add(ProviderBase provider)

       at UrlRewritingNet.Web.UrlRewriting.Initialize()

       at UrlRewritingNet.Web.UrlRewriting.CreateRewriteRule(String providerName)

       at UrlRewritingNet.Web.UrlRewriteModule.Init(HttpApplication context)

       at System.Web.HttpApplication.InitModulesCommon()

       at System.Web.HttpApplication.InitModules()

       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)

       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)

       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)

       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

    </Data>

      </EventData>

    </Event>

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 13, 2010 @ 17:18
    Sebastiaan Janssen
    0

    Is this related to you creating the package? Does the same error show up now when you try to create another package?

    I just read that this error is caused by the url rewriter, have a look at this article by Ismael.

  • Ewan Duthie 12 posts 32 karma points
    May 14, 2010 @ 15:21
    Ewan Duthie
    0

    Hi

    I've replaced the files but still not getting any further.

    UmbracoLog says:

    Error CreatedPackage.cs System.ArgumentException: No node exists with id '1067'at umbraco.cms.businesslogic.CMSNode.setupNode()at umbraco.cms.businesslogic.web.DocumentType.ToXml(XmlDocument xd)at umbraco.cms.businesslogic.packager.CreatedPackage.Publish()
  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 18, 2010 @ 06:41
    Kurniawan Kurniawan
    0

    How about V4.5 ? I can't find umbraco/config/create/ui.xml ?

    The create dialog for "packager" does not match anything defined in the "~/umbraco/config/create/UI.xml". This could mean an incorrectly installed package or a corrupt UI file

     

    Thanks

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 18, 2010 @ 09:16
    Sebastiaan Janssen
    0

    Kurniawan: This is a little bug (known), open up the Packages tree and right click on "Created packages". Then choose "Create" and the correct dialog will pop up.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 18, 2010 @ 09:29
    Kurniawan Kurniawan
    0

    Yes.. that's works now.. But I can't see anything after

    entering the name and hit "enter". and when I hit "Created Pakage" node
    I still get this error.

    Root element is missing.

     

    ====

    What is it suppose to be to work ?

    any reference how to create a package ?

    Is package different with startup kit ?

     

    Thanks

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 18, 2010 @ 09:32
    Sebastiaan Janssen
    0

    You should be getting a form in which you can create a new package. Check the umbracoLog table to see if there are any errors.

    A "startup kit" sounds like something that you would install (through "Install local package"). A package is some custom code that you have already created and want to bundle to share with others.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 18, 2010 @ 09:39
    Kurniawan Kurniawan
    0

    It can show me create package dialog.
    But After I enter the name of my custom package. and I hit "Create" Button.

    It close the dialog box. and do nothing.. and nothing is change.

    If I see the umbraco log.. there is these errors.

    ========= First ERROR ======

    * System.Xml.XmlException: Root element is missing.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at System.Xml.XmlDocument.Load(String filename)
       at umbraco.cms.businesslogic.packager.data.Reload(String dataSource)
       at umbraco.cms.businesslogic.packager.data.MakeNew(String Name, String dataSource)

     

    ========= 2nd ERROR ======

    At /umbraco/developer/packages/editPackage.aspx?id=0 (Referred by: http://localhost:1113/umbraco/create.aspx?nodeId=-1&nodeType=createdPackages&nodeName=Created packages&rnd=6.7&rndo=7.2): System.Xml.XmlException: Root element is missing.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at System.Xml.XmlDocument.Load(String filename)
       at umbraco.cms.businesslogic.packager.data.Reload(String dataSource)
       at umbraco.cms.businesslogic.packager.data.GetFromId(Int32 Id, String dataSource, Boolean reload)
       at umbraco.cms.businesslogic.packager.data.Package(Int32 id, String datasource)
       at umbraco.cms.businesslogic.packager.CreatedPackage.GetById(Int32 id)
       at umbraco.presentation.developer.packages._Default.Page_Load(Object sender, EventArgs e)
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

    =============3rd===============
    At /umbraco/webservices/TreeDataService.ashx?app=developer&id=-1&treeType=packagerPackages&packageType=created&rnd=88790a08-cb6d-41f8-91cc-76aab713279f&rnd2=84 (Referred by: http://localhost:1113/umbraco/default.aspx?):

     

     

    I guess. I need a config XML for creating package which not available in V 4.5 ?

    any clue ?

     

    Thanks

     

  • Niels Kristiansen 166 posts 382 karma points
    Nov 25, 2010 @ 14:49
    Niels Kristiansen
    0

    There is missing some code in Umbraco version 4.5, so the Package Creation won't work.

    What you need to do is the following:

    Find the following file:
    /App_Data/packages/created/createdPackages.config

    And insert the following code:

    <?xml version="1.0" encoding="utf-8"?>
    <packages>
    </packages>

    For some kind of reason this file was empty when I tried to make a package, I got the same error as you had.

    /Niels

  • Jarred Reynolds 3 posts 23 karma points
    Oct 02, 2012 @ 08:02
    Jarred Reynolds
    0

    This is an old post, but I was having the exact same issue and ran across the post while searching for help.

    In order to successfully publish a new package (without getting the "Save failed" dialog), I removed any data types that were included in a new installation from the package. I did keep all my custom data types. 

    Still not sure what was actually preventing the package from publishing, but I hope this helps anyone who stumbles upon this post like I did.

     

    Thanks,

    Jarred

Please Sign in or register to post replies

Write your reply to:

Draft