Critical error on a site: FLBuilderCompatibility class

Hi all,

I came across a problem on a client’s website at https://tukikohta.org/

When trying to access any article (e.g. https://tukikohta.org/ajankohtaista/vayla-ryhma-alkaa-16-8-2022/) it displays the message “There Has Been a Critical Error on This Website” (in Finnish).

I enabled WP_DEBUG_LOG and found the following:

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function FLBuilderCompatibility::fix_rest_excerpt_filter(), 1 passed in /home/renkbhxmat/domains/tukikohta.org/public_html/wp/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /home/renkbhxmat/domains/tukikohta.org/public_html/wp/wp-content/plugins/bb-plugin/classes/class-fl-builder-compatibility.php:1225

Disabling the BB plugin fixes the issue, but of course is not the solution I’m looking for.

To my knowledge, only basic maintenance work has been done for the website, the client hasn’t added any new plugins.

Could someone help me out?

One of your plugins, or perhaps some custom code in your child theme is incorrectly using the get_the_excerpt filter, as per the error it expects exacly 2 args passed to the filter. The filter used to be one arg but a 2nd was added 6 years ago. So its likely the plugin/code is older than that.

1 Like

Found it! It was the Twitter plugin. Many thanks for your help.

1 Like

Last updated 3 years ago, that plugin is totally abandoned im afraid.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.