cannot insert images into content pages since upgrading to 4.7.1!!!!
is anyone experiencing this issue? the images show and in the media picker but when you click on an item the spinner just spins and no items can be selected... arg!!!! need help ASAP, we're supposed to release a new server and website update next week! 4.7.1 seems to have major issues. you should not allow the update message to be display for unofficial releases! 4.7.1 has caused numerous issues!
What steps did you take in upgrading to 4.7.1 on from what version?
Have you checked that the permissions for the Umbraco directory are sufficient?
Have you checked that the app pool in IIS is running integrated mode?
Have you tried deleting the Temporary client dependency files in the app_data/TEMP/clientdependency folder?
Have there been made any form of customization to your old Umbraco version, which could be the source of the trouble you experience?
Please ellaborate a bit more on the process you went through and what your server setup is like. Then it will be much more easy to point you in the right direction.
Jan - thanks for the tips. I've gone through all the steps you mentioned based and nothing appears to have changed after rechecking permissions and other settings you mentioned (I also deleted out the temp dependancy files). no customization has been made that I am aware of. we do have custom datatype and editor controls but those all appear to be functioning correctly.
We're running Umbraco 4.7.1 on a windows 2008 RC2 server (brand new server), SQL Server 2005 located on another server....
Below is the snapshot of the issue (just basically hangs when we try to add an image in the CMS/Tiny MCE)... we have no problems uploading media files...
ok more digging, appears to be crashing in the /umbraco/plugins/tinymce3/insertImage.aspx file at code below... never makes it inside the jQuery function although and image id is passed...
jQuery("#").UmbracoImageViewerAPI().updateImage(id, function(p) { //when the image is loaded, this callback method fires if (p.hasImage) { updateImageSource(p.url, p.alt, p.width, p.height); return; } else { alert("An error occured: Image selected could not be found"); } });
I don't know what could be causing it, but you might try clearing your ClientDependency cache, seems to fix some javascript errors after updates:
- Delete files in /App_Data/TEMP/ClientDependency or /App_Data/ClientDependency - Update the version number in /config/clientDependencyConfig.config - Touch your web.config or recycle your app pool
thx Tom - have tried that numerous times... and just tried again with no luck... I guess I'll copy over all the 4.7.1 files again and see what that does... really stuck between a rock and a hard place here... many thx...
just redownloaded the 4.7.1 files, recopied over all the 4.7.1 /bin, /umbraco and /umbraco_config files, reset IIS and still have the same exact problems... please help?!?!
Hey, something just clicked. It looks like the "Constrain Proportions" checkbox was removed in 4.7.1, which might explain (sort of) the "f.constrain is undefeind" error you are getting. This makes me think that the old javascript is still running, since the new one shouldn't be looking for f.constrain since it's gone.
So I would suggest again make sure you re-copy ALL files and clear the CD again.
Tom - just tried that and it still did not work. are there folders other the /bin, /umbraco, and /umbraco_client that need to be copied? should I completely delete the directories and recopy over the new ones?
just deleted the /umbraco and /umbraco_client directories and copied over all the files from scratch... deleted the cache files, reset IIS and still having the same problem...
Try replacing your tinyMceConfig.config as well temporarily. Then touch your web.config (maybe clear CD cache again just in case). Does yours have anything funky, like "advimage_constrain_proportions" ?
May have been barking up the wrong tree. I get the f.constrain error also, so that shouldn't be causing any problems. It must be with the second line you pasted from insertImage.aspx. Seems strange that there is no ID in the jQuery selector. In the code it's:
Tom... sorry about that I didn't include all the function code... it's located in the /umbraco/plugins/tinymce3/insertImage.aspx file (the dialogHandler function)...
function dialogHandler(id) { if (id != -1) { jQuery("#").UmbracoImageViewerAPI().updateImage(id, function(p) { //when the image is loaded, this callback method fires if (p.hasImage) { updateImageSource(p.url, p.alt, p.width, p.height); return; } else { alert("An error occured: Image selected could not be found"); } }); } }
I can put a javascript alert inside the dialogHandler function and see the id is passed but an alert in the updateImage function in the /umbraco/controls/Images/ImageViewer.js file does not appear to respond so I'm guessing it's somehow related to the UmbracoImageViewerAPI. when I do an alert on that it does tell me an object exists but the image properties are never returned and this may be where it's hanging...
Is that pasted from your browser or from the file aspx itself? In the aspx file it should have #<%=ImageViewer.ClientID%>, looks like that isn't getting rendered out to the browser though, so it ends up as just #. Unfortunately not quite sure why that would happen...
Any errors in your umbracoLog table? Also try running Fiddler and seeing if you get errors on any pages, check the Raw data for a good error message.
Tom - I think the code got cut out when I pasted it in... I'm seeing the same code on my end... no errors reported in the log although I usually just cancel out after a few minutes... I'll try letting it run until it times out and see what is reported...
Leave Fiddler open and try to insert the image again, you should see hits for InsertImage.aspx and others. They will have a 500 result if there is an error.
Also check your umbracoLog table for any errors after you try to insert again.
Tom - the umbraco .PDB files? so I would need to download the umbraco source and the set the solution to debug mode and recompile and copy the PDB files and DLLs over? is that correct?
Sorry, they are available on the Download tab of umbraco.codeplex.com - no need to get the full source (although if you have the ability to debug with that, that'd be the best route). Honestly not sure if that will help give a better error but worth a shot :)
Tom - yes, I also just added the httpErrors errorMode property to the web.config and I'm seeing the same error message info. thx again for all your help... I guess I may end having to download the source. thx again....
If I try to access the ImageViewUpdater.asmx directly via web browser I get the following error:
/umbraco/controls/Images/ImageViewerUpdater.asmx
Server Error in '/' Application.
The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.
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.
another bizarre twist... after checking w/ some of our CMS editors they were able to add images 3 days ago and this just started around that time so apparently it's not related to the 4.7.1 upgrade (verified through the item create dates)... I know one group did a lot of reorganizing in the media section (move, delete, and uploaded new media files)... could corrupted media nodes in the database cause this type of behavior if something went wrong while the were inside the media folders... I'm totally stumped but am going to download the source and see if I can trap the exact problem... any ideas or thoughts? many thanks in advance.
That actually makes much more sense, because I don't believe anything changed in these files between 4.7.0 -> 4.7.1.
RE corrupted media files, I don't think that's the case, but have you tried creating a new file in the root of the Media section and trying to select that with the WYSIWYG? The service only looks at one media item at a time so if others are "corrupted" it shouldn't affect a new one you create.
Otherwise, have you maybe changed any server settings recently? Something to do with allowing POST on webservices perhaps? Maybe try replacing your web.config with the stock umbraco web.config (and change the connection string)?
Tom - just downloaded the source and it looks like the error is occuring at the /umbraco/controls/Images/ImageViewerUpdater.asmx web service (at least it's failing at the HttpContext.Current.Server.Execute(page, sw, false); - if I comment this out and insert a blank string for the "html" property everything works correctly except the thumbnail image does not display... anyways digging more...
//load the control with the specified properties and render the output as a string and return it
Page page = new Page();
string path = umbraco.IO.IOHelper.ResolveUrl(umbraco.IO.SystemDirectories.Umbraco) + "/controls/Images/ImageViewer.ascx";
ImageViewer imageViewer = page.LoadControl(path) as ImageViewer;
imageViewer.MediaId = mediaId;
ImageViewer.Style _style = (ImageViewer.Style)Enum.Parse(typeof(ImageViewer.Style), style);
imageViewer.ViewerStyle = _style;
imageViewer.LinkTarget = linkTarget;
//this adds only the anchor with image to be rendered, not the whole control!
page.Controls.Add(imageViewer);
imageViewer.DataBind();
StringWriter sw = new StringWriter();
HttpContext.Current.Server.Execute(page, sw, false);
Dictionary rVal = new Dictionary();
rVal.Add("html", sw.ToString());
rVal.Add("mediaId", imageViewer.MediaId.ToString());
rVal.Add("width", imageViewer.FileWidth.ToString());
rVal.Add("height", imageViewer.FileHeight.ToString());
rVal.Add("url", imageViewer.MediaItemPath);
rVal.Add("alt", imageViewer.AltText);
return rVal;
Yup, that's what I suspected...if you google that original error message you got it all leads to problems with .Execute and calling other controls from it. I didn't see a definitive answer other than don't do things that way, but obviously it should work since it works on other 4.7.1 installs :) I do recall seeing something about post being disabled, so check your server settings also and maybe try the stock web.config as I mentioned earlier.
Tom - think I having a working variation that should accomodate both original code and also the error code that I'm experiencing as well... I basically trapped the error and when it occured I manually constructed the thumbnail data and passed the imageViewer dictionary back to the AJAX caller...
Glad you found a solution, not sure why it isn't working. I don't know about 2008 R2 x64, our servers are running 2008 x64 with no problems though. I wouldn't think that would be the issue though. Did you recently upgrade servers or something?
Tom it's a brand new server but our current server runs over 40 sites in a single Umbraco 3.06 installation (I know were old school ;). On the new server we have not yet released we went through a series of Umbraco upgrades 4.0, 4.5, 4.7, 4.71 - .NET upgrades 2.0, 3.5, 4.0 (on several project assemblies) and of course xslt updates... everything was working fine 3 days ago or so then all of sudden quit working. the server is setup to do automatic windows updates so I'm not sure a windows patch was installed that affected this. would have to go back and check the logs... very, very strange though... will hopefully get good news back from our CMS editors today (knock on wood). I really, really appreciate all your help with this Tom. again, many thanks!
cannot insert images into content pages since upgrading to 4.7.1!!!!
is anyone experiencing this issue? the images show and in the media picker but when you click on an item the spinner just spins and no items can be selected... arg!!!! need help ASAP, we're supposed to release a new server and website update next week! 4.7.1 seems to have major issues. you should not allow the update message to be display for unofficial releases! 4.7.1 has caused numerous issues!
Hi John
What steps did you take in upgrading to 4.7.1 on from what version?
Please ellaborate a bit more on the process you went through and what your server setup is like. Then it will be much more easy to point you in the right direction.
/Jan
Jan - thanks for the tips. I've gone through all the steps you mentioned based and nothing appears to have changed after rechecking permissions and other settings you mentioned (I also deleted out the temp dependancy files). no customization has been made that I am aware of. we do have custom datatype and editor controls but those all appear to be functioning correctly.
We're running Umbraco 4.7.1 on a windows 2008 RC2 server (brand new server), SQL Server 2005 located on another server....
Below is the snapshot of the issue (just basically hangs when we try to add an image in the CMS/Tiny MCE)... we have no problems uploading media files...
also, when I go into Firefox error consule I see the following entry:
this appears to be where's it's crashing...
ok more digging, appears to be crashing in the /umbraco/plugins/tinymce3/insertImage.aspx file at code below... never makes it inside the jQuery function although and image id is passed...
jQuery("#").UmbracoImageViewerAPI().updateImage(id, function(p) { //when the image is loaded, this callback method fires if (p.hasImage) { updateImageSource(p.url, p.alt, p.width, p.height); return; } else { alert("An error occured: Image selected could not be found"); } });
anyone have any ideas what's going on here?
Hi,
I don't know what could be causing it, but you might try clearing your ClientDependency cache, seems to fix some javascript errors after updates:
- Delete files in /App_Data/TEMP/ClientDependency or /App_Data/ClientDependency
- Update the version number in /config/clientDependencyConfig.config
- Touch your web.config or recycle your app pool
Also be sure you copied over all the new files...
-Tom
thx Tom - have tried that numerous times... and just tried again with no luck... I guess I'll copy over all the 4.7.1 files again and see what that does... really stuck between a rock and a hard place here... many thx...
just redownloaded the 4.7.1 files, recopied over all the 4.7.1 /bin, /umbraco and /umbraco_config files, reset IIS and still have the same exact problems... please help?!?!
Hey, something just clicked. It looks like the "Constrain Proportions" checkbox was removed in 4.7.1, which might explain (sort of) the "f.constrain is undefeind" error you are getting. This makes me think that the old javascript is still running, since the new one shouldn't be looking for f.constrain since it's gone.
So I would suggest again make sure you re-copy ALL files and clear the CD again.
Hope this helps,
Tom
Tom - just tried that and it still did not work. are there folders other the /bin, /umbraco, and /umbraco_client that need to be copied? should I completely delete the directories and recopy over the new ones?
Hmm, it looks like the f.constrain lines are in the new JS also. What browser version are you using? Have you tried another?
Tom - yes have tried FireFox, Chrome and IE (latest versions of all)...
just deleted the /umbraco and /umbraco_client directories and copied over all the files from scratch... deleted the cache files, reset IIS and still having the same problem...
Try replacing your tinyMceConfig.config as well temporarily. Then touch your web.config (maybe clear CD cache again just in case). Does yours have anything funky, like "advimage_constrain_proportions" ?
-Tom
Tom - just tried that as well... no luck... I also don't see anything like advimage_constrain_proportions in the tinyMCE_config file either...
May have been barking up the wrong tree. I get the f.constrain error also, so that shouldn't be causing any problems. It must be with the second line you pasted from insertImage.aspx. Seems strange that there is no ID in the jQuery selector. In the code it's:
So seems that it's not populating correctly...hmmmm. Not sure what would cause that...
Tom... sorry about that I didn't include all the function code... it's located in the /umbraco/plugins/tinymce3/insertImage.aspx file (the dialogHandler function)...
function dialogHandler(id) { if (id != -1) { jQuery("#").UmbracoImageViewerAPI().updateImage(id, function(p) { //when the image is loaded, this callback method fires if (p.hasImage) { updateImageSource(p.url, p.alt, p.width, p.height); return; } else { alert("An error occured: Image selected could not be found"); } }); } }
I can put a javascript alert inside the dialogHandler function and see the id is passed but an alert in the updateImage function in the /umbraco/controls/Images/ImageViewer.js file does not appear to respond so I'm guessing it's somehow related to the UmbracoImageViewerAPI. when I do an alert on that it does tell me an object exists but the image properties are never returned and this may be where it's hanging...
Is that pasted from your browser or from the file aspx itself? In the aspx file it should have #<%=ImageViewer.ClientID%>, looks like that isn't getting rendered out to the browser though, so it ends up as just #. Unfortunately not quite sure why that would happen...
Any errors in your umbracoLog table? Also try running Fiddler and seeing if you get errors on any pages, check the Raw data for a good error message.
Tom - I think the code got cut out when I pasted it in... I'm seeing the same code on my end... no errors reported in the log although I usually just cancel out after a few minutes... I'll try letting it run until it times out and see what is reported...
below is what I see when I run fiddler
Leave Fiddler open and try to insert the image again, you should see hits for InsertImage.aspx and others. They will have a 500 result if there is an error.
Also check your umbracoLog table for any errors after you try to insert again.
Tom - ok. here's probably some good info...
HTTP/1.1 500 Internal Server Error Cache-Control: private Content-Type: application/json; charset=utf-8 Server: Microsoft-IIS/7.5 jsonerror: true X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Wed, 02 Nov 2011 18:05:22 GMT Content-Length: 741 {"Message":"Error executing child request for handler \u0027System.Web.UI.Page\u0027.","StackTrace":" at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)\r\n at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)\r\n at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)\r\n at umbraco.controls.Images.ImageViewerUpdater.UpdateImage(Int32 mediaId, String style, String linkTarget)","ExceptionType":"System.Web.HttpException"}
Ok, well at least we know where the error is now :)
Unfortunately I think that's a generic error, you need to get the underlying error (or ideally debug with VS...)
You could try copying the .PDB files to /bin/ and making sure debug moded are off in web.config, hopefully that might get a better error..
-Tom
Tom - the umbraco .PDB files? so I would need to download the umbraco source and the set the solution to debug mode and recompile and copy the PDB files and DLLs over? is that correct?
Sorry, they are available on the Download tab of umbraco.codeplex.com - no need to get the full source (although if you have the ability to debug with that, that'd be the best route). Honestly not sure if that will help give a better error but worth a shot :)
still seeing the same errors Tom... was hopeful for a little bit more info... any more ideas? I really appreciate your help with this.
Did you turn on debugging in the web.config? Maybe also try enabling detailederrors ( <httpErrors errorMode="Detailed"/> ).
Otherwise I'm afraid I'm out of ideas. Best bet would be to attach to the site with the source and debug.
-Tom
Tom - yes, I also just added the httpErrors errorMode property to the web.config and I'm seeing the same error message info. thx again for all your help... I guess I may end having to download the source. thx again....
If I try to access the ImageViewUpdater.asmx directly via web browser I get the following error:
/umbraco/controls/Images/ImageViewerUpdater.asmx
Server Error in '/' Application.
The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Yep, that's normal, because it's expecting paramers to be posted to it :)
gotcha - see it's doing a POST on the params... thx... will keep digging...
another bizarre twist... after checking w/ some of our CMS editors they were able to add images 3 days ago and this just started around that time so apparently it's not related to the 4.7.1 upgrade (verified through the item create dates)... I know one group did a lot of reorganizing in the media section (move, delete, and uploaded new media files)... could corrupted media nodes in the database cause this type of behavior if something went wrong while the were inside the media folders... I'm totally stumped but am going to download the source and see if I can trap the exact problem... any ideas or thoughts? many thanks in advance.
Hi John,
That actually makes much more sense, because I don't believe anything changed in these files between 4.7.0 -> 4.7.1.
RE corrupted media files, I don't think that's the case, but have you tried creating a new file in the root of the Media section and trying to select that with the WYSIWYG? The service only looks at one media item at a time so if others are "corrupted" it shouldn't affect a new one you create.
Otherwise, have you maybe changed any server settings recently? Something to do with allowing POST on webservices perhaps? Maybe try replacing your web.config with the stock umbraco web.config (and change the connection string)?
-Tom
Tom - just downloaded the source and it looks like the error is occuring at the /umbraco/controls/Images/ImageViewerUpdater.asmx web service (at least it's failing at the HttpContext.Current.Server.Execute(page, sw, false); - if I comment this out and insert a blank string for the "html" property everything works correctly except the thumbnail image does not display... anyways digging more...
partial error message: at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) at umbraco.controls.Images.ImageViewerUpdater.UpdateImage(Int32 mediaId, String style, String linkTarget)
Yup, that's what I suspected...if you google that original error message you got it all leads to problems with .Execute and calling other controls from it. I didn't see a definitive answer other than don't do things that way, but obviously it should work since it works on other 4.7.1 installs :) I do recall seeing something about post being disabled, so check your server settings also and maybe try the stock web.config as I mentioned earlier.
-Tom
Tom - I reused the web.config file from the 4.7.1 source and copied over all my settings... still same errors as above... will keep digging...
Tom - still digging but just wondering if you know any other 64-bit Windows 2008 Server RC2 users that are not having any problems? thx!
Tom - think I having a working variation that should accomodate both original code and also the error code that I'm experiencing as well... I basically trapped the error and when it occured I manually constructed the thumbnail data and passed the imageViewer dictionary back to the AJAX caller...
Glad you found a solution, not sure why it isn't working. I don't know about 2008 R2 x64, our servers are running 2008 x64 with no problems though. I wouldn't think that would be the issue though. Did you recently upgrade servers or something?
Tom it's a brand new server but our current server runs over 40 sites in a single Umbraco 3.06 installation (I know were old school ;). On the new server we have not yet released we went through a series of Umbraco upgrades 4.0, 4.5, 4.7, 4.71 - .NET upgrades 2.0, 3.5, 4.0 (on several project assemblies) and of course xslt updates... everything was working fine 3 days ago or so then all of sudden quit working. the server is setup to do automatic windows updates so I'm not sure a windows patch was installed that affected this. would have to go back and check the logs... very, very strange though... will hopefully get good news back from our CMS editors today (knock on wood). I really, really appreciate all your help with this Tom. again, many thanks!
is working on a reply...