Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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
    Mauro

    #1358148

    Hey 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,
    Ismael

    #1358186

    No, I have not run any task, I had just installed Cerber
    maybe he made a scan with his “Site Integrity” functionality

    #1358579

    Hi,
    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,
    Mike

    #1358891

    Hello, 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
    Mauro

    #1359136

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.