Memory exhausted for one product only

  • Posts: 7
  • Thank you received: 0
11 years 3 months ago #115160

hi there -

For only one product in my hikashop installation i get this error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/washedup/public_html/components/com_hikashop/views/product/tmpl/show.php on line 371

I checked my PHP settings and my max is 32M. I guess the .5M needed to load this product broke it somehow??

What should I do about this?

I noticed last week for a brief period every product detail page on the site was inaccessible because of memory problems, but it fixed itself automatically. Now its only this one product....


thanks for the idea!
carolyn

washedupjewelry.com
product in question: Seaglass jewelry category, double seaglass ring

Please Log in or Create an account to join the conversation.

  • Posts: 82731
  • Thank you received: 13345
  • MODERATOR
11 years 3 months ago #115162

Hi,

32M can be quite low for a joomla website and product pages can be quite resource hungry when you have a lot of variants (each variant of a product is like a product so if you have a product with 500 variants, that's 501 products loaded on the product page).
The simplest will be to ask your hosting company to increase your memory limit to 64M.
Another solution would be to use custom item fields instead of variants/characteristics since you don't need to change the price/image/description based on the selected variant. Custom item fields won't eat any memory so it would only load one product on the product page, greatly helping you staying below your 32M memory limit. Note however that custom item fields are only available in the Business edition of HikaShop.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum