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? :)
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.
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.
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.
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?
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()
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
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.
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.
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 ?
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.
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? :)
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
In v4 you can go to the Developers section - right mouse click on packages and click "new".
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?
Don''t think atm I have read somewhere that this might be possible with 4.1.
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!
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.
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.
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
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
Anyone? :)
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.
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>
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.
Hi
I've replaced the files but still not getting any further.
UmbracoLog says:
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
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.
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
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.
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
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:
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
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
is working on a reply...