roed Posted April 19, 2016 Share Posted April 19, 2016 Hi all. I have one order that I cannot open in back office. It returns error code 500 each time. All other orders opens fine and as far as I can see there is nothing speciel about this one. I can get hold of the invoice via the icon on the order page but the delivery slip also returns a 500. Any solutions in mind? Thanks, Michael Link to comment Share on other sites More sharing options...
Daresh Posted April 19, 2016 Share Posted April 19, 2016 A 500 error doesn't tell us much, you should first turn on error reporting to see exactly what is wrong: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 Ofcourse, my bad When I do this I get Strict Standards: Declaration of Cart::checkQuantities() should be compatible with CartCore::checkQuantities($return_product = false) in /www/thatsmine.dk/override/classes/Cart.php on line 215 Fatal error: Call to undefined function imagecreatetruecolor() in /www/thatsmine.dk/classes/ImageManager.php on line 237 Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 If I disable all non-prestashop module I still get this error: Fatal error: Call to undefined function imagecreatetruecolor() in /www/thatsmine.dk/classes/ImageManager.php on line 237 Link to comment Share on other sites More sharing options...
Daresh Posted April 19, 2016 Share Posted April 19, 2016 Much better now Looks like you have some override. Probably a module is installed that changes the checkQuantities function in the Cart class, but it looks like this module is not compatible with your version of Prestashop. The second error - I'm not sure, the imagecreatetruecolor is a PHP function from the GD library, maybe you don't have that library turned on, or the version is not correct. Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 That doesn't make sense Daresh. When I disable all overrides and non PS modules I still get the error above and it is one 1 order that returns error 500. All other orders show just as they should. Link to comment Share on other sites More sharing options...
Daresh Posted April 19, 2016 Share Posted April 19, 2016 Indeed this is weird. What is your Prestashop version? I'll try to check in what circumstances that function is called for an order. Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 Thanks Daresh. It is version 1.6.1.3. Link to comment Share on other sites More sharing options...
Daresh Posted April 19, 2016 Share Posted April 19, 2016 I found that this is used for file uploads and also for processing images uploaded by customer in products customization, any clue? Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 Hmmm. Not at all. We do not have products with customization of any kind (only attributes: sizes and colors). This is so weird! Link to comment Share on other sites More sharing options...
Prestachamps Posted April 19, 2016 Share Posted April 19, 2016 hi, this error could be shown if you don't have enabled GD extension in your server/hosting settings. You should check if you have GD extension enabled on your hosting: you can test it by following this short example: Use the following code in a whatever.php file to test if you have GD extension:<?php $testGD = get_extension_funcs("gd"); // Grab function list if (!$testGD){ echo "GD not even installed."; exit; }echo"<pre>".print_r($testGD,true)."</pre>"; ?> test it by opening in browser: yourdomain.com/whatever.php If you get the message that it's not installed, then check the following steps: phpinfo() and look up php.ini path edit php.ini: extension_dir=<path to your extensions> edit php.ini: extension=php_gd2.dll //uncomment or add Restart web server Run the test script again or just simply by asking your hosting in a ticket or live chat. Regards, Leo Link to comment Share on other sites More sharing options...
roed Posted April 19, 2016 Author Share Posted April 19, 2016 Amazing Leo. It shows it is not installed Strange since it has run for a week on this server without problems. But thank you very much I will get this installed. /Michael 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