Error in td-cloud-library/state/single/tdb_state_single.php – Uncaught TypeError

Posted in: Newspaper
Post count: 23

Migrated to new server, now received this error:


[Sun Jul 28 07:49:44.992377 2024] [proxy_fcgi:error] [pid 30014:tid 30050] [client 10.0.1.7:37942] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /var/www/html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php:957
Stack trace:
#0 /var/www/html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(957): array_filter()
#1 /var/www/html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): tdb_state_single->{closure}()
#2 /var/www/html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_categories.php(328): Closure->__invoke()
#3 /var/www/html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_categories->render()
#4 /var/www/html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function()
#5 [internal function]: do_shortcode_tag()
#6 /var/www/html/wp-includes/shortcodes.php(273): preg_replace_callback()
#7 /var/www/html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(220): do_...', referer: android-app://com.google.android.googlequicksearchbox/

Possibly fix / temporary workaround is to comment out offending code lines:


$post_categories = get_the_terms( $post->ID, 'category' );

$featured_cat_name = TD_FEATURED_CAT;
//$post_categories = array_filter( $post_categories, function( $category ) use ( $featured_cat_name ) {
//    return $category->name != $featured_cat_name;
//} );

Any ideas?

  • This topic was modified 2 years by ArtRights.
Post count: 27744

Hi,

We can take a look at this and investigate the issue. Please get in touch with us via email at contact@tagdiv.com and provide the following:
– wp-admin URL and credentials
– cPanel URL and credentials
– a link to this topic in order to identify you
Also, during the investigation, know that we will disable the other non-tagDiv plugins.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.