"empty trees" symptom after upgrading from 4.0.2.1 to 4.5
Hello
after I've been following this guide to upgrade http://our.umbraco.org/wiki/about/roadmap/umbraco-45/upgrading-to-umbraco-45 I've encounterd a problem when I log in to the Umbraco and want to publish my website I see a empty tree and that's just about it I can change between media settings developer Content and so on but everything else is empty Any suggestions to what I can do to figure out where the problem is ? I've already tried the suggestions in the link.
any help is appreciated as I'm getting close to quitting the upgrade.
When you try to browse the content section do you then see any errors in the browsers console log? Have you tried looking in the umbracoLog table in the database to see if it reveals anything?
Maybe it's also a good idea to reset permissions for the NETWORK SERVICE and IUSR accounts.
And finally it might be a good idea to clear the /app_data/TEMP/ClientDependency folders files as well and recycle the app pool.
Looking forward to hearing from you and hope some of these pointers help.
Ok, maybe there is a /data/ folder then? It's been quite a while since I've been using Umbraco 4.5 and can't remember when the App_Data folder got introduced.
But judging from the above log entries it seem that you perhaps need to try and overwrite the /umbraco folder again?
There is in fact an /App_data/ folder if you unzip it and have a look. So perhaps you missed copying it over when doing the upgrade? I also checked the referenced guideline, which also mentions that this folder should be copied over (among others).
Ah, sorry about the confusion - /TEMP is probably not added until later versions then since I can see that the /ClientDependency folder exists in the /App_Data/ClientDependency path.
So try clearing this directory and recycle the app pool.
okay I did that now and it gave me the same result as before. But the fact that there is a ~ in the middle of this URL tells me that somewhere the is a problem with the files path ? or is this normal behavior to umbraco that there have to be a ~ ?
Yes there are 3 virtual paths but they are paths we use for images but only for images.
the main site is located directly where the IIS expect the webiste to be.
Ok - Just checking since if it was setup as a virtual site it could be the culprit.
But the setup should be fine.
I'm afraid I'm running out of ideas.
When you unzipped the 4.5 version - did you then use the build in zip tool in windows? If so did you then unblock the zip file before doing the upgrade using the unzipped files?
Okay you gave me a link to a page that talk about upgrading umbraco with more to look at I'll start over again make a new branch and then try to follow those guidelines maybe it will fix it.
and it does this a lot in the last one third of this section.
However when I go to the umbraco.aspx these lines of code does not exist so I'm thinking it's because of umbraco that generate something.? so my question is where do I go or how do I correct this in my umbraco installation ?
Hmm, that's weird...u0027 is the character code for apostrophe...so instead of writing parent.ImportMedia("u0027[importMediaFile]\u0027"); you can write parent.ImportMedia('[importMediaFile]').
However this is not something that you should have to do manually though...
Ehm, what character set is being used on your database? Is it running UTF-8?
My thought turned out to be wrong. Just checked my setup at home and it's using the same collation as yours.
Thinking about it it would not make much sense either since it happens in the files and not from the database. Sorry about the confusion.
Would it be possible for you to do a search and replace for the u0027 string and replace it with ' ?
If you can do it for each of the unicode chars that for some reason appears in your files then it might solve the issue? I know it's not ideal but it's worth trying out I think.
You have not been editing some of the files by hand during the upgrade process for some reason? I'm a bit puzzled as to why you're having these weird signs in them.
how can I replace it ? I've tried javascript but realized that it's a object that I receive that generate the text.
then I tried to look at the source to trace it I found a place were I might would had been able to but it seems that the string is not containing any u0027 at that point. I'm still trying to figure this out but I also realize that the /u003 is a < and that it seems all special characters need to be replaced, that's a lot of work if we don't have a easy way to do it.
I'm getting to the point where I'm thinking I should install Umbraco 4.11.10 and then just make a copy past of the things I have made my self to recreate the site from the bottom up I'm thinking there is a bigger success chance at that, as well as it would force me to rethink some of the old ways. I know it's probably more work than upgrading but at least then I might not upgrade in to a error like this ?
Sorry about the late answer. Yeah I'm also a bit unsure what is going on and where it might be worth looking in order to be able to get the output rendered correctly.
I think that making a clean installation would probably be a good choice. Perhaps CMS import can be of any use in order to migrate the content.
But as you mention you need to be aware of several things when doing so. But those would probably be the same issues you would be facing if the upgrade succeeded.
You need to think about 3rd party package compatibility if you rely on some of those. Since the Multinode Tree Picker from uComponents has been made a part of the core since the 4.8 release you need to research how you should go about dealing with this potential issue.
And if you're making use of the Umbraco API you probably need to check if things still work as expected or if you might need to refactor,
I would like to thank you for your support on this subject even we didn't find the solution at least now I've gotten a lot further with just making a fresh install.
I've got a different issue with that but I'll start a separate topic on that as it have moved away from this topic by a lot.
Yeah, I'm sorry that we were not able to figure out this specific issue. But sometimes it's also a bit hard to figure out what is going on when one don't have the "hands in the dirt" so to speak :)
I've added a few suggestions to the other topic as well.
"empty trees" symptom after upgrading from 4.0.2.1 to 4.5
Hello
after I've been following this guide to upgrade
http://our.umbraco.org/wiki/about/roadmap/umbraco-45/upgrading-to-umbraco-45
I've encounterd a problem
when I log in to the Umbraco and want to publish my website I see a empty tree and that's just about it I can change between media settings developer Content and so on but everything else is empty
Any suggestions to what I can do to figure out where the problem is ?
I've already tried the suggestions in the link.
any help is appreciated as I'm getting close to quitting the upgrade.
Hi Steffen and welcome to our :)
When you try to browse the content section do you then see any errors in the browsers console log? Have you tried looking in the umbracoLog table in the database to see if it reveals anything?
Maybe it's also a good idea to reset permissions for the NETWORK SERVICE and IUSR accounts.
And finally it might be a good idea to clear the /app_data/TEMP/ClientDependency folders files as well and recycle the app pool.
Looking forward to hearing from you and hope some of these pointers help.
/Jan
Thanks for your reply
this is what the console log Writes. Clearly something is wrong. at least now I got something to work with :)
Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/createRootFolder.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/createFolder.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/uploadFiles.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/restoreRecycledItem.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/emptyRecycleBin.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/deleteFile.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/importMediaFolder.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/uploadRootFiles.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/extractArchive.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://MyWebserver/umbraco/~/umbraco/filemanager/js/deleteFolder.js Failed to load resource: the server responded with a status of 404 (Not Found)
umbraco.aspx:51 Uncaught SyntaxError: Unexpected token ~
umbraco.aspx:147 Uncaught SyntaxError: Unexpected token ILLEGAL
I cannot find the
/app_data/temp/ libary
we have avoided the use of IUSR we only use the NETWORK SERVICE account and I've recycled the app pool several times with no result
Hi Steffen
Ok, maybe there is a /data/ folder then? It's been quite a while since I've been using Umbraco 4.5 and can't remember when the App_Data folder got introduced.
But judging from the above log entries it seem that you perhaps need to try and overwrite the /umbraco folder again?
How is the website setup in your IIS?
/Jan
Hi Steffen,
Perhaps, the checklist in this blogpost http://www.proworks.com/blog/2011/03/03/notes-and-experiences-upgrading-umbraco-40x-to-461-and-470/ from ProWorks, can help you to get your Umbraco 4.5 installation working. They have found some issue that wasen´t documented in this documentation. http://our.umbraco.org/wiki/install-and-setup/upgrading-an-umbraco-installation
Hope this helps,
/Dennis
Hi Steffen
Just found a the 4.5 vesion of Umbraco at http://code.leekelleher.com/umbraco/archive/ and unzipped it.
There is in fact an /App_data/ folder if you unzip it and have a look. So perhaps you missed copying it over when doing the upgrade? I also checked the referenced guideline, which also mentions that this folder should be copied over (among others).
Hope this helps.
/Jan
yes the app_data is there but the Temp is not.
Hi Steffen
Ah, sorry about the confusion - /TEMP is probably not added until later versions then since I can see that the /ClientDependency folder exists in the /App_Data/ClientDependency path.
So try clearing this directory and recycle the app pool.
/Jan
okay I did that now and it gave me the same result as before.
But the fact that there is a ~ in the middle of this URL tells me that somewhere the is a problem with the files path ? or is this normal behavior to umbraco that there have to be a ~ ?
http://MyWebserver/umbraco/~/umbraco/filemanager/js/createRootFolder.js
Hi Steffen
I'm not sure and that's why I was asking about how the IIS site is configured? :)
Is it setup using virtual paths?
/Jan
you asked How is the website setup in your IIS?
I've set it up to a program group with asp.net 4 and classic. otherwise pretty standard setup.
Yes there are 3 virtual paths but they are paths we use for images but only for images. the main site is located directly where the IIS expect the webiste to be.
Hi Steffen
Ok - Just checking since if it was setup as a virtual site it could be the culprit.
But the setup should be fine.
I'm afraid I'm running out of ideas.
When you unzipped the 4.5 version - did you then use the build in zip tool in windows? If so did you then unblock the zip file before doing the upgrade using the unzipped files?
/Jan
Yes I did and yes I unblocked it before I unzipped it.
Okay you gave me a link to a page that talk about upgrading umbraco with more to look at I'll start over again make a new branch and then try to follow those guidelines maybe it will fix it.
Your help have been very appreciated.
Hi Steffen
Sounds like a good plan - It's hard when you don't have the thing in front of yourself and can see exactly how everything has been done :)
But please let us know how the second attempt is going.
Cheers, Jan
Well I did this now Still have the same problem
however got to reduce the problem to this from the first time.
when I look at the location in the file I get this looking through the browser this is line 156:
when I look in the file through visual studio this is line 156:
Hi Steffen
Could it be an issue with the character set used in the database schema perhaps? Are you using MySQL or MSSQL?
/Jan
I'm using mssql Database. How do I resolve such a conflict ? I'm Mildly said not that experienced with database schema.
I have found the specific Illegal character.
should have been like this
and it does this a lot in the last one third of this section.
However when I go to the umbraco.aspx these lines of code does not exist so I'm thinking it's because of umbraco that generate something.? so my question is where do I go or how do I correct this in my umbraco installation ?
Hi Steffen
Hmm, that's weird...u0027 is the character code for apostrophe...so instead of writing parent.ImportMedia("u0027[importMediaFile]\u0027"); you can write parent.ImportMedia('[importMediaFile]').
However this is not something that you should have to do manually though...
Ehm, what character set is being used on your database? Is it running UTF-8?
/Jan
I've found with some help from a coworker that we are running the database as collation DanishNorwegianCI_AS
we can't find anywhere where it says UTF-8
Hi Steffen
Hmm...when I get home from work today I can try checking what my charset usually is.
But I have a suspicion it might be a unicode issue somehow.
Unfortunately I don't have access to an Umbraco installation at work currently.
/Jan
so Assuming it's a Unicode Issue how do I resolve that ?
Hi Steffen
My thought turned out to be wrong. Just checked my setup at home and it's using the same collation as yours.
Thinking about it it would not make much sense either since it happens in the files and not from the database. Sorry about the confusion.
Would it be possible for you to do a search and replace for the u0027 string and replace it with ' ?
If you can do it for each of the unicode chars that for some reason appears in your files then it might solve the issue? I know it's not ideal but it's worth trying out I think.
You have not been editing some of the files by hand during the upgrade process for some reason? I'm a bit puzzled as to why you're having these weird signs in them.
/Jan
how can I replace it ? I've tried javascript but realized that it's a object that I receive that generate the text. then I tried to look at the source to trace it I found a place were I might would had been able to but it seems that the string is not containing any u0027 at that point. I'm still trying to figure this out but I also realize that the /u003 is a < and that it seems all special characters need to be replaced, that's a lot of work if we don't have a easy way to do it.
I'm getting to the point where I'm thinking I should install Umbraco 4.11.10 and then just make a copy past of the things I have made my self to recreate the site from the bottom up I'm thinking there is a bigger success chance at that, as well as it would force me to rethink some of the old ways. I know it's probably more work than upgrading but at least then I might not upgrade in to a error like this ?
Hi Steffen
Sorry about the late answer. Yeah I'm also a bit unsure what is going on and where it might be worth looking in order to be able to get the output rendered correctly.
I think that making a clean installation would probably be a good choice. Perhaps CMS import can be of any use in order to migrate the content.
But as you mention you need to be aware of several things when doing so. But those would probably be the same issues you would be facing if the upgrade succeeded.
You need to think about 3rd party package compatibility if you rely on some of those. Since the Multinode Tree Picker from uComponents has been made a part of the core since the 4.8 release you need to research how you should go about dealing with this potential issue.
And if you're making use of the Umbraco API you probably need to check if things still work as expected or if you might need to refactor,
Hope some of these pointers are useful after all.
/Jan
I would like to thank you for your support on this subject even we didn't find the solution at least now I've gotten a lot further with just making a fresh install.
I've got a different issue with that but I'll start a separate topic on that as it have moved away from this topic by a lot.
Hi Steffen
Yeah, I'm sorry that we were not able to figure out this specific issue. But sometimes it's also a bit hard to figure out what is going on when one don't have the "hands in the dirt" so to speak :)
I've added a few suggestions to the other topic as well.
Hope we figure that one out though! :)
/Jan
is working on a reply...