Errors with php8.2 / 8.3

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
stevent
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Sep 15, 2005 6:05 pm
Location: Nijmegen, Netherlands
Contact:

Errors with php8.2 / 8.3

Post by stevent » Mon Mar 11, 2024 12:56 pm

I just migrated a Joomla 3 site (which was still on Joomla 3.10.0…) to Joomla 4.4.3. When I set PHP to 8.2 or above, I get the following errors in the admin login page if the error messages are set to maximum:

Code: Select all

Deprecated: Creation of dynamic property Joomla\Database\Mysql\MysqlDriver::$charset is deprecated in /subsites/pintails-curlews.nl/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php on line 121

Warning: session_name(): Session name cannot be changed after headers have already been sent in /libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 405
And in the frontend or if I'm already logged in in the admin and change the php version:

Code: Select all

Deprecated
: Creation of dynamic property Joomla\Database\Mysql\MysqlDriver::$charset is deprecated in
/libraries/vendor/joomla/database/src/Mysql/MysqlDriver.php
on line
121
I've removed the old template and all incompatible plugins. In fact the only non core extension is Akeeba backup.
I created a child template based on Cassiopeia. But even if I set the template to the default Cassiopeia I get these errors.

Must I conclude that Joomla 4 isn't really php 8.2+ compatible (though the recommended requirements state otherwise)? Should I stick to outdated php 8.1 or just ignore the warnings (which won't show if the error messages are set to none)?

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

Re: Errors with php8.2 / 8.3

Post by AMurray » Mon Mar 11, 2024 9:54 pm

deprecated notices just mean that a particular php function or feature is outdated. You can probably safely turn the error reporting to "default" or "none".

Did you update Akeeba Backup - and what version were/are you using?
https://www.akeeba.com/compatibility.html. Akeeba Backup 9.6.2 will run on PHP 8.2 but not 8.3. v9.8.5 will run on 8.2 and 8.3

Can you enable debug; that will give further detailed error messages to what the specific thing that is possibly causing the problems.
Regards - A Murray
General Support Moderator

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Errors with php8.2 / 8.3

Post by leolam » Sun Mar 24, 2024 4:00 pm

Pls post results of https://forumpostassistant.github.io/docs/ FPA here

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”