• Resolved giuggio

    (@giuggio)


    Hi, for some time now, every time I update the plugin it gives me the following error:

    Fatal error: Uncaught TypeError: Argument 1 passed to TablePress_Frontend_Controller::posts_search_filter() must be of the type string, null given, called in /home/customer/www/biomedgroup.it/public_html/wp-includes/class-wp-hook.php on line 312 and defined in /home/customer/www/biomedgroup.it/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php:904 Stack trace: #0 /home/customer/www/biomedgroup.it/public_html/wp-includes/class-wp-hook.php(312): TablePress_Frontend_Controller->posts_search_filter(NULL) #1 /home/customer/www/biomedgroup.it/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/biomedgroup.it/public_html/wp-includes/class-wp-query.php(2240): apply_filters_ref_array(‘posts_search’, Array) #3 /home/customer/www/biomedgroup.it/public_html/wp-includes/class-wp-query.php(3800): WP_Query->get_posts() #4 /home/customer/www/biomedgroup.it/public_html/wp-includes/class-wp-query.php(3932): WP_Query->query(Array) #5 /home/customer/www/biomedgroup.it/ in /home/customer/www/biomedgroup.it/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 904

    Please, what I have to do? This way I have the site offline and I can’t receive contacts!!

    Thanks, Giulia

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @giuggio!

    Thanks for your post and sorry for the trouble!

    As a temporary solution, please turn off TablePress’ search integration. For that add this line to the end of your theme’s “functions.php” file:

    add_filter( 'tablepress_wp_search_integration', '__return_false' );

    Now, theactual cause for this problem actually is in another plugin — TablePress just helps uncover that issue here.

    In more detail, another plugin is using the WordPress plugin filter hook posts_search but does not return the required correct data type (a string), but instead returns the special value null, which is wrong.

    To find the plugin that does this, please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty-Four. That way, we can find what’s causing this.

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    one remark: That process of finding the plugin that causes this must be done with the line removed from the “functions.php” again, otherwise, you’ll not find anything.

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    quick update: I released TablePress 2.2.3 today, which contains a workaround so that this error should no longer be shown.

    You can also again remove that line of code, so that the search integration is restored.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error’ is closed to new replies.