Skip to content

Instantly share code, notes, and snippets.

@mehdichaouch
Created September 24, 2019 08:39
Show Gist options
  • Save mehdichaouch/99c67298b5a65f81219c9b69942b6fe7 to your computer and use it in GitHub Desktop.
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
<?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