I am getting “There has been a critical error on this website.” on a blank page if I try to update the spam word list when saving, or deleting the log when deleting.
I disabled all plugins but Contact Form 7 and Spam Protect for Contact Form 7 and the following errors appear where I have the error switch set to ‘true’ in wp-config.php.
Warning: Undefined array key “wpcf7_block_log_erase” in /home/account/public_html/wp-content/plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php on line 277
Warning: Undefined array key “request-form-path” in /home/account/public_html/wp-content/plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php on line 291
Warning: Cannot modify header information – headers already sent by (output started at /home/account/public_html/wp-content/plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php:277) in /home/account/public_html/wp-includes/pluggable.php on line 1450
Warning: Cannot modify header information – headers already sent by (output started at /home/account/public_html/wp-content/plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php:277) in /home/account/public_html/wp-includes/pluggable.php on line 1453
The page I need help with: [log in to see the link]
Well, I was trying to delete a log with filtered spam, so it was obviously an existing installation. I never did anything with Contact Form 7. As already explained, I disabled ALL plugins, see my original post. I also explained the different actions I took which made it occur, along with the errors generated. Thanks.
Thanks for the details, we really appreciate your help.
So far we couldn’t reproduce the issue, but from the tests we performed and from the warnings you mentioned and appeared in your admin interface (line 277 and 291), it looks like that the $POST array either is not complete with the plugin’s form values because they are missing, or there is a conflict with another plugin that prevents the form to be POSTed completely. The only way these warnings may come up is because either the fields are missing from the form or the fields are disabled for some reason, which is very weird because the “wpcf7_block_log_erase” (line 277) is the actual button you press to send the command to erase the file.
As you can see in the picture above, when you delete the log file the plugin it doesn’t actually deletes anything, and instead it writes a null value in the file and wipes out only the content. This functionality in our plugin along with the form values and the POST/save any changes didn’t change since version 1.2.0.
The latest changes had to do with some conflicts with the WooComerce and WB Bakery Admin interface with their JavaScript loading. And that’s why it’s very confusing and difficult to reproduce the problem in our end because that has nothing to do with the log file. We suggest to uninstall and reinstall the plugin, or roll back to a previous version and then update back to latest again.
If there is any other way we can help on this, or perform any more specific test for you, please let us know and we’ll be very happy to assist.
I use Avada theme on all my websites, which has it’s own Builder. Nothing like WooCommerce of any other troublesome plugin like JetPack are installed. I did disabled the Avada theme and try the WordPress Twenty-five theme, but the plugin still throws the same errors. I also checked the CHMOD on the files and directories, but nothing was wrong. I did delete the “Spam Protect for Contact Form 7” and reinstall, but the problem still exists. There are no error logs at the website root directory or any folder. Caches are cleared. I had already tried everything that is typical with trouble shoots, all plugins off, everything, but the error continues. The only way around it is I have to use my FTP client and delete the log manually, but I cannot update the keyword list which is a serious handicap. If I try, I get a white screen with “There has been a critical error on this website.”
I ran Repair Databases in WHM to see if that helped, it did not. I even tried flipping back from PHP 8.3 to 8.1, but still no good. I have asked my collocation support to check the integrity of my dedicated server hosting drive. I am stumped at this point. I think it the integrity of the hosted account, not your plugin.
The fact that there is no debug.log error recorded while the site is crashing, it leaves me puzzled, because no matter what even if there was an SQL error, you should get an error message in the log.
The only thing I can think about this is to looks at PHP.ini about the form values setting max_input_vars and post_max_size, enable/disable the PHP fpm for that site and see if that makes any difference, check If a form is missing a valid WordPress nonce, if there is a User Capability plugin (you may need to configure something here) and if there is an AIO firewall plugin installed in WordPress (even if its disabled, some settings still work because they are in .htaccess file)
Also, before that try to save the Contact Form itself and see if the changes are saved, then put some values in the plugins page and try to hit the update button (top right) not the save button of the plugin, see if that behaves differently. And last, disable the AJAX form submitting temporary in the config file and see if you get any errors and what error is that.
@nysl Thanks very much for your efforts. My plugin developer had made changes to the .htaccess file, which, once I restored it to its correct content, all functions returned to normal. I was editing the “Spam Protect for Contact Form 7” log file around the same time, which led me to jump to incorrect assumptions. All is well 🙂 Sorry to waste your time. Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Crashes Website’ is closed to new replies.