Jump to content

[SOLVED]Help Needed - Image Upload Not Working!


Recommended Posts

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 by jonno12003 (see edit history)
Link to comment
Share on other sites

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

AdminInformation.gif Check your configuration

Required parameters: OK

Optional parameters: OK

Link to comment
Share on other sites

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

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

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

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

  • 3 years later...

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 by GuerillaBeek (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...