SOLVED: broken CSS on backend products page

  • Posts: 23
  • Thank you received: 2
5 years 11 months ago #305313

-- url of the page with the problem -- : impressionsbathroomware.com.au
-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 7
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : none

Client site has broken css only on products page in backend. Are there some simple things I can check? In Backend CSS Options I have changed from default, none to custom but no change in page display.

Attachments:

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

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
5 years 11 months ago #305318

Hi,

That's not a CSS issue. That's a PHP fatal error. Turn on the "error reporting" and "debug mode" settings of the HikaShop configuration and you should see the fatal error message at the bottom of the page which will tell you where the problem is coming from.
Please provide the message and we should be able to tell you what to do.

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

  • Posts: 23
  • Thank you received: 2
5 years 11 months ago #305367

thx Nicolas. I found the error message that was preventing proper page load.
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 22283136 bytes) in /home/impress/public_html/administrator/components/com_hikashop/helpers/image.php on line 232
I have made a php.ini file which is in /administrator folder which now states these massive resources:
magic_quotes_gpc = Off
session.save_path = "/tmp"
max_execution_time = 60
max_input_time = 60
memory_limit = 128M
upload_max_filesize = 64M
post_max_size = 64M

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

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
5 years 11 months ago #305372

Hi,

That was indeed a memory limit issue. Note that 128M for the memory limit is not "massive". It's actually the default for PHP 7.
However, using 64M for a normal page processing is indeed a lot. Normally a normal Joomla page is between 10 and 40M. If you look at the error message, you can see that the error happens in the image helper which tries to allocate 22M of memory at once. This indicates that it's trying to generate a thumbnail of a big image and the image resolution is so big that it takes one third of all the memory needed to process the page. So unfortunately, that's not something we can avoid in HikaShop.
The solution is indeed to either increase the memory limit like you did or use smaller images for the products with big images.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum