-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Hi there,
I have isolated an issue which has been causing page load problems on all my sites. I believe this problem came with the last update of Hikashop and is related to the mini cart. On any page that the mini cart is displayed, that page has 20-30 second page load times (usually they are 2-4 seconds). My hosting company has also confirmed that my pages are stalling due to the "com_hikashop" component.
The mini cart module is requesting far more memory than my shared hosting permits, which I believe must be down to an error in code. I have tested this on 5 sites and it is 100% an issue with the mini cart. If I disable the mini cart the pages load fine.
Here is the part where my hosting said there is a memory drainage:
open("/home/xxxxxxxxxxx/public_html/administrator/components/com_hikashop/classes/user.php", O_RDONLY) = 6
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(4, "\r\5\0\0\3UPDATE `or7wa_session`\nSET "..., 1297) = 1297
read(4, "0\0\0\1\0\1\0\2\0\0\0(Rows matched: 1 Cha"..., 16384) = 52
write(1, "\nFatal error: Allowed memory siz"..., 194
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 28112 bytes) in /home/xxxxxxxxx/public_html/administrator/components/com_hikashop/helpers/helper.php on line 1046
If you go to the home page of the URL I attached in this post you will see it loads with no issues. Then try and navigate to any other page (all other pages have the mini cart installed). You will see the issue.
UPDATE I have removed the mini cart from all pages except the shop pages and the contact page.