- Posts: 198
- Thank you received: 0
Crash in php 8.1 due to quirks mode
-
Danimeeka
Active member - Topic Author
- Member
Less
More
1 year 3 weeks ago #50927
by Danimeeka
Crash in php 8.1 due to quirks mode was created by Danimeeka
Hi,
The website at adorablekateringcanapes.com.au/ throws a 500 error when I change php from 8.0 to 8.1. It is built on the Nails salon template.
When I use "Inspect" in Firefox and look at console, the error is described as follows: This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
When I view page source I can clearly see <!DOCTYPE html> at the top of the code. When I check /templates/sparky_framework/index.php I can see <!DOCTYPE html> after some initial lines of php.
Do you know how I can stop the website throwing a "quirks mode" error when I change to php 8.1?
Thanks very much,
Julia.
The website at adorablekateringcanapes.com.au/ throws a 500 error when I change php from 8.0 to 8.1. It is built on the Nails salon template.
When I use "Inspect" in Firefox and look at console, the error is described as follows: This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
When I view page source I can clearly see <!DOCTYPE html> at the top of the code. When I check /templates/sparky_framework/index.php I can see <!DOCTYPE html> after some initial lines of php.
Do you know how I can stop the website throwing a "quirks mode" error when I change to php 8.1?
Thanks very much,
Julia.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6742
- Thank you received: 715
1 year 3 weeks ago #50928
by milos
Replied by milos on topic Crash in php 8.1 due to quirks mode
Hello,
All our Joomla 3, Joomla 4 and Joomla 5 templates are compatible with PHP 8.1 and PHP 8.2. Maybe you are using some outdated template files (downloaded a year ago or earlier), so you should re-download the template files and re-install it (use the standard installation method).
However, I think the more likely reason is an extension (plugin or module) that you are using that's not compatible with PHP 8.1. You can check this if you disable the additional extensions one by one until you see which one makes that problem.
Regards,
Milos
All our Joomla 3, Joomla 4 and Joomla 5 templates are compatible with PHP 8.1 and PHP 8.2. Maybe you are using some outdated template files (downloaded a year ago or earlier), so you should re-download the template files and re-install it (use the standard installation method).
However, I think the more likely reason is an extension (plugin or module) that you are using that's not compatible with PHP 8.1. You can check this if you disable the additional extensions one by one until you see which one makes that problem.
Regards,
Milos
Please Log in to join the conversation.
-
Danimeeka
Active member - Topic Author
- Member
Less
More
- Posts: 198
- Thank you received: 0
1 year 1 week ago #50944
by Danimeeka
Replied by Danimeeka on topic Crash in php 8.1 due to quirks mode
Hi Milos,
Thank you for replying to my query. After quite a bit of testing I have finally found the cause of the website abending when run on php 8.1: The php extensions mysqlnd and nd_mysqli need to be turned on. (Unfortunately, by default my hosting company has them switched off.) Once I switched these on the website ran perfectly.
I thought I would let you know in case other people have a similar problem.
Kind regards,
Julia.
Thank you for replying to my query. After quite a bit of testing I have finally found the cause of the website abending when run on php 8.1: The php extensions mysqlnd and nd_mysqli need to be turned on. (Unfortunately, by default my hosting company has them switched off.) Once I switched these on the website ran perfectly.
I thought I would let you know in case other people have a similar problem.
Kind regards,
Julia.
Please Log in to join the conversation.
Time to create page: 0.270 seconds