Cannot View Products in Store after PHP 8.2 update

  • Posts: 53
  • Thank you received: 0
  • Hikashop Essential
2 weeks 6 days ago #369314

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.2.29
-- Browser(s) name and version -- : Safari and Chrome
-- Error-message(debug-mod must be tuned on) -- : Cannot Decode Raw Data on Safari. The page is blank in Chrome browser. When I put it in debug mode, it works!

I recently updated to PHP 8.2 from 8.1 and now my shop is not working. You cannot get to the product page. You can see the shop but when you click on a product, either you get nothing in the Chrome browser or you get an error message - cannot decode raw data - in Safari.

When I turn on debug mode, the product is visible on the product page. Turn off debug, and you can't see it.

When I switched it back to 8.1, you can click on the product page. The problem with 8.1 is that Joomla warns you to update because it will not support 8.1 for much longer.

I thank you in advance for helping me with this.


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com
Last edit: 2 weeks 6 days ago by jackpotwinner.

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

  • Posts: 84730
  • Thank you received: 13795
  • MODERATOR
2 weeks 6 days ago #369319

Hi,

That's indeed strange. Nothing is returned by the web server on the product page but the listing page displays fine.
I don't see why that would be the case and I don't remember anyone else with the same issue.
This will require investigation.
The first thing is to check the error log of the web server and of PHP. Hopefully, it contains some information on what is going on.
I would also recommend you to contact your hosting provider to see if they can provide more information on why this URL doesn't display anything.

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

  • Posts: 53
  • Thank you received: 0
  • Hikashop Essential
2 weeks 4 days ago #369352

Okay, I contacted my host but they could not figure it out. I viewed the error logs and these are the only errors that show up so far.

This message contains confidential information


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com

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

  • Posts: 84730
  • Thank you received: 13795
  • MODERATOR
2 weeks 4 days ago #369355

Hi,

These are warnings and deprecated messages from other extensions. You can report them to their developer. They will be happy to know about it so that they can improve the code of their extension.
However, it should not change anything to your issue.

Can you try to switch to the default template of Joomla temporarily and see if that helps ? It could be a problem within the template, maybe a view override ?
Also, a temporary solution could be to keep the debug turned on and deactivate the system debug plugin via the Joomla plugins manager. That way, it wouldn't display the debug on the frontend but it should still work fine.

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

  • Posts: 53
  • Thank you received: 0
  • Hikashop Essential
1 week 6 days ago #369403

I switched to the default template and it still does not work.

When I tried your temporary fix, it did not work. Once I deactivated the debug plugin, I could not view the product.

I currently just have the debug on so the product can be viewed. Are there other options to get this resolved?


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com

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

  • Posts: 84730
  • Thank you received: 13795
  • MODERATOR
1 week 6 days ago #369405

Hi,

Then it is difficult to solve without looking deep into it.
Please provide a backend super admin access (to check the settings if necessary during the analysis) and a FTP access (to add debug to narrow down the cause of the problem) and maybe an access where it is possible for me to switch between the 8.1 and the 8.2 during my tests if you don't want to leave it to 8.2 for 1 or 2 days.
Ideally, if you could make a copy of the website on the 8.2 environment so that I could look into it without impacting your live website, that would be even better.
Please provide that information via our contact form along with a link to this thread for reference:
www.hikashop.com/support/contact-us.html

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

  • Posts: 53
  • Thank you received: 0
  • Hikashop Essential
1 week 4 days ago #369433

I sent the email. Thanks!


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com

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

  • Posts: 84730
  • Thank you received: 13795
  • MODERATOR
1 week 43 minutes ago #369493

Hi,

Sorry for the delay, I was not available to look into it at the end of last week and then there was the weekend.
I wanted to look into it today, but I don't see the problem on your website anymore.
I checked your backend and I can see that you're still on PHP 8.2.
So either you found the issue and the solution, or I'm missing something.

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

  • Posts: 53
  • Thank you received: 0
  • Hikashop Essential
1 week 30 minutes ago #369495

I understand the delay. I am just happy for the support.

The issue is still there. I just have it in debug mode, which is why it appears to be fixed.


"The doctor of the future will give no medicine, but will interest his patients in the care of the human frame, in diet, and in the cause and prevention of disease." Thomas Edison

Meditation for Health
www.seekwithinyou.com
Last edit: 1 week 19 minutes ago by jackpotwinner.

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

  • Posts: 84730
  • Thank you received: 13795
  • MODERATOR
5 days 23 hours ago #369511

Hi,

So, I didn't find the problem.
If I add an exit at the end of the frontend processing of HikaShop, I do see the product page content (without the template around). This means that the issue is not during the processing in HikaShop.
I also tried to switch to the default template just in case, but again, same issue.
So, I'm out of ideas on the causes.
So I've switched to the next best thing which is to make it work around the problem.
For that, I've done two things:
- I've edited the settings of the Joomla debug plugin and disabled everything there. That way, no sensible information is displayed in the debug bar at the bottom.
- I've added a piece of CSS to hide the debug bar.
So, right now, it works and the debug bar doesn't display. It's not pretty, but I couldn't find better. The problem is probably elsewhere on the website.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum