I've just upgraded my umbraco 4.0.x to the new version 4.5.1 and everything went smooth as expected. However, when I try to publish my site I get the following error:
Table 'myDbName.CMSPREVIEWXML' doesn't exist
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
So far so good, I've tried to create the missing table in the database myself. While it seems to actually work, there's some trouble with the fact that MySQL can't have a clustered primary key which makes Umbraco try to insert records that already exists in the database.
I don't know if this will help or not, but back when I was test Umbraco 4.1 beta II had to create that table myself as well. I used the code mentioned on my blog, which seemed to work for me, including a clustered primary key.
Thats just perfect, webanglo! Just what I needed! :) Deleted the table I made myself and ran your script and it works right out of the box. Thanks a lot!
Now my only trouble is, that my xslt macros are not working.. Seems like it can be a little steep updating from an old version of umbraco to a new one ;)
Great I'm glad it worked. On the macros, you can set the UseLegacyXMLSchema setting in your umbraco.config, but I would only recommend doing that if you don't want to use the new XML structure in the future. The better option would be to update your macro's to use the new schema. Did you look at these two pages?
I also noticed the problem with the missing table when upgrading a site.. shouldn't this be included in the 4.5.1 if this has been a known problem for everyone with MySQL..? Little strange that this was not fixed in the update.
Umbraco 4.5.1 Table 'myDbName.CMSPREVIEWXML' doesn't exist
Hi fellow Umbraco users,
I've just upgraded my umbraco 4.0.x to the new version 4.5.1 and everything went smooth as expected. However, when I try to publish my site I get the following error:
Table 'myDbName.CMSPREVIEWXML' doesn't exist
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: MySql.Data.MySqlClient.MySqlException: Table 'myDbName.CMSPREVIEWXML' doesn't exist
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
As you can see, I'm using MySQL and the site is hosted at unoeuro.
Does anyone know of a solution to this?
Thanks in advance!
All the best,
Bo
So far so good, I've tried to create the missing table in the database myself. While it seems to actually work, there's some trouble with the fact that MySQL can't have a clustered primary key which makes Umbraco try to insert records that already exists in the database.
Anyone got a workaround?
I don't know if this will help or not, but back when I was test Umbraco 4.1 beta II had to create that table myself as well. I used the code mentioned on my blog, which seemed to work for me, including a clustered primary key.
http://deeper.webangelo.net/2010/5/28/implemented-umbraco-41-beta-ii-in-mysql.aspx
Thats just perfect, webanglo! Just what I needed! :) Deleted the table I made myself and ran your script and it works right out of the box. Thanks a lot!
Now my only trouble is, that my xslt macros are not working.. Seems like it can be a little steep updating from an old version of umbraco to a new one ;)
Great I'm glad it worked. On the macros, you can set the UseLegacyXMLSchema setting in your umbraco.config, but I would only recommend doing that if you don't want to use the new XML structure in the future. The better option would be to update your macro's to use the new schema. Did you look at these two pages?
http://our.umbraco.org/wiki/about/roadmap/umbraco-45/upgrading-to-umbraco-45
http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/xslt-examples-updated-to-new-schema
I also noticed the problem with the missing table when upgrading a site.. shouldn't this be included in the 4.5.1 if this has been a known problem for everyone with MySQL..? Little strange that this was not fixed in the update.
is working on a reply...