Abilitare il developer mode in magento, dalla versione 1.4 in poi è estremamente semplice.
Puoi effettuare questa operazione dal file .htaccess o direttamente nel file index.php della tua installazione magento.
Dal file .htaccess, aggiungi questa riga alla fine del file
1 2 3 | ############################################ ##Developer Mode SetEnv MAGE_IS_DEVELOPER_MODE "true" |
Oppure modica il file index.php da così
1 2 3 | if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } |
a così
1 2 3 4 | $_SERVER['MAGE_IS_DEVELOPER_MODE'] = true; if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } |
Sorry, but it did not work in my case:
Error in file: /var/www/clients/client1/web1/web/app/code/core/Mage/Customer/sql/customer_setup/mysql4-data-upgrade-1.4.0.0.7-1.4.0.0.8.php Invalid entity_type spicefied: customer_addressTrace:#0 /var/www/clients/client1/web1/web/app/code/core/Mage/Core/Model/Resource/Setup.php(390): Mage::exception( Mage_Core', Error in file: ')#1 /var/www/clients/client1/web1/web/app/code/core/Mage/Core/Model/Resource/Setup.php(264): Mage_Core_Model_Resource_Setup->_modifyResourceDb( data-upgrade', '1.4.0.0.7 , '1.4.0.0.13 )#2 /var/www/clients/client1/web1/web/app/code/core/Mage/Core/Model/Resource/Setup.php(211): Mage_Core_Model_Resource_Setup->_upgradeData('1.4.0.0.7 , '1.4.0.0.13 )#3 /var/www/clients/client1/web1/web/app/code/core/Mage/Core/Model/Resource/Setup.php(194): Mage_Core_Model_Resource_Setup->applyDataUpdates()#4 /var/www/clients/client1/web1/web/app/code/core/Mage/Core/Model/App.php(337): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()#5 /var/www/clients/client1/web1/web/app/Mage.php(627): Mage_Core_Model_App->run(Array)#6 /var/www/clients/client1/web1/web/index.php(80): Mage::run( , store')#7 {main}
Paul: Ahh, I didn’t even think of that. I’ll have to try it out and see how it works. The only thing though is that this will not work for any vesrion of Magento earlier than 1.4. At this point, I would need the ability to send error reports via email for vesrions all the way down to 1.2 or 1.1.
What Magento version are You using? 1.4.x?
It looks weird, did You just add $_SERVER[‘MAGE_IS_DEVELOPER_MODE’] = true; this line before the IF condition?