Hi i have a modx website and now i have this error on the backend login screen:
Notice: Array to string conversion in /home2/director/public_html/core/xpdo/xpdo.class.php on line 478
Notice: Array to string conversion in /home2/director/public_html/core/xpdo/xpdo.class.php on line 478
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/director/public_html/core/xpdo/xpdo.class.php:478) in /home2/director/public_html/core/model/modx/modx.class.php on line 1975
How could i solve this?
What version of MODX?
One way would be to change the settings to not show E_NOTICE errors and turn display_errors off (it should always be off on a production site).
http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
Thanks for reply
But configuring my php as this way not cause problem for all the users?
ie this does not negatively affect other users of the server, who are developing websites in php? no longer display their errors?
You should be able to use a site-specific php.ini file in the root of your MODX install. It won't affect any other users of the server.
-
☆ A M B ☆
- 24,524 Posts
Custom php.ini files only effect .php scripts within the same directory as the custom php.ini file. They don't even work on scripts run in child directories. This won't bother MODX, since actually the only .php scripts that are independently running are the index.php files, the one for the site and the one for the Manager. All the rest of the MODX files are included by those.
You can make them affect all the child directories if you're running suPHP:
http://www.inmotionhosting.com/support/website/php/recursive-php-ini