Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Error on List mode in Product display. 
 
Sintax
Member
 
Total Posts:  58
Joined:  2008-02-18
Hungary
 

When I click on the List mode in the catalog listing I get an error. The grid mode works perfectly. What could be wrong? GD2 is installed on the machine so that can’t be the problem.

Fatal error: Call to undefined function imagecreatetruecolor() in /var/www/magento/app/code/core/Mage/Media/Model/File/Image.php on line 111

::Sintax

 
Magento Community Magento Community
Magento Community
Magento Community
 
Romain Fluttaz
Member
 
Avatar
Total Posts:  31
Joined:  2007-09-20
Chambery, France
 

same error ... any solutions ?’cause in fact i really don’t like the grid view ...  (
...http://www.produitsdesavoie.com/catalog/category/view/mode/list/id/11/ )

Code on line 110-112 :

public function getTmpImage(Mage_Media_Model_Image $object)
    
{
        $resource 
imagecreatetruecolor($object->getDestanationDimensions()->getWidth(), $object->getDestanationDimensions()->getHeight());
        return 
$resource;
    
}

Edit :
Probleme solved !
Just an apt-get install php5-gd on my debian ... sorry ... (i was thinking thats was libgd who was need ...)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top