Hi,
It seems like a PHP version-specific issue. What PHP version are you using on your website?
Recommend PHP version is 7.4 or greater.
Thanks,
Fahid
It seems error will appear when PHP is greater than 8.
Error with:
All was good with 7.4.33
Okay, let me test and push an update if I could replicate the issue.
Thanks
I had a similar error also
Error Details
=============
An error of type E_ERROR was caused in line 140 of the file /home/escortsnoir/public_html/wp-content/plugins/stars-rating/includes/class-stars-rating.php. Error message: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /home/escortsnoir/public_html/wp-content/plugins/stars-rating/includes/class-stars-rating.php:140
Stack trace:
#0 /home/escortsnoir/public_html/wp-content/plugins/stars-rating/includes/class-stars-rating.php(140): round('')
#1 /home/escortsnoir/public_html/wp-content/plugins/stars-rating/admin/stars-rating-comments-column.php(71): Stars_Rating::get_rating_stars_markup('')
#2 /home/escortsnoir/public_html/wp-includes/class-wp-hook.php(324): Stars_Rating_Comments_Column->display_rating_column_value('rating', '237')
#3 /home/escortsnoir/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /home/escortsnoir/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/escortsnoir/public_html/wp-admin/includes/class-wp-comments-list-table.php(1118): do_action('manage_comments...', 'rating', '237')
#6 /home/escortsnoir/public_html/wp-admin/includes/class-wp-list-table.php(1799): WP_Comments_List_Table->column_default(Object(WP_Comment), 'rating')
#7 /home/escortsnoir/public_html/wp-admin/includes/class-wp-comments-list-table.php(671): WP_List_Table->single_row_columns(Object(WP_Comment))
#8 /home/escortsnoir/public_html/wp-admin/includes/class-wp-list-table.php(1724): WP_Comments_List_Table->single_row(Object(WP_Comment))
#9 /home/escortsnoir/public_html/wp-admin/includes/class-wp-list-table.php(1709): WP_List_Table->display_rows()
#10 /home/escortsnoir/public_html/wp-admin/includes/class-wp-comments-list-table.php(604): WP_List_Table->display_rows_or_placeholder()
#11 /home/escortsnoir/public_html/wp-admin/edit-comments.php(452): WP_Comments_List_Table->display()
#12 {main}
thrown
Hi @ojajo1231 and @waynep16,
Please update the plugin on your websites to the latest version 4.0.2 and this Fatal error will be fixed.
Thanks,
Fahid