meistergica Posted March 12, 2017 Share Posted March 12, 2017 Hi, I'm running Prestashop 1.6.1.10 on local host (LAMP over Ubuntu 16.04 LTS) . When I try to import products receive the following error message: Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in /var/www/html/prest/classes/ImageManager.php:237 Stack trace: #0 /var/www/html/prest/controllers/admin/AdminImportController.php(1084): ImageManagerCore::resize('/var/www/html/p...', '/var/www/html/p...', 871, 232, 'jpg', false, 0, 871, 232, 5, 871, 232) #1 /var/www/html/prest/controllers/admin/AdminImportController.php(1823): AdminImportControllerCore::copyImg('14364', '30237', 'http://www.arw....' 'products', true) #2 /var/www/html/prest/controllers/admin/AdminImportController.php(3497): AdminImportControllerCore->productImport() #3 /var/www/html/prest/classes/controller/Controller.php(178): AdminImportControllerCore->postProcess() #4 /var/www/html/prest/classes/Dispatcher.php(367): ControllerCore->run() #5 /var/www/html/prest/admin123/index.php(58): DispatcherCore->dispatch() #6 {main} thrown in /var/www/html/prest/classes/ImageManager.php on line 237 Please help me to figure out what's happens Link to comment Share on other sites More sharing options...
shokinro Posted March 12, 2017 Share Posted March 12, 2017 imagecreatetruecolor() is PHP function(GD extension), it is not from PrestaShop , not sure why you have this error. You may need contact your hosting company technical support to ask theme enable GD extension if it is not enabled. Link to comment Share on other sites More sharing options...
meistergica Posted March 12, 2017 Author Share Posted March 12, 2017 (edited) I think PHP 7.0 function GD extension is enable ... ( I'm running Prestashop on local host) gd GD Support enabled GD headers Version 2.2.3 GD library Version 2.1.1 FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.6.1 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 8 PNG Support enabled libPNG Version 1.2.54 WBMP Support enabled XPM Support enabled libXpm Version 30411 XBM Support enabled WebP Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 0 0 Edited March 12, 2017 by meistergica (see edit history) Link to comment Share on other sites More sharing options...
meistergica Posted March 12, 2017 Author Share Posted March 12, 2017 I have switch back to PHP 5.6 and everything works fine. Link to comment Share on other sites More sharing options...
shokinro Posted March 12, 2017 Share Posted March 12, 2017 I am glad you figured a solution. I do not think PrestaShop is ready for PHP 7.0. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now