Another Ajax bug on admin login
Load the /administrator/ page.
Edit /administrator/index.php and place a die();
after the opening <?php
- doing this replicates "bug" on your site, it could be a php warning, or an exception in a plugin, or any PHP error. Most common is a plugin outputting PHP Notices or warnings...
Try to login
Note that you get ZERO FEEDBACK now, no error messages are shown. You try to click Login In again and no feedback... you are now at a loss as why you cannot login.
This is because the JSON response to the AJAX request is malformed and Joomla's JS doesn't handle it with a try/catch block
Visual "there was a problem" kind of message... JLIB_JS_AJAX_ERROR_OTHER even :)
No feedback - except a console.log error message
SyntaxError: JSON Parse error: Unexpected EOF
You can change the die() statment - lets output some text, make your /administrator/index.php be this now <?php arghhhh
and you will now get the more common error:
SyntaxError: JSON Parse error: Unrecognized token '<'
There was a PR for [4.0] Remove AJAX for login #29571 ... which would make this issue null and void by removing ajax
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-08 12:02:52 |
Closed_By | ⇒ | alikon |
This is almost a duplicate of #27786 - we came to the same conclusion - proof that this issue has already causing " I spent two days trying to figure out what happened" type moments :)