Created
September 24, 2019 08:39
-
-
Save mehdichaouch/99c67298b5a65f81219c9b69942b6fe7 to your computer and use it in GitHub Desktop.
Magento logging not working in Open Source 1.9.4.1 and Commerce 1.14.4.1 or after SUPEE-11086
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set values for allowedFileExtensions | |
*/ | |
/* @var $installer Mage_Core_Model_Resource_Setup */ | |
$installer = $this; | |
$installer->startSetup(); | |
$coreConfigTable = $installer->getTable('core_config_data'); | |
$installer->run(" | |
INSERT INTO `{$coreConfigTable}` (scope, scope_id, path, value) | |
VALUES ('default', 0, 'dev/log/allowedFileExtensions', 'log,txt,html,csv') | |
ON DUPLICATE KEY UPDATE value = 'log,txt,html,csv'; | |
"); | |
$installer->endSetup(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment