Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1178228

    I get the following error when I attempt to run a search on this site:

    Fatal error: Uncaught TypeError: Argument 1 passed to av_google_recaptcha::handler_body_class() must be of the type array, string given, called in /nas/content/live/isappscience2/wp-includes/class-wp-hook.php on line 288 and defined in /nas/content/live/isappscience2/wp-content/themes/enfold/framework/php/class-grecaptcha.php:288 Stack trace: #0 /nas/content/live/isappscience2/wp-includes/class-wp-hook.php(288): av_google_recaptcha->handler_body_class('default-class', Array) #1 /nas/content/live/isappscience2/wp-includes/plugin.php(206): WP_Hook->apply_filters('default-class', Array) #2 /nas/content/live/isappscience2/wp-includes/post-template.php(832): apply_filters('body_class', Array, Array) #3 /nas/content/live/isappscience2/wp-includes/post-template.php(591): get_body_class(Array) #4 /nas/content/live/isappscience2/wp-content/themes/enfold/header.php(86): body_class(' rtl_columns s...') #5 /nas/content/live/isappscience2/wp-includes/template.php(722): require_once('/nas/content/li...') #6 /nas/content/live/isappscie in /nas/content/live/isappscience2/wp-content/themes/enfold/framework/php/class-grecaptcha.php on line 288

    I have tried disabling all plugins but that does not help. The site is on PHP v 7.3

    #1178433

    Hey IdeaZone2550,

    Sorry for the problem. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1179533

    Hi Sorry for the delay, i have attached it:

    #1180154

    Hi,

    Thank you for the update.

    The error comes from the body_class callback in the functions.php file.

    add_filter('body_class','body_class_section');
    

    The function returns a string instead of an array of classes, which affects the filter in the spam protection because it runs after this (body_class_section) filter is executed.

    Where did you get the filter? Please make sure that the body_class_section function returns an array. We disabled it temporarily.

    Best regards,
    Ismael

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