Upgrading to PHP 8.0 kills the site Topic is solved

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
MSpina
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Mar 29, 2018 3:54 pm

Upgrading to PHP 8.0 kills the site

Post by MSpina » Wed Jan 11, 2023 7:08 pm

Hi everybody,
my site's backend recommends to switch from PHP 7.4 to 8.0, but doing so the site stops working.
All I get is a completely blank page, while the browser' developer tool says "this page is in Quirks mode".
Searching around it looks like there is some <!DOCTYPE html> declaration missing, but missing from WHERE? :-[ ???
Any suggestion will be highly appreciate, thanks!
Marco
===========================================================
Joomla version: 3.10.11
PHP Version: 8.0.24
Server: Linux staging2.ergonet.host 3.10.0-1160.76.1.el7.x86_64
Browsers tested: Firefox 108.0.1 - Brave v1.46.153 - Safari on iPadOS 16.1.1

gws
Joomla! Champion
Joomla! Champion
Posts: 5950
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Upgrading to PHP 8.0 kills the site

Post by gws » Wed Jan 11, 2023 7:12 pm

You have some extensions/templates that are not php8.x compatible.Switch back to php 7.4 and troubleshoot.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9739
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Upgrading to PHP 8.0 kills the site

Post by AMurray » Wed Jan 11, 2023 9:29 pm

Strange about the DOCTYPE thing, that should be the first line of any HTML document. If you were to open the J3 default template (Protostar) index.php file you should see that DocType declaration at the first line (or near to the first line).

With the PHP problem, is it only the front-end of the site that is not working with the switch to PHP 8.x? Does the back-end still function?

Blank screen indicates PHP errors (but they are not displayed on screen) so you need to enable error reporting (and debug). You can do this through the Joomla administrator, or configuration.php file directly, and also through your web host if they allow you to change some PHP settings like error reporting (e.g. cPanel may have options for PHP settings). The error reporting / debug should identify the problem script or extension that is not working under PHP 8.x
Regards - A Murray
General Support Moderator

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1634
Joined: Tue Jun 30, 2020 12:17 pm

Re: Upgrading to PHP 8.0 kills the site

Post by Pavel-ww » Thu Jan 12, 2023 6:55 am

Hi everybody. @gws gave an exhaustive answer.

But I will add in more detail. Return to PHP 7.4 and check all your third -party extension for compatibility with PHP 8. To do this, find information on the websites of the developers of these extensions. If third -party extensions are not ready for PHP 8, then stay on PHP 7.4 until these extensions are ready for PHP 8. Nothing bad will happen if you stay on PHP 7.4.

MSpina
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Mar 29, 2018 3:54 pm

Re: Upgrading to PHP 8.0 kills the site

Post by MSpina » Wed Jan 18, 2023 11:16 pm

Sorry for answering so late, I was banned for some reason...
Thanks a lot, guys.
Solved, the obsolete component was Widgetkit Lite from YOOtheme, to whom it may concern.


Locked

Return to “General Questions/New to Joomla! 3.x”