Cannot View Products in Store after PHP 8.2 update
- jackpotwinner
-
Topic Author
- Offline
Less
More
11 months 3 weeks ago - 11 months 3 weeks ago #369314
by jackpotwinner
"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
Cannot View Products in Store after PHP 8.2 update was created by jackpotwinner
-- 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.
-- 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: 11 months 3 weeks ago by jackpotwinner.
Please Log in or Create an account to join the conversation.
11 months 3 weeks ago #369319
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
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.
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.
- jackpotwinner
-
Topic Author
- Offline
11 months 3 weeks ago #369352
by jackpotwinner
"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
Replied by jackpotwinner on topic Cannot View Products in Store after PHP 8.2 update
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.
11 months 3 weeks ago #369355
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
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.
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.
- jackpotwinner
-
Topic Author
- Offline
11 months 2 weeks ago #369403
by jackpotwinner
"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
Replied by jackpotwinner on topic Cannot View Products in Store after PHP 8.2 update
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?
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.
11 months 2 weeks ago #369405
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
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
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.
- jackpotwinner
-
Topic Author
- Offline
11 months 2 weeks ago #369433
by jackpotwinner
"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
Replied by jackpotwinner on topic Cannot View Products in Store after PHP 8.2 update
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.
11 months 1 week ago #369493
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
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.
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.
- jackpotwinner
-
Topic Author
- Offline
11 months 1 week ago - 11 months 1 week ago #369495
by jackpotwinner
"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
Replied by jackpotwinner on topic Cannot View Products in Store after PHP 8.2 update
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 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: 11 months 1 week ago by jackpotwinner.
Please Log in or Create an account to join the conversation.
11 months 1 week ago #369511
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
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.
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.
- jackpotwinner
-
Topic Author
- Offline
10 months 4 weeks ago #369662
by jackpotwinner
"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
Replied by jackpotwinner on topic Cannot View Products in Store after PHP 8.2 update
Okay, thank you so much. I will have to hire someone to look into this at some point. Perhaps with recent upgrades this issue will resolve itself.
In the meantime, would it be possible to get the documentation on what you did? I am asking because if I do have a problem on my site, I will need the debug to work properly. Would it be best to just upload a new version of the plugin? Of course, that will negate your edits. Or perhaps, I should just download the one you edited first???
Also, where did you add the css? Again, I want to know so in case this resolves itself. I can delete the code.
In the meantime, would it be possible to get the documentation on what you did? I am asking because if I do have a problem on my site, I will need the debug to work properly. Would it be best to just upload a new version of the plugin? Of course, that will negate your edits. Or perhaps, I should just download the one you edited first???
Also, where did you add the css? Again, I want to know so in case this resolves itself. I can delete the code.
"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.
10 months 4 weeks ago #369663
by nicolas
Replied by nicolas on topic Cannot View Products in Store after PHP 8.2 update
Hi,
I didn't change the code of the plugin. I only edited its settings via the Joomla plugins manager, and disabled them. So you can just enable them back if necessary.
Regarding the CSS, you can look at the HTML of the debug bar on your website via your browser inspector ( i.imgur.com/VvTiThc.png ) and you'll see I've added the code:
.phpdebugbar {
display: none;
}
in the file media/com_hikashop/css/frontend_custom3.css
I didn't change the code of the plugin. I only edited its settings via the Joomla plugins manager, and disabled them. So you can just enable them back if necessary.
Regarding the CSS, you can look at the HTML of the debug bar on your website via your browser inspector ( i.imgur.com/VvTiThc.png ) and you'll see I've added the code:
.phpdebugbar {
display: none;
}
in the file media/com_hikashop/css/frontend_custom3.css
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds