Bugfix - Magento 1: ERR (3): Warning: array_values() [function.array-values]: The argument should be an array in .. example.co.nz/httpdocs/lib/Varien/Image/Adapter/Gd2.php on line 163 Print

  • 10

If you see the following error(s) in your system.log:

ERR (3): Warning: array_values() [function.array-values]: The argument should be an array in 
.. /mocka.co.nz/httpdocs/lib/Varien/Image/Adapter/Gd2.php on line 163

This seems to be a bug in Magento 1.5.1.0. You will need to change the value at line 163 in lib/Varien/Image/Adapter/Gd2.php:

Existing Code:

elseif (false !== $transparentIndex) {

Correct Code:

elseif (false !== $transparentIndex && $transparentIndex >= 0 && $transparentIndex < 255) {

 If you are a Create Hosting customer on the Magento Hosting Plan, feel free to submit a support ticket and we can take care of this issue for you.


Was this answer helpful?

« Back