-
AuthorPosts
-
July 12, 2022 at 5:01 pm #1358102
Hello,
I received an email saying
WordPress caught an error with your theme, Enfold.
Front and back end are working correctly
I had updated everything a few hours before receiving the email, and cleared all caches
WordPress 6.0
Enfold: 5.0.1
PHP 8.1
Can you help please?
Thank you
MauroJuly 13, 2022 at 5:29 am #1358148Hey profumopuntoit,
Thank you for the inquiry.
Looks like the WP Cerber Security (wp-cerber) plugin is trying to access the searchform.php via the error404.php page based on these stack error traces.
#1 /www/buyandsellambergris_814/public/wp-content/themes/enfold/includes/error404.php(17): get_search_form() #6 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(4635): include(‘/www/buyandsell…’) #7 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(2448): cerber_404_page() #8 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(2411): cerber_access_control()
Did you run any task from the wp-cerber plugin prior to the issue?
Best regards,
IsmaelJuly 13, 2022 at 10:53 am #1358186No, I have not run any task, I had just installed Cerber
maybe he made a scan with his “Site Integrity” functionalityJuly 16, 2022 at 4:27 pm #1358579Hi,
Thanks for your patience, did you receive this email alert only once? You said that everything seems to be working correctly on the front and back end, is this still the case?
Perhaps this was a one-off error with the WP Cerber Security as Ismael pointed out.
It should not try to access the searchform.php via the error404.php file, but if this happens again check the plugin options to see if you can disable this file from being scanned.Best regards,
MikeJuly 20, 2022 at 1:08 pm #1358891Hello, it did happen another time, again related to WP Cerber Security (in private the details)
I can try to see if I can exclude searchform.php from WP Cerber scanning, but this is a workaround, I think that searchform.php should be written in a way that it doesn’t throw a fatal error if accessed for whatever reason
WP Cerber Security has a record of more than 200.000 installs, and I am using more or less the default options
Thank you
MauroJuly 22, 2022 at 5:59 am #1359136Hi,
Thank you for the update.
but this is a workaround, I think that searchform.php should be written in a way that it doesn’t throw a fatal error
There is nothing wrong with the template file, it is written based on the default searcform.php file with a few minor additions such as the icon font. The issue occurs because the security plugin cannot detect the av_icon_char function, which is defined in the enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php file.
Unfortunately, we are not sure if the plugin loads the whole theme first or check for dependencies before checking the template files. You may need to exclude the searchform.php file from the scan to avoid the error report.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.