jonno12003 Posted August 5, 2012 Share Posted August 5, 2012 (edited) Hi All First post on here. My webpage's back office is giving me an error each time i upload a product For some reason as soon as i've uploaded the image, I get a blank screen, with just the product headers - Catalog, etc above. The image doesn't show up. I've successfully uploaded a tonne of images, changed the size of the image file/format but for some reason it won't work! I'm not too technical which is why prestashop's easy GUI works for me. I'm wondering whether somebody has some simple advice for me or could have a look? Many Thanks John Edited August 5, 2012 by jonno12003 (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 Please enable the error messages using by config.inc.php and post here the error message you receive. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Hi Caglar, Thanks for responding. How do i enable this? - Sorry very newbish... John Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Prestashop version: 1.4.7.0 Server information: Linux #1 SMP Wed Mar 7 04:16:51 EST 2012 x86_64 Server software version: Apache PHP version: 5.2.17 MySQL version: 5.0.95-log Store information Shop URL: http://www.alternativemarket.co.uk/shop/ Current theme in use: prestashop Mail configuration Mail method: You are using the PHP mail() function. Your information Your web browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1 Check your configuration Required parameters: OK Optional parameters: OK Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 In your root, there is a folder named config. And there you'll find config.inc.php Open it with an editor and enable error messages by changing the below lines @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); to @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); Save the file and upload it to your ftp server. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9792 bytes) in /home/linweb09/a/alternativemarket.co.uk-1050202432/user/htdocs/shop/images.inc.php on line 238 Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 Please, try to disable the caching and retry. You can do that under tools>performance tab Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Hi Caglar, Thanks for your replies, i do appreciate the help. I have tried disabling the cache but still have the same error as stated above John Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 So if that doesn't work, you should increase the memory_limit value of your server. It should be currently 64M or 32 M. I guess 128M can work out for you. To do that, contact with your hosting provider or if you have access to your php.ini file of your server, you can manually increase it. Another way to do that, is to write in your .htaccess file, but if the limit is put in the server it probably doesn't work. Adding line to your .htaccess file: php_value memory_limit 128M Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Hi Caglar, I shall contact my provider tomorrow and ask them to increase the limit Will this be ok to upload alot more images once sorted? I have thousands of products to upload Regards Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 It is also related to your time_out limit of your server. You should ask to increase that value, too. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 (edited) Hi Caglar, I spoke to them and they said i need to add this line to my wp-config.php file to increase the memory limit this is ('WP_MEMORY_LIMIT','64M'); how do i do this? Regards John Edited August 5, 2012 by jonno12003 (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 Please, tell them you use Prestashop, not wordpress. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 They said they only deal with wordpress....they said they don't know the script for prestashop Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 So please request them to increase the memory_limit value. They should be able to do that. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Fast hosts - They said they couldn't do it... Useless english people?? Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 Then please try to edit your .htaccess file. To do that go to your tools>generators tab There you'll see specific configuration textarea Copy below line and paste into it php_value memory_limit 128M Then press "generate .htaccess file" button. Then try to upload again. Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. website is no longer functioning Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 OK, no worries... Please go to your ftp and delete the .htaccess file from root and then go back to Back Office, try to generate .htaccess file without the code I provided to you. Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 (edited) We will try one more thing Go to root/config/config.inc.php add : /* Improve PHP configuration to prevent issues */ ini_set('memory_limit','128M'); Then try to reupload and let me know about the result UPDATE: This solution worked! Edited August 6, 2012 by Caglar (see edit history) Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 see homepage...... woahhh http://www.alternativemarket.co.uk/shop/ Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 disable the error mesages from the config.inc.php Link to comment Share on other sites More sharing options...
jonno12003 Posted August 5, 2012 Author Share Posted August 5, 2012 I regenerated a .htaccess file and it has broken again, Shall i PM you some FTP details? John Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 sure Please provide me your Backoffice info, too Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 OK. I fixed. Link to comment Share on other sites More sharing options...
MEG Venture Posted August 5, 2012 Share Posted August 5, 2012 Would you please try to reupload? Link to comment Share on other sites More sharing options...
GuerillaBeek Posted September 10, 2015 Share Posted September 10, 2015 (edited) In your root, there is a folder named config. And there you'll find config.inc.php Open it with an editor and enable error messages by changing the below lines @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); to @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); Save the file and upload it to your ftp server. I added the line ini_set('memory_limit','128M'); to increase my server's memory limit (I was experiencing an error preventing all the modules from loading) and my site disappeared. When I restored the original config/config.inc.php file the site is still unreachable. I get nothing but a blank screen. Can you or anyone else help me resolve this issue? This is the error I receive after adding: @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); to the config.inc.php file Fatal error: Uncaught exception 'Adapter_Exception' with message 'Service container is not set.' in /home/omnomnut/public_html/omnom/Adapter/Adapter_ServiceLocator.php:49 Stack trace: #0 /home/omnomnut/public_html/omnom/classes/ObjectModel.php(232): Adapter_ServiceLocator::get('Adapter_EntityM...') #1 /home/omnomnut/public_html/omnom/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #2 /home/omnomnut/public_html/omnom/classes/shop/Shop.php(397): ShopCore->__construct('1') #3 /home/omnomnut/public_html/omnom/config/config.inc.php(100): ShopCore::initialize() #4 /home/omnomnut/public_html/omnom/admin8080/index.php(36): require('/home/omnomnut/...') #5 {main} thrown in /home/omnomnut/public_html/omnom/Adapter/Adapter_ServiceLocator.php on line 49 Thank you! Edited September 10, 2015 by GuerillaBeek (see edit history) Link to comment Share on other sites More sharing options...
sc101 Posted November 10, 2015 Share Posted November 10, 2015 PrestaShop™ 1.5.6.1 image size bug is at random size 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