I disabled logging from the System > Advanced > Developer screen (I've checked that is disabled for all the websites/stores/storeviews) but Magento continues to write errors inside "/var/log/system.log" like:

[...] ERR (3): Warning: simplexml_load_string(): [...] in /lib/Varien/Simplexml/Config.php on line 383

Are there errors that ignore the admin backend setting?

  • Can you read from which module this log comes? – Kevin Krieger Jan 20 '16 at 17:27

In app/Mage.php method log():

    if (!self::$_isDeveloperMode && !$logActive && !$forceLog) {

A log will be written if the system is in developer mode, or the log is active, or the $forceLog parameter is true.

Since you say logging is disabled, and since the error handler does not force logging (as defined in app/code/core/Mage/Core/functions.php::mageCoreErrorHandler()), your store most likely has developer mode enabled. Check your .htaccess and index.php files for anything that might be triggering that.

  • Developer mode looks disabled, I added a check in site footer "echo Mage::getIsDeveloperMode() ? 'Y' : 'N';" and it returns N (if I enable the developer mode from index.php the check returns Y, so the check is working) – Riccardo Feb 4 '16 at 14:58

I guess there is an Mage::log() call with param $forceLog = true:

    public static function log($message, $level = null, $file = '', $forceLog = false)

I have found that there was an extension with invalid xml data in one of its files, specifically a tag starting with a number.


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.