PHP 8.0 and com_config override

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

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
heleneross
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 30, 2012 12:05 pm

PHP 8.0 and com_config override

Post by heleneross » Mon Nov 22, 2021 11:18 am

I want to upgrade my site to PHP 8.0. Everything is working except the override for com_config modules. This issue occurs on every site I have tried upgrading. All other overrides seem to be working. I deleted my original override in my template html folder and tried going into administrator and creating a new template override for it, but still I get the original default.php from the component folder.

If I switch back to PHP 7.4 the override works again.

Note this is not a template issue as the same thing happens in Protostar.

Can anybody explain what is going on here?

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

Re: PHP 8.0 and com_config override

Post by toivo » Sat Nov 27, 2021 3:04 am

A quick test using Wampserver on localhost with PHP 8.0.8 and PHP 7.4.14 confirmed the failure when trying to override the modules view in the com_config component when using the Protostar template in Joomla 3.10.3 with PHP 8.

Will you be able to create a new issue at https://issues.joomla.org? Refer to this topic in the description of the issue.
Toivo Talikka, Global Moderator

heleneross
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 30, 2012 12:05 pm

Re: PHP 8.0 and com_config override

Post by heleneross » Mon Nov 29, 2021 7:40 pm

Hi I am not able to post this issue. I just tried with J4 and that is working as expected so it is a J3 and PHP8 issue.

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2054
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: PHP 8.0 and com_config override

Post by SharkyKZ » Tue Nov 30, 2021 8:51 am

In case anyone wants to fix this, in SplPriorityQueue::insert() calls change priority from normal to 0. E.g. here https://github.com/joomla/joomla-cms/bl ... hp#L53-L55 and in other places.

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

Re: PHP 8.0 and com_config override

Post by toivo » Tue Nov 30, 2021 9:02 am

@SharkyKZ, thanks for the tip - and also for once again dispelling the myth that Joomla core developers rarely visit these forums...
Toivo Talikka, Global Moderator

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2054
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: PHP 8.0 and com_config override

Post by SharkyKZ » Tue Nov 30, 2021 9:11 am

There are no core developers here. But if you run into any, pass them the tip :pop


Post Reply

Return to “Administration Joomla! 3.x”