PHP 7.4 to 8.0 - "CMSPlugin::loadLanguage() cannot be called statically"

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, 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.
Locked
Zachsayre
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Aug 01, 2012 3:42 am

PHP 7.4 to 8.0 - "CMSPlugin::loadLanguage() cannot be called statically"

Post by Zachsayre » Thu Feb 16, 2023 4:58 am

I just update from php 7.4 to 8.0. tried to login to the admin area and I get this same error message.

0 Non-static method Joomla\CMS\Plugin\CMSPlugin::loadLanguage() cannot be called statically

Not running jsecure plugin
Last edited by toivo on Thu Feb 16, 2023 5:17 am, edited 2 times in total.
Reason: mod note: split from someone else's topic - please create your own topics in the future!

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17510
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: PHP 7.4 to 8.0 - "CMSPlugin::loadLanguage() cannot be called statically"

Post by toivo » Thu Feb 16, 2023 5:24 am

It looks like either Joomla or one of the third party extensions is not compatible with PHP 8.0.

More information is required. Write-enable the file configuration.php in the main Joomla folder and make the following temporary changes, then save the file:

Code: Select all

	public $debug = 1;	
        public $error_reporting = 'maximum';
Try to access the back end again and copy and paste the error message and the call stack here for advice. The messages will now identify the script where the error occurs.

Alternatively, use the cPanel provided by your host and change the version of PHP back to 7.4. Post the results from the Forum Post Assistant (FPA) by following the instructions at https://forumpostassistant.github.io/docs/ so that our volunteer experts can review the configuration and advise.
Toivo Talikka, Global Moderator


Locked

Return to “Extensions for Joomla! 3.x”