Crash in php 8.1 due to quirks mode

More
1 year 3 weeks ago #50927 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.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 3 weeks ago #50928 by milos
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

Please Log in to join the conversation.

More
1 year 1 week ago #50944 by Danimeeka
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.

Please Log in to join the conversation.

Time to create page: 0.270 seconds
Powered by Kunena Forum