I upgraded to CP 2.2.0 on September 19; on September 20, 24, 26, 28, I received the following identical error message from the “built-in feature that detects when a plugin or theme causes a fatal error on your site”:
An error of type E_ERROR was caused in line 102 of the file /home/carolin5/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Components/CompCons/AutoUpdatesCon.php. Error message: Uncaught ArgumentCountError: Too few arguments to function FernleafSystems\Wordpress\Plugin\Shield\Components\CompCons\AutoUpdatesCon::autoupdate_core(), 1 passed in /home/carolin5/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /home/carolin5/public_html/wp-content/plugins/wp-simple-firewall/src/lib/src/Components/CompCons/AutoUpdatesCon.php:102
Stack trace:
#0 /home/carolin5/public_html/wp-includes/class-wp-hook.php(308): FernleafSystems\Wordpress\Plugin\Shield\Components\CompCons\AutoUpdatesCon->autoupdate_core(true)
#1 /home/carolin5/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array)
#2 /home/carolin5/public_html/wp-admin/update-core.php(227): apply_filters(‘auto_update_cor…’, true)
#3 /home/carolin5/public_html/wp-admin/update-core.php(909): core_upgrade_preamble()
#4 {main}
thrown
I contacted Shield support and heard back from Paul:
Thanks for sending that through.
We dropped full support for ClassicPress quite some time ago. I don’t have the exact release to-hand, but the distance between ClassicPress and WordPress was growing too great, and the userbase of ClassicPress so small, that it didn’t make much sense keeping it going.
Part of the issue was actually with the automatic updates system… CP made was significant semantic changes that keeping the 2 aligned wasn’t going to work.
I can look for the next release to adjust our code to detect CP and not apply any automatic update filters which might ease this issue for you, but ongoing support for CP isn’t something we can commit to, sorry.
Let me know if you have any further questions about that, and apologies for any disappointment around this.
I tried but could not find a post in which Paul announced that they were no longer supporting CP. I did, however, respond to him with a couple of questions, including:
Otherwise, and apparently despite the semantic changes in CP, Shield has nonetheless seemed to have worked flawlessly until this one error message — if your proposed coding tweak works, I’d probably continue using Shield. Am I correct in assuming I would need to update manually? I’d be willing to do that. Is that what you meant by “ease the issue”?
But he never responded.
I checked the upgrade notes for CPO 2.2.0 but found nothing that would seem to trigger this update error, and my site seems still to be functioning fine.
(FWIW my only other issue with 2.2.0 is that it seems now to take an inordinately long to to update edits to pages after hitting the update button. Is that related?)
I don’t understand the error message or how to stop it or what in general it means for continuing to use Shield as a firewall; BTW I long ago stopped having Shield check for changes to core code.
I have always read all the posts here on security and realize that there are options in both plugins and code changes, but I don’t look forward to going through the whole setup and testing process yet again for a new security plugin and even then still risk the same error arising.
Although I have tried a couple of the suggestions in coding (e.g., to htaccess) and wish I could rely more on such coding rather than a plugin, there is such a profusion of suggestions both here and online that it’s difficult with my skill set to decide which to implement. I tried a couple, and, in at least one instance, it shut my site down. I reloaded the original file and all was well, but the coding changes are, I’m afraid, not something I should be doing on my own.
Can anyone help? I’m open to suggestions and certainly explanations.
Thanks.