'ApplicationHelper' conflict (namespace problem)

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, 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
gmrob
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Feb 28, 2020 3:33 am

'ApplicationHelper' conflict (namespace problem)

Post by gmrob » Sat May 18, 2024 9:35 am

Our established site uses ZOO and SP PageBuilder extensions extensively, and after our update to Joomla 4, it so happens that both extensions use an identically named class ApplicationHelper without a "namespace", which causes a conflict. Both say its too complex to fix, but it's very important we get it resolved.

Can anyone suggest a way to fix the problem?

thanks,
Geoff

MarkRS
Joomla! Explorer
Joomla! Explorer
Posts: 351
Joined: Thu Oct 29, 2009 8:28 am
Location: UK

Re: 'ApplicationHelper' conflict (namespace problem)

Post by MarkRS » Sun May 19, 2024 5:51 pm

Just so you know someone's listening :)

Since this is exactly the problem that namespacing is designed to avoid, them refusing to use namespacing makes the problem insoluble. That's not definitive, of course. I'm sure a solution could be found, but I'd be surprised if it was worth the effort to implement and maintain.

Strange that neither have the will to fix it.
Strange that they've (presumably) caused the problem with their J4 updates (how did it work before if it's not a change they've made?)
I've head of both but used neither. This doesn't inspire me to start.
It's a community, the more we all contribute, the better it will be.

gmrob
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Feb 28, 2020 3:33 am

Re: 'ApplicationHelper' conflict (namespace problem)

Post by gmrob » Mon May 20, 2024 12:43 pm

They are both good extensions, though this oversight seems completely unacceptable for commercial extensions.

The problem seems related to the backend, and only conflicts in some admin views. Most of the time the two live together quite well. So, is there a way to find out the lines where the conflict occurs and handle them one bv one? If so, what would be the way to do it?

gmrob
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Feb 28, 2020 3:33 am

Re: 'ApplicationHelper' conflict (namespace problem)

Post by gmrob » Tue May 28, 2024 2:52 am

Any other suggestions on how to fix the problem?

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

Re: 'ApplicationHelper' conflict (namespace problem)

Post by SharkyKZ » Tue May 28, 2024 5:12 am

This is something that really needs to be fixed by the developer. Either that or you have to fix it yourself. There are tools like Rector (https://github.com/rectorphp/rector/blo ... lassrector) that can automate the replacement process. But your changes will be lost on update.


Post Reply

Return to “Joomla! 4.x Coding”