|
Hello All - I have found an error and fix in my install and I am posting in the HOPES that this will save people time in the future on admin hangs on ajax calls.
I was getting the “Please wait” screen lock when an AJAX call fired off in admin - multiple instances in multiple areas.
After watching the HTTP requests like a new episode of BSG (geek ref) I noticed a few things:
1-There was a json call that had this response like {"error":false}
2-Some extra output form my root level (site.com/) index.php
#1 is a contradiction? error=false - I don’t know wtf this is supposed to be telling me.... moving on…
#2 is where I found a bug and a fix - more follows
-In adding a store view I have the store view output to screen at the bottom of my root level index.php file in comments. Just a debug call.
-This comment (spaces added to read) looks kind of like this:
< ! - - [store] Store_view - ->
and came after that JSON output.
This (comment) was printed to screen after the run() command.
When I disabled this screen output all got better and works fine.
My guess is this: Magento AJAX calls used in the admin does not like extra characters of any sort. (similar to calling PHP header() with stuff printing to screen - same sort of thing in my mind)
Here is some advice for the developers at Varien / Magento (and my 2 largest complaints / error / screw ups on the system):
1- DO NOT run admin (back side of the site) off the main index.php - if there is an error on that file admin can fail and we are in bad shape (because of this miscalculation I have locked myself out by accident working on code) Solution (and this is common approach pattern) is demonstrated on Wordpress where the admin runs on a separate file thus decoupling the “front” and the “admin”. This would be a huge step forward!
2- Another decoupling issue - the core config is in the core of the site making updates wipe your changes.
There seems to be a coupling issue on this site in the basic levels and I highly recommend looking onto this as developers and provide great caution to developers working on the site.
--Marc
|