Jump to content

Product "detail" pages displaying Server error 500/white page - not loading.


Recommended Posts

Hi there,

 

I'm having an issues with my shop when you select a product to view more information.

(Please excuse the formatting)

 

Shop URL: http://shop.luvfromamy.com/

Product URL: http://shop.luvfroma...troller=product (happens for all products though)

 

When you select a product

  • The page doesn't load and remains white white in Firefox
  • I receive the following error in google chrome:

Server error

 

The website encountered an error while retrieving http://shop.luvfroma...troller=product. It may be down for maintenance or configured incorrectly.

Here are some suggestions:

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

  • I receive the following error in Internet Explorer

The website cannot display the page

HTTP 500

Most likely causes:

•The website is under maintenance.

•The website has a programming error.

 

What you can try:

 

* Refresh the page.

* Go back to the previous page.

 

More information

 

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

 

For more information about HTTP errors, see Help.

 

 

I was doing a little research and found someone with a similar problem

http://www.prestasho...ite-white-page/

 

Which suggested to "turn on error reporting" to find out more information on what the specific error is (as Server Error 500 is very broad)

 

Using google I found this link: http://mypresta.eu/e...prestashop.html

 

In this article is lists to go to the XML folder (/public_html/shop/config/xml) and find a .PHP file called "config.inc.php" which I don't actually have :-S So I am unable to look deeper into the error.

 

Has anyone has had a similar issue/information on how to resolve this? I would greatly appreciate some suggestions as I'd like to get my store up and running asap (and don't want to put effort into the visuals until the normal functions work)

 

Thank you!

Link to comment
Share on other sites

Thank you I found that file "config.inc.php" I'm not really sure how to do the next steps. I opened the file in dreamweaver and tried to find

1

 

@ini_set('display_errors', 'off');

but could only find the following @ini_set values

 

ini_set('upload_max_filesize', '100M');

ini_set('default_charset', 'utf-8');

ini_set('magic_quotes_runtime', 0);

 

I'm using version PrestaShop™ 1.5.3.1

 

Thanks for replying!

Link to comment
Share on other sites

In that version look in your defines.inc.php in the same folder. Set dev mode to true.

 

Also what modifications have you made to your shop? Have you installed any 3rd party modules that did not ship with prestashop? Have you edited any code?

 

 

edit: As a side note do you have ftp access to your site? If so, rename your .htaccess file in your shop folder.

Link to comment
Share on other sites

Awesome, found that file and altered it. I now get the following error:

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in/home/luvfroma/public_html/shop/tools/smarty/sysplugins/smarty_internal_templateparser.php on line 2731

 

As per the other person with this issue does that mean I need to contact my hosting provider to get a larger allocation?

 

Modifactions to my store:

* Added product

* Installed a couple of free themes ("Martice" and "Black and White") but they were not what I was after

* Purchase and installed Cleve template (http://themeforest.n...p-theme/3717309)

* Reverted back to default to make sure it just wasn't the Cleve theme with the product issue

 

Thinking perhaps the install of the new theme (and associated modules) took up too much space?

 

I haven't touched any code (wouldn't know how to haha!)

 

EDIT: I just saw your "rename" comment - anything in particular it should be renamed to? Thanks!

Edited by luvfromamy (see edit history)
Link to comment
Share on other sites

Your host does not have enough memory allocated to your account to run Prestashop. Depending on how your host has things set up, you can allocate more memory. Read this article on how to set up a php.ini file. http://presto-changeo.tumblr.com/post/17589539698/understanding-php-ini-how-and-why-you-need-one

 

I would suggest setting the memory at 128. If you get the same error, with the same amount of allowed memory size, then your host does not allow you to modify the memory amount and Prestashop will not be able to run.

  • Like 1
Link to comment
Share on other sites

Thanks for the article.. Thinking it might take a bit of brain power from my end (haha) so I may have to look at it after hours.

 

I have one concern.. My actual domain name "www.luvfromamy.com" was purchased through GoDaddy via Blogger (my website is a blogger with a custome name) but I purchased web hosting and added the sub domain "shop.luvfromamy.com" with Crazy Domains.. could the size issue be related to GoDaddy?? I'm hoping it's at Crazy Domains end as I'm sure I can add additional space (even through upgrading- worst case scenario)

 

THANK YOU SO MUCH FOR YOUR HELP! I will let you know how I go :-)

Link to comment
Share on other sites

The problem would be with crazy domains. Upgrading to a bigger account is not a sure way to get more memory, so if the php.ini does not work I would contact them. Php memory is different from disk space or bandwidth.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

Apologies for the bump, but I too had the same problem in the latest version of PrestaShop (1.5.5.0). Unfortunately I did not try the method posted here, as I didn't want to increase resources. As I'm sure I'd have to increase the memory usage again in the future, and this problem would loop. Of course, I could be wrong - if I am, please let me know.

 

As for now, I have disabled Smarty Cache in PrestaShop Admin CP > Advanced Parameters > Performance, then disabled the  first cache option presented (Smarty Cache). This solved the problem for me.

Link to comment
Share on other sites

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...