4.6 update fails – PHP Fatal error: Cannot declare class NinjaFirewall_helper
-
Have you had any reports of a fatal error on update to v.4.6? The update has failed on one site with the following error logged:
[12-Aug-2024 07:24:47 UTC] Automatic updates starting...
[12-Aug-2024 07:24:47 UTC] Automatic plugin updates starting...
[12-Aug-2024 07:24:47 UTC] Upgrading plugin 'ninjafirewall'...
[12-Aug-2024 07:24:48 UTC] Plugin 'ninjafirewall' has been upgraded.
[12-Aug-2024 07:24:50 UTC] Scraping home page...
[12-Aug-2024 07:24:50 UTC] PHP Fatal error: Cannot declare class NinjaFirewall_helpers, because the name is already in use in /home/xxxx/public_html/xxxx.xx/wp-content/plugins/ninjafirewall/lib/class-helpers.php on line 14
[12-Aug-2024 07:24:50 UTC] '###### wp_scraping_result_start:4078c5eca0f71757fdb579d39ceab152 ######
{"type":"64","message":"Cannot declare class NinjaFirewall_helpers, because the name is already in use","file":"wp-content\\/plugins\\/ninjafirewall\\/lib\\/class-helpers.php","line":"14"}
###### wp_scraping_result_end:4078c5eca0f71757fdb579d39ceab152 ######
'
[12-Aug-2024 07:24:51 UTC] The update for 'ninjafirewall' contained a fatal error. The previously installed version has been restored.
[12-Aug-2024 07:24:51 UTC] Automatic plugin updates complete.
[12-Aug-2024 07:24:51 UTC] Automatic updates complete.I have tried disabling all other plugins and enabling a Twenty^ theme, but the update still fails with the same error. Another site on the same server has updated to v.4.6 without any issues. There are three issues in Site Health:
An active PHP session was detected
The REST API encountered an error
Your site could not complete a loopback requestBut these appear to be browser-cache related, as when I open the back-end in a private browser window, they do not appear in Site Health. If I try to update NinjaFirewall in that same private browser session with no Site Health issues, I again get: “Plugin could not be activated because it triggered a fatal error“.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.