1

I try to re save, reindex,update attribute, clear cache, images are checked in backend. 777 permission is given to media folder. i have disabled all extensions which were over-riding media.phtml but still it showing placeholder even in product listing page.

closed as off-topic by Marius Dec 8 '15 at 11:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Marius
If this question can be reworded to fit the rules in the help center, please edit the question.

0

after a lot of googling I found solution here

There is a file called Gd2.php in the folder lib/Varien/Image/Adapter

There is a function called _convertToByte() which checks for php_memory limit. The function checks whether the size is given in M or KB and converts to bytes accordingly. The bug is, it does not check if the size is given in GB. So if you are going through above same problems, apparently your server has php_memory limit given in GB.

protected function _convertToByte($memoryValue)
{
    if (stripos($memoryValue, 'M') !== false) {
      return (int)$memoryValue * 1024 * 1024;
    }
    elseif (stripos($memoryValue, 'KB') !== false) {
      return (int)$memoryValue * 1024;
    }

    return (int)$memoryValue;
}

Solution is to either set the memory limit to a value in megabytes (i.e. 2048M instead of 2G) or if it's not possible, hack this file to make it work with gigabyte values.

Not the answer you're looking for? Browse other questions tagged or ask your own question.