-
☆ A M B ☆
- 1,780 Posts
Endless save/save loop/endless save graphic/save looping
OK, so I'm trying to make sure all the keywords are in this thread because the search here is underwhelming at best.
This issue peeks up now and again, but it is NEVER resolved. I've searched and searched, and watched for solutions that work but it's always left unsolved in every thread. There are speculative discussions of compress_js/cs, tinyMCE, a key phrase in the content, container only, resources only, etc. but not any clear reason why it happens or what could fix it.
I think it's time to figure it out and put some real solutions in one thread so people can find it.
It seems to occur only in Chrome for me, and it's happening in Chrome for Dad too. Firefox does not have an issue on my end and apparently Dad isn't interested in Firefox enough to try it. (he's one of those IE lovers... it was hard enough to get him to install Chrome for MODX. big sigh...)
My Chrome is a fresh install with no add ons or plugins installed at all and I think Dad's Chrome is untouched by plugins as well. At least it's just dad's site, he forgives me at will so it's not the end of the world and he's not going to shop me because his site won't refresh after saving. But another client would complain much more, for sure.
It's occurred for me at some point in every installation from 2.0 up. I was using Chrome exclusively for MODX, but then I lost the ability to browse files when inserting images and I went back to Firefox. The new Chrome install (new win7 machine) does not seem to have this issue, but does have the save loop issue.
Refreshing the page works, the resource is saved. I've tried it on containers, non-containers, articles container, articles pages, and various elements. Elements (tv's, chunks, etc.) save fine.
Let's talk about this and find a real solution please?
The problem here could be, well, anything.
The best you can do is to try and debug the ajax call when saving. To do this, open up Dev Tools in Chrome before attempting the save, click the Network tab, and then select XHR at the bottom. Now try to save again.
In Dev Tools, you'll see in the left panel a request to 'connector.php' - select that and details related to that request will be shown in the right panel. Click the Response tab and if something went wrong during the save then an error message should be shown there.
Then you can post the error message here and we'll have some idea of what the problem is and where it is occurring.
FWIW, I'm using Chrome 19 and I've never seen that, though I do get a blank console in the Package Manager when I install a package immediately after searching locally for packages. I can prevent that reliably by reloading the Manager page first.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
Failure to save template changes is almost always due to a mismatch between the MODX date_timezone setting and the server, PHP, and/or MySQL settings.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
-
☆ A M B ☆
- 1,780 Posts
It looks like my Chrome issue was with an extension. So far so good with saving in Chrome after disabling it.
The offending extension is:
Website Logon 1.0
@Letti - could be something to do with one of the TVs attached to the template? Remove them all from that current template and try to save; if it works then you know what the problem is.
You'll get a more informative error message if you turn on php error reporting.
Ok the causing TV is found. It is a TV of type "number". Output type: default. The TV is not used directly in the template. It is only made for uploading the site via an API to inform which other site has to be uploaded (contains the id of another resource).
Do you have any idea what could be wrong with this TV or we can find out what could be the reason?