Fatal Error: Allowed memory size

  • Posts: 79
  • Thank you received: 2
11 years 5 months ago #152628

Joomla 2.5.19
Hikashop Business 2.3.0

I am getting the following message:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 393216 bytes) in \html\com_hikashop\product\show_default.php on line 362

I have looked through the forums and did change several things. I changed the php.ini to 256M. I removed hikashop and reinstalled it (removed dbase, cache, etc.).
This only happens on the product page. I first had 3 pictures on it, which neither where over 250kb. So the page its trying to load even without the pictures hardly have anything on it.. not even text. So for an almost empty page it needs more then 256M.

I just did a check with firebug and looks like its looping. This is part of it. It actually kept going.

<html>
<head></head>
<body>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<form enctype="multipart/form-data" name="hikashop_product_form" method="post" action="/en/designs/product/updatecart">
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
<div class="clear_both"></div>
<div id="hikashop_product_New_dark_Template_page" class="hikashop_product_page">
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</body>
</html>

Update:
It has something to do with the show page i think. I went to configuration - display - Default parameters for products
and changed "Layout on product page" to tabular and it will show the page.

Last edit: 11 years 5 months ago by rkuiper.

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 5 months ago #152636

Hi,

This indicate that the show_default layout is calling itself and because of that it loops.
You apparently did some modifications in the view files of the product view which caused that.
Because we don't have such issue on our end.
Rename the file templates\YOUR_TEMPLATE\html\com_hikashop\product\show_default.php to something and you should be able to use again the default product page layout with its default display.

The following user(s) said Thank You: rkuiper

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

  • Posts: 79
  • Thank you received: 2
11 years 5 months ago #152728

Thank you Nicolas,
I did try to move the description to the right side the way described here http://www.hikashop.com/forum/product-category-display/864465-move-product-description-to-right-side-of-product.html
That was earlier that day. I saved the original, but something must have gone wrong with it. Thats why i decided to unintall and do reinstall figuring it would be clean install. Post didnt show to look under the template folder for views, just dbase, cache etc. Was long day so i probably overlook some stuff to. Thanks again. I am going to try it again.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum