PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Error Being thrown with most recent version

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there,

 

Can we get some assistance in debugging this error being thrown by the most recent plugin version? See error below:

 

An error of type E_ERROR was caused in line 703 of the file /srv/htdocs/wp-content/plugins/meta-data-filter/index.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /srv/htdocs/wp-content/plugins/meta-data-filter/index.php:703

Stack trace:

#0 /wordpress/core/6.4.1/wp-includes/class-wp-hook.php(326): MetaDataFilter::show_edit_columns_content('items_count')

#1 /wordpress/core/6.4.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)

#2 /wordpress/core/6.4.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

#3 /wordpress/core/6.4.1/wp-admin/includes/class-wp-posts-list-table.php(1398): do_action('manage_meta_dat...', 'items_count', 90945)

#4 /wordpress/core/6.4.1/wp-admin/includes/class-wp-list-table.php(1799): WP_Posts_List_Table->column_default(Object(WP_Post), 'items_count')

#5 /wordpress/core/6.4.1/wp-admin/includes/class-wp-posts-list-table.php(1432): WP_List_Table->single_row_columns(Object(WP_Post))

#6 /wordpress/core/6.4.1/wp-admin/includes/class-wp-posts-list-table.php(936): WP_Posts_List_Table->single_row(Object(WP_Post), 0)

#7 /wordpress/core/6.4.1/wp-admin/includes/class-wp-posts-list-table.php(808): WP_Posts_List_Table->_display_rows_hierarchical(Array, 1, 20)

#8 /wordpress/core/6.4.1/wp-admin/includes/class-wp-list-table.php(1709): WP_Posts_List_Table->display_rows()

#9 /wordpress/core/6.4.1/wp-admin/includes/class-wp-list-table.php(1636): WP_List_Table->display_rows_or_placeholder()

#10 /wordpress/core/6.4.1/wp-admin/edit.php(503): WP_List_Table->display()

#11 {main}

thrown

Hello

Try  in  file  - wp-content\plugins\meta-data-filter\index.php - change  this  code - https://share.pluginus.net/image/i20231212105108.png

echo (is_array(self::get_html_items($post->ID))? count(self::get_html_items($post->ID)): 0 );