Plugin Author
Paul
(@paultgoodchild)
When you say “site broke”, what happened? Were there errors? Can you get errors from the logs?
Thread Starter
jstarj
(@jstarj)
With both plugins running under 7.4 I either get WP critical error message, timed out or 500.
Debug log:
06-Jun-2021 12:46:17 UTC] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 249856 bytes) in /home/sunningd/dev.mysite.org.uk/wp/wp-includes/pomo/streams.php on line 215
[07-Jun-2021 16:47:57 UTC] PHP Warning: include(/home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/../../src/Controller/Controller.php): failed to open stream: No such file or directory in /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/ClassLoader.php on line 476
[07-Jun-2021 16:47:57 UTC] PHP Warning: include(/home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/../../src/Controller/Controller.php): failed to open stream: No such file or directory in /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/ClassLoader.php on line 476
[07-Jun-2021 16:47:57 UTC] PHP Warning: include(): Failed opening '/home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/../../src/Controller/Controller.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/src/lib/vendor/composer/ClassLoader.php on line 476
[07-Jun-2021 16:47:57 UTC] PHP Fatal error: Uncaught Error: Class 'FernleafSystems\Wordpress\Plugin\Shield\Controller\Controller' not found in /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/init.php:51
Stack trace:
#0 /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/icwp-wpsf.php(43): require_once()
#1 /home/sunningd/dev.mysite.org.uk/wp/wp-includes/class-wp-hook.php(292): icwp_wpsf_init('')
#2 /home/sunningd/dev.mysite.org.uk/wp/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#3 /home/sunningd/dev.mysite.org.uk/wp/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#4 /home/sunningd/dev.mysite.org.uk/wp/wp-settings.php(423): do_action('plugins_loaded')
#5 /home/sunningd/dev.mysite.org.uk/wp/wp-config.php(90): require_once('/home/sunningd/...')
#6 /home/sunningd/dev.mysite.org.uk/wp/wp-load.php(37): require_once('/home/sunningd/...')
#7 /home/sunningd/dev.mysite.org.uk/wp/wp-bl in /home/sunningd/dev.mysite.org.uk/wp/wp-content/plugins/wp-simple-firewall/init.php on line 51
Plugin Author
Paul
(@paultgoodchild)
Is that an error from php when running 7.4?
Thread Starter
jstarj
(@jstarj)
Yup. No error with 7.3 – both Shield and Charitable work fine.
Plugin Author
Paul
(@paultgoodchild)
This is strange, because the error pathways suggest 7.3:
/opt/cpanel/ea-php73/
This error isn’t a PHP error as-such, it’s an error with being able to “find” a file on disk:
failed to open stream: No such file or directory in...
My suggestion would be to completely “reset” your PHP 7.4 installation. Remove it and recreate it.