I had another issue with my 2.1 install that might be worth a patch in the next release:
after installation the manager was not displaying the resources tree + other oddities; Firebug console reported a
javascript error in ext-all.js
missing ) in parenthetical
<b>Strict Standards</b>: Redefining a...class.php</b> on line <b>75</b>
I then looked in MODx Error Logs (under Reports tab) and found a
PHP warning referencing the same ’75’ line:
(ERROR @ /modx/core/model/modx/moduser.class.php : 159) PHP warning: Cannot modify header information - headers already sent by (output started at /modx/core/model/modx/registry/modregister.class.php:75)
I suspected that the HTML-string generated by the Warning, was being passed unescaped to the Javascript, causing some kind of injection because of a missing ’)’, hence I tried adding an
.htaccess with:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
in ’/modx/core/model/modx/registry/’ (
did not work),
in ’/modx/core/model/modx/’ (
did not work)
in the modx root ->
SUCCESS, the manager returned fully functional.
I think the double header issue between the 2 modx classes should be cleaned, furthermore an ’htmlspecialchars’ is missing somewhere in your PHPs, or maybe the equivalent javascript escaping function should be in ext-all.js
Congrats on the release!