When saving or publishing content nodes I get an error. It works fine within local visual studio install but see the error when publishing from production I get the folllowing error in my javascript console within Chrome. This is a recent problem that just popped up.
TypeError: Cannot read property 'forEach' of undefined
at Function._.each._.forEach (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…U1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:25:97)
at postMultiPartRequest.dialogService.ysodDialog.errorMsg (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:813:453)
at Object.e.$eval (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:7447)
How do you deploy from local to production? What is your process? Is it shared hosting or running a dedicated server?
I think that maybe you need to try and clear the client dependency cache by going to /app_data/TEMP/ClientDependency and delete the files (on the server) and in the /config/ClientDependency.config increment the version number.
Cleared the temp ClientDependency folder as you suggested and updated version #, but same error occurs.
Its a dedicated server that has worked fine until recently. Can't seem to resolve . Even copied fresh copy of Umbraco, Umbraco_client and DLLS from new install. Copied entire directory from local machine to production which has worked fine until recent error. Some content nodes see to save and publish fine, others seem to hang. The publish button dims after publishing and the page hangs.
Tried app pool recycling but doesn't help. Nothing in the umbraco log appears when the error occurs, only getting the javascript error. Nothing on the server has changed that I am aware of. In fact we have 2 servers, the error occurs on both instances. Its only working correctly on local instance.
Hmm, could something be missing on your server setup that could be the cause of this then?
Is it possible for you to try and install Webmatrix and then make an Umbraco installation using it on your server - The benefit is that Webmatrix makes sure all needed dependencies are installed before it tries to install Umbraco.
You don't need to use the Umbraco installation for anything else and can delete it afterwards and then install and setup Umbraco manually as or however you have done the Umbraco setup on your server. Could this be an option to try out?
I have noticed something new. If I add a URL href link to a text field RTE using TINY MCE editor and publish and save it fails. But if I remove the link it publishes without error. Any thoughts?
Getting Error when Saving nodes in 7.18
When saving or publishing content nodes I get an error. It works fine within local visual studio install but see the error when publishing from production I get the folllowing error in my javascript console within Chrome. This is a recent problem that just popped up.
TypeError: Cannot read property 'forEach' of undefined
at Function._.each._.forEach (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…U1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:25:97)
at postMultiPartRequest.dialogService.ysodDialog.errorMsg (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:813:453)
at http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:821:116
at http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…bnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:11604
at i (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:947)
at i (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:947)
at i (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:947)
at i (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…1lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:947)
at http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:1496
at Object.e.$eval (http://website.com/DependencyHandler.axd?s=L3VtYnJhY28vbG…lbnUvQWN0aW9uTmV3UmVsYXRpb25UeXBlLmpzOw&t=Javascript&cdv=345307634:14:7447)
Hi Jeff
How do you deploy from local to production? What is your process? Is it shared hosting or running a dedicated server?
I think that maybe you need to try and clear the client dependency cache by going to /app_data/TEMP/ClientDependency and delete the files (on the server) and in the /config/ClientDependency.config increment the version number.
Hope this helps
/Jan
Hi Jan,
Cleared the temp ClientDependency folder as you suggested and updated version #, but same error occurs.
Its a dedicated server that has worked fine until recently. Can't seem to resolve . Even copied fresh copy of Umbraco, Umbraco_client and DLLS from new install. Copied entire directory from local machine to production which has worked fine until recent error. Some content nodes see to save and publish fine, others seem to hang. The publish button dims after publishing and the page hangs.
Hi Jeff
Did you recycle the app pool as well after doing the proposed steps?
Has something happened on the server? An update of some of the software for instance? Does the server logs reveal anything?
/Jan
Tried app pool recycling but doesn't help. Nothing in the umbraco log appears when the error occurs, only getting the javascript error. Nothing on the server has changed that I am aware of. In fact we have 2 servers, the error occurs on both instances. Its only working correctly on local instance.
Hi Jeff
Hmm, could something be missing on your server setup that could be the cause of this then?
Is it possible for you to try and install Webmatrix and then make an Umbraco installation using it on your server - The benefit is that Webmatrix makes sure all needed dependencies are installed before it tries to install Umbraco.
You don't need to use the Umbraco installation for anything else and can delete it afterwards and then install and setup Umbraco manually as or however you have done the Umbraco setup on your server. Could this be an option to try out?
/Jan
I tried installing webmatrix and umbraco but the problem still occurs. Should I consider a fresh install first? Then try to merge my files.
I have noticed something new. If I add a URL href link to a text field RTE using TINY MCE editor and publish and save it fails. But if I remove the link it publishes without error. Any thoughts?
Jan,
Turns out this was a firewall related issue. Thanks for your help
Hi Jeff
Aaah yes...the firewall! It can really mess things up sometimes - Happy you managed to figure out the issue mate :)
/Jan
is working on a reply...