2 media folders and recycle bins after 4.9 upgrade
Anyone else experienced the same? Am on sqlce mind you, perhaps there was a db upgrade didnt happen properly during the update.... any known workarounds? all media is also now throwing the error:
Object reference not set to an instance of an object.
I ended up rolling back the bin folder (which fixed things) as Content nodes were also throwing the same error as tinyMceEditor wasnt working either. Keen to find out if these are just sqlce errors or not. I will upgrade a different project later on today (with full sql) and see if I get any of the same issues (will post here if so).
Is there any way I can get Tim or Rich's solutions before the upgrade (or after if not possible) so I can check out what might've gone wrong? sj @ umbraco . dk is where you could send them (admin user/pass would be handy, make sure to change them before you zip it up if it's sensitive info).
After having a good laugh at your razor.. (neh, I didn't even look at it ;-) )
Upgraded that site from 4.7.2 to 4.9.0 and the media section is fine, I can send it back to you if you need.
I think the problem will have occurred in the merge of trees.config, I see a few custom entries in yours that might've given problems when updating. So what I did is take the release version and added the three custom tree entries at the bottom (logmanager, robotstxt and standardvalues). I bet this was the problem.
Also remember to remove the App_global.asax.dll file and apply the uComponents workaround (not that these should cause the double nodes).
Ah cool, thanks,,, good to know where the problem lies. I'll give that a go and see how I get on. I do remember trying to use all the 4.9.0 release configs and still had no joy. I was also having a problem with content nodes also throwing errors, but probably related to the same config issue. Hope this helps you too Rich?
Sorry I haven't had time to look at this since I posted, or get the code over.
Initial thoughts is that I don't think trees.config solves the issue for me as I used the one from 4.9 (I upgraded from 4.6.1) there wasn't one in 4.6.1 to conflict with.
I also emptied the AppTree table, but didn't help.
@Sebastiaan, would you prefer the 4.6.1 version or the 4.9 version with the bug?
Hey Rich, would prefer the 4.6.1 version so I can do the upgrade and see if we're missing steps in the upgrade guides. Don't forget to include a database backup either, thanks! :-)
Just hit the same problem myself, and after a little bit of digging, it comes down to the mediaRecycleBin entry in the tree.config having it's initialize attribute set to true when it should be set to false. Just change it in the xml and all should be fine.
I'm pushing a fix to the core codebase as it's due to a tree atrribute definition not having the initialize set to false, so should be right in future versions (the fix above will work untill then).
HEy all, did anyone fix the prolem of NullObjectReference after the 4.7.2 -> 4.9 upgrade? I was able to get rid of the duplicate media folders, but no luck with the content/media nodes throwing errors:
At /umbraco/editContent.aspx?id=1149 (Referred by: http://[sitename]/umbraco/umbraco.aspx): System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Core.IO.FileSystemProviderManager.GetFileSystemProvider(String alias) at Umbraco.Core.IO.FileSystemProviderManager.GetFileSystemProvider[TProviderTypeFilter]() at umbraco.editorControls.tinyMCE3.webcontrol.TinyMCEWebControl..ctor() at umbraco.editorControls.tinyMCE3.TinyMCE..ctor(IData Data, String Configuration) at umbraco.editorControls.tinyMCE3.tinyMCE3dataType.get_DataEditor() at umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) at umbraco.controls.ContentControl.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at umbraco.controls.ContentControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at umbraco.cms.presentation.editContent.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
At /umbraco/editMedia.aspx?id=1194&isNew=true (Referred by: http://[sitename]/umbraco/create.aspx?nodeId=1141&nodeType=media&nodeName=Footer Images&rnd=66.2&rndo=66.8): System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Core.IO.FileSystemProviderManager.GetFileSystemProvider(String alias) at Umbraco.Core.IO.FileSystemProviderManager.GetFileSystemProvider[TProviderTypeFilter]() at umbraco.editorControls.uploadField..ctor(IData Data, String ThumbnailSizes) at umbraco.editorControls.uploadfield.DataTypeUploadField.get_DataEditor() at umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) at umbraco.controls.ContentControl.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at umbraco.controls.ContentControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at umbraco.cms.presentation.editMedia.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2 media folders and recycle bins after 4.9 upgrade
Anyone else experienced the same?
Am on sqlce mind you, perhaps there was a db upgrade didnt happen properly during the update....
any known workarounds?
all media is also now throwing the error:
Object reference not set to an instance of an object.
I ended up rolling back the bin folder (which fixed things) as Content nodes were also throwing the same error as tinyMceEditor wasnt working either. Keen to find out if these are just sqlce errors or not. I will upgrade a different project later on today (with full sql) and see if I get any of the same issues (will post here if so).
Hi! Did you add the new umbraco, umbraco_client folders as well? Which version where you comming from?
// M
yep, added those folders as well... coming from version 4.7.2
- Tim
Hey Tim,
I have exact same problem http://our.umbraco.org/forum/getting-started/installing-umbraco/34450-Duplicate-Media-Folders-Umbraco-490-after-upgrade
I've tried:
- Deleting all records from 'umbracoAppTree' table
- Removing all 'Media' references from the Trees.config file
Hmm.
Rich
(Hope you're well mate!)
Btw I'm using full SQL Server so I don't think it's SQL CE related.
Rich
Should also say my DB upgrade failed at 35%, was trying to upgrade from 4.6.1
Rich
Raised on Issue tracker http://issues.umbraco.org/issue/U4-787
Rich
Is there any way I can get Tim or Rich's solutions before the upgrade (or after if not possible) so I can check out what might've gone wrong? sj @ umbraco . dk is where you could send them (admin user/pass would be handy, make sure to change them before you zip it up if it's sensitive info).
Have emailed you download details for my project. Don't laugh at my rusty razor :)
After having a good laugh at your razor.. (neh, I didn't even look at it ;-) )
Upgraded that site from 4.7.2 to 4.9.0 and the media section is fine, I can send it back to you if you need.
I think the problem will have occurred in the merge of trees.config, I see a few custom entries in yours that might've given problems when updating. So what I did is take the release version and added the three custom tree entries at the bottom (logmanager, robotstxt and standardvalues). I bet this was the problem.
Also remember to remove the App_global.asax.dll file and apply the uComponents workaround (not that these should cause the double nodes).
Ah cool, thanks,,, good to know where the problem lies. I'll give that a go and see how I get on. I do remember trying to use all the 4.9.0 release configs and still had no joy. I was also having a problem with content nodes also throwing errors, but probably related to the same config issue. Hope this helps you too Rich?
Hey Sebastiaan, Tim,
Sorry I haven't had time to look at this since I posted, or get the code over.
Initial thoughts is that I don't think trees.config solves the issue for me as I used the one from 4.9 (I upgraded from 4.6.1) there wasn't one in 4.6.1 to conflict with.
I also emptied the AppTree table, but didn't help.
@Sebastiaan, would you prefer the 4.6.1 version or the 4.9 version with the bug?
Thanks guys
Rich
Hey Rich, would prefer the 4.6.1 version so I can do the upgrade and see if we're missing steps in the upgrade guides. Don't forget to include a database backup either, thanks! :-)
Hello,
I got the same problem as well upgrading from 472 to 490.
I have seen in the umbraco node table there are two "recyled bin" node.
Is it coming from there ?
Did any find a fix ?
Just hit the same problem myself, and after a little bit of digging, it comes down to the mediaRecycleBin entry in the tree.config having it's initialize attribute set to true when it should be set to false. Just change it in the xml and all should be fine.
I'm pushing a fix to the core codebase as it's due to a tree atrribute definition not having the initialize set to false, so should be right in future versions (the fix above will work untill then).
Matt
Perfect, thank you Matt.
Just don't forget to touch the web.config or restart the application before you can see the fix.
HEy all, did anyone fix the prolem of NullObjectReference after the 4.7.2 -> 4.9 upgrade? I was able to get rid of the duplicate media folders, but no luck with the content/media nodes throwing errors:
Thanks folks,
nik
Sorry for the late reply Nik, looks like you might not have all of the web.config changes.
In configSections, add:
Straight after </configSections> add
And make sure the config\FileSystemProviders.config file is present.
Hey man, thanks for the answer! I shall try that.
-- Nik
is working on a reply...