malcek Posted September 9, 2013 Share Posted September 9, 2013 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 More sharing options...
benjamin utterback Posted September 9, 2013 Share Posted September 9, 2013 Hi Martin, both webpages look the same to me. That is because I think you are on maintenance mode. Please turn it off and we can further investigate. Thank you! Link to comment Share on other sites More sharing options...
malcek Posted September 9, 2013 Author Share Posted September 9, 2013 Sorry, my mistake. now it is open martin Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 9, 2013 Share Posted September 9, 2013 How do you get to a product with a 500 error on it? I know you gave me an example product but I would like to see the path that it is coming from. Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 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 More sharing options...
malcek Posted September 9, 2013 Author Share Posted September 9, 2013 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 More sharing options...
malcek Posted September 9, 2013 Author Share Posted September 9, 2013 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 More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 so this is effect: [Debug] This page has movedPlease use the following URL instead: http://strojno-vezenje.si/si/mehki-zenski-nedercki/5054-nedrcek-diana-b-152.html Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 + take a look on this: it looks like your theme (especially modules that you use) aren't fully compatibile with your ps version Link to comment Share on other sites More sharing options...
malcek Posted September 9, 2013 Author Share Posted September 9, 2013 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 More sharing options...
malcek Posted September 9, 2013 Author Share Posted September 9, 2013 maybe to soon to be happy http://strojno-vezenje.si/si/string-hlacke/11341-kinga-2125-islenos-zenske-hlacke.html here is the problem still there martin Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 really weird. you modifed something in new products block module? Link to comment Share on other sites More sharing options...
malcek Posted September 14, 2013 Author Share Posted September 14, 2013 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 More sharing options...
malcek Posted September 16, 2013 Author Share Posted September 16, 2013 Any idea? Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 16, 2013 Share Posted September 16, 2013 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 More sharing options...
malcek Posted September 17, 2013 Author Share Posted September 17, 2013 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 informationMySQL version: 5.5.32-0ubuntu0.12.10.1-log MySQL engine: InnoDB Tables prefix: ps_ Store informationPrestaShop version: 1.5.5.0 Shop URL: http://strojno-vezenje.si/ Current theme in use: default Mail configurationMail method: You are using the PHP mail function. Your informationYour 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 More sharing options...
malcek Posted September 17, 2013 Author Share Posted September 17, 2013 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 More sharing options...
malcek Posted September 19, 2013 Author Share Posted September 19, 2013 any idea why is that? martin Link to comment Share on other sites More sharing options...
El Patron Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
malcek Posted September 19, 2013 Author Share Posted September 19, 2013 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 More sharing options...
El Patron Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
malcek Posted September 19, 2013 Author Share Posted September 19, 2013 now I did. It is in define.php and until I have set PS_MODE_DEV to true it won't show me this. When I disable this now It shows all needed information. martin Link to comment Share on other sites More sharing options...
malcek Posted November 25, 2013 Author Share Posted November 25, 2013 (edited) Hi, now I found out that on some categories where it it inside more than 6-7 product I get this error. Under this number same product are opening normaly. Does anybody now have the clue why is this? best regards, Martin Edited November 25, 2013 by malcek (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 25, 2013 Share Posted November 25, 2013 Hi Martin, I am unable to access your 1.5 site, the links you have all lead to the 500 error that you speak of but I would like to see the Homepage. Could you make sure to have a working backup and try and use the default theme to see if the error is the same. Also, could you post your shop.php here as well. Cheers, Link to comment Share on other sites More sharing options...
malcek Posted December 6, 2013 Author Share Posted December 6, 2013 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 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