Advertisement

Non-static method Joomla\CMS\Toolbar\ToolbarButton

General questions relating to Joomla! 4.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
Post Reply
Levy3
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Jan 19, 2025 8:41 pm

Non-static method Joomla\CMS\Toolbar\ToolbarButton

Post by Levy3 » Sun Jan 19, 2025 10:35 pm

Hallo.
I've a problem. I want to instal any new module on my site and I receive error:Non-static method Joomla\CMS\Toolbar\ToolbarButton::fetchIconClass() cannot be called statically.
Please give me any advice !
THX
Levy3

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

Re: Non-static method Joomla\CMS\Toolbar\ToolbarButton

Post by toivo » Mon Jan 20, 2025 12:36 am

Welcome to the Joomla forum!

Does the error message contain the location of the script that calls the non-static method fetchIconClass(), defined inside the class ToolbarButton? If not, please enable the option Debug System in Global Configuration so that the error message contains more details and has possibly also the PHP call stack.

The error message comes from a third party extension that does not support Joomla 4. All the calls from the Joomla 4.4.10 core to the method fetchIconClass() work correctly.
Toivo Talikka, Global Moderator

Advertisement

Post Reply

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