Cannot manage plugins - php error in CustomTheme.php

Hello, my matomo install is collection data for the most part, with the exception of the AI bot data collection. It appears that I need to turn on the AI bot plugin, but when I go to admin it’s not possible…I get the following error when selecting any plugin management option. I also get it with the System Check option:

Matomo encountered an error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) (which lead to: The class CustomTheme couldn’t be found in the file ‘/home/xxmyuserxx/public_html/matomo/plugins/CustomTheme/CustomTheme.php’)

I am also getting the pink and yellow boxes on every administration page and a warning that say:

“Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Matomo administrator for assistance”

Warning - The PHP version 7.4 you are using has reached its End of Life (EOL). You are strongly urged to upgrade to a current version, as using this version may expose you to security vulnerabilities and bugs that have been fixed in more recent versions of PHP.”

I cannot manage any of the plugins at all, nor can I see what plugins are active. The other admin options Personal, System, Privacy, etc all work normally. It appears that this might be a matter of using an outdated version of php. Is there any other way to access the plugins or repair the page so I can proceed? I can’t update php now as it breaks my front end, I need to edit some site templates first. Thanks for any help!

Hello @andrewp ,

I developped the CustomTheme.php plugin, so i feel a bit concerned here about your message.

I will do my best to help, can you disable the custom theme plugin and see how it goes?

If that works, i will see for a fix.

Thank you,