Jump to content

After upgrade from 1.4.11 error 500


malcek

Recommended Posts

HI,

after upgrade I get error on some products.

 

On this link everything is working fine

http://strojno-vezenje.si/si/dekliske-hlace/132-dekliske-jeans-hlace.html

 

on this link i get error 500

http://strojno-vezenje.si/si/push-up-nedercki/5054-nedrcek-diana-b-152.html

 

this is holding me back from upgrade to lastest version for long time. i even buy server (where I can set running time of script) but same error on my hosting comapnies servers and mine as well

 

Does enybody can help me with that?

 

Martin

 

Link to comment
Share on other sites

if you've got internal server error - it is necessary to turn error reporting on. please follow this:

 
open: config/defines.inc.php
 
find this line
define('_PS_MODE_DEV_', false);
change to look like this:
define('_PS_MODE_DEV_', true);
Link to comment
Share on other sites

Here is link from where I came on this product (at very bottom of the page). In this category I can open product on some other I can.

http://strojno-vezenje.si/si/74-push-up-nedercki?n=50&id_category=74&p=8 (can't open)

 

on this category you can open all product

http://strojno-vezenje.si/si/79-mehki-zenski-nedercki

 

If I put product in second category I can open

http://strojno-vezenje.si/si/mehki-zenski-nedercki/5054-nedrcek-diana-b-152.html

this product is assign to both category, but main categori is the one I can open.

 

this is very strange and I can't resolve this by my self :(

 

martin

Link to comment
Share on other sites

 

if you've got internal server error - it is necessary to turn error reporting on. please follow this:

 
open: config/defines.inc.php
 
find this line
define('_PS_MODE_DEV_', false);
change to look like this:
define('_PS_MODE_DEV_', true);

 

DONE

Link to comment
Share on other sites

Vekia 

you are the champion :)

 

now when I disable all modules the product was open normaly.

 

Thank you for pointing what all those lines are....

 

Now It it only to get all this modules updated to latest version...

 

thanks again.

 

Martin

Link to comment
Share on other sites

Hi

 

for the last few days I try almost any scenario, but with no luck

 

I made fresh install of Prestashop and then import of data, only database. I leave original modules and files. and the newproduct module still make problem even on default theme?!? after I disable all problematic modules I still stuck with one error

 

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 130968 bytes) in /var/zpanel/hostdata/zadmin/public_html/presta_si/classes/Configuration.php on line 234

 

this is the code in this file which is called

if ($id_shop)

return isset(self::$_CONF[$id_lang]['shop'][$id_shop]) && array_key_exists($key, self::$_CONF[$id_lang]['shop'][$id_shop]);
elseif ($id_shop_group)
return isset(self::$_CONF[$id_lang]['group'][$id_shop_group]) && array_key_exists($key, self::$_CONF[$id_lang]['group'][$id_shop_group]);
return isset(self::$_CONF[$id_lang]['global']) && array_key_exists($key, self::$_CONF[$id_lang]['global']);
 
Do you have any Idea why is that?
 
best regards 
 
Martin
Link to comment
Share on other sites

Any idea?

 

Hi Martin, this is a server error that is being thrown. Your server does not have the required amount of memory. You can change this in your php.ini file if you have access to it. Overall, you should contact your hosting provider to look over your permissions to change these values.

 

It seems you have a memory_limit of 128 megabytes. You may need more in order to update your modules. See if you can raise this limit and if only temporarily. 

 

Here is an excerpt from our Blog post, the full one can be found here. http://www.prestashop.com/blog/en/utilize-the-php-ini-file-to-optimize-your-ecommerce-store/

 

memory_limit = Maximum amount of memory a script may consume, in megabytes
 
Webhosts have default values regarding the amount of memory you are allowed on your account. PrestaShop 1.5 recommends 64mb as a minimum, which is very lightweight. However, if you have a more resource intensive store, you may need to change this value. This setting is especially important to consider if you are having a “Fatal Error: Allowed memory size” issue or if your Modules tab in your Back-Office is returning a blank white page.
 
Let’s increase this value to 128M. If you are still having problems with memory errors, increase the value to 256M to be safe. I’ve seen some extremely large resource intensive stores on dedicated hosting have as much as a 1-2GB of memory; it really depends on your store.
Find your php.ini file and search for “memory_limit”. Some shared hosts will have the default limit at 32M but most will have either 64M or 128M.
When you change it, the line in your php.ini file will look like this
“memory_limit = 128M”
Link to comment
Share on other sites

Hi, Benjamin

this issue I have on several hosting company (my local where I have all my sites, Goodaddy, Hostgator, now I have my own server installed at hoe just for upgrading prestashop from 1.4 to 1.5.). The upgrade is goes well, but for some reason on some categories I get this error on some not.

 

This is very strange behavior.

 

here is server information:

Server information: Linux #62-Ubuntu SMP Thu Aug 22 00:55:19 UTC 2013 x86_64

Server software version: Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.4

PHP version: 5.4.6-1ubuntu1.4

Memory limit: 1G

Max execution time: 300

 

 

Database information

MySQL version: 5.5.32-0ubuntu0.12.10.1-log

MySQL engine: InnoDB

Tables prefix: ps_

 

Store information

PrestaShop version: 1.5.5.0

Shop URL: http://strojno-vezenje.si/

Current theme in use: default

  

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.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36

 

I have 12 GB of ram installed so it should be enought

Link to comment
Share on other sites

after I raise memory to 1G I still get this error

 

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 130968 bytes) in /var/zpanel/hostdata/zadmin/public_html/presta_si/classes/shop/Shop.php on line 160

 

 

best regards,

martin

Link to comment
Share on other sites

you probably do not need more than 1/2 gb.  I have never seen this error with 1gb...try doubling that...and see what happens...

 

that being said, the errors are only pointing at the code that could not obtain the memory....

 

in the  settings.inc.php file change, then reproduce the 500 error (running out of storage)...

define('_PS_DEBUG_PROFILING_', false);

to

define('_PS_DEBUG_PROFILING_', true);

Link to comment
Share on other sites

HI,

I raise ram up to 3G and still get this error

 

Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 130968 bytes) in /var/zpanel/hostdata/zadmin/public_html/presta_si/classes/shop/Shop.php on line 160

 

This is something that I can't belive. On version 1.4.11 it wokrs just fine

 

here is link to wokring site with 1.4.11

category link

 

product in that category

 

now same category and product on upgraded site with presta 1.5.5.0 it doesen't work.

 

martin

Link to comment
Share on other sites

 

you probably do not need more than 1/2 gb.  I have never seen this error with 1gb...try doubling that...and see what happens...

 

that being said, the errors are only pointing at the code that could not obtain the memory....

 

in the  settings.inc.php file change, then reproduce the 500 error (running out of storage)...

define('_PS_DEBUG_PROFILING_', false);

to

define('_PS_DEBUG_PROFILING_', true);

 

 

HI,

I raise ram up to 3G and still get this error

 

Fatal error: Allowed memory size of 3221225472 bytes exhausted (tried to allocate 130968 bytes) in /var/zpanel/hostdata/zadmin/public_html/presta_si/classes/shop/Shop.php on line 160

 

This is something that I can't belive. On version 1.4.11 it wokrs just fine

 

here is link to wokring site with 1.4.11

category link

 

product in that category

 

now same category and product on upgraded site with presta 1.5.5.0 it doesen't work.

 

martin

 

 

did you turn on profiling?

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

Hi Benjamin 

 

sorry for late replay. Previous links are broken, since I have assing that domain to other purposes and move problematic shop to new address

 

www.strojno-vezenje is now  active shop for resolving this issue.

 

Here is my findings for last month of testing. In meanwhile I also hire mysql specialist for checking my database, no error find.

 

If I made new category and put one product inside it opens normaly. Sample of link which is opened normaly

http://strojno-vezenje.si/en/push-up-bras/5372-kate-bra-av-69.html

 

and now the same product in category that contains more than 5-6 product inside

http://strojno-vezenje.si/en/push-up-bras/5372-kate-bra-av-69.html

 

It is completly the same product, only assign to two different categories

 

If you have any idea why is that possible im all opened ears :) I also post this issue on Bug tracker.

 

Best regards,

 

Martin

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