pedro-teixeira / correios

Módulo de frete para Magento com tracking
https://pedroteixeira.io
MIT License
110 stars 72 forks source link

Warning: strtolower() expects parameter 1 to be string, array given #439

Open r-martins opened 5 years ago

r-martins commented 5 years ago

Quando atualizando uma loja com o módulo bem antigo, temos o seguinte erro:

Error in file: ".../app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/upgrade-4.8.0-4.8.1.php" - Warning: strtolower() expects parameter 1 to be string, array given in .../lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2721

0 .../app/code/core/Mage/Core/Model/Resource/Setup.php(644): Mage::exception('Mage_Core', 'Error in file: ...')

1 .../app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '4.8.0', '4.9.0')

2 .../app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('4.8.0', '4.9.0')

3 .../app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()

4 .../app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()

5 .../app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()

6 .../app/Mage.php(686): Mage_Core_Model_App->run(Array)

7 .../index.php(83): Mage::run('', 'store')

8 {main}