Error on wordpress 7.0.2
-
hello, I have not tried on version 6.0.1, but on version WP 6.0.2 with PHP 8.0 I have this error when the optimization is started:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/mhd-01/www.topwebultras.it/htdocs/wp-content/plugins/rvg-optimize-database/classes/odb-displayer.php:146
It could be corrected by changing line 146 of plugins/rvg-optimize-database/classes/odb-displayer.php to:
<span class="odb-bold">'.__('Number of excluded tables', $odb_class->odb_txt_domain).':</span> <span class="odb-bold odb-blue">'.(is_array($odb_class->odb_rvg_excluded_tabs)?count($odb_class->odb_rvg_excluded_tabs):0).'</span><br>' . $lastrun . '
- The topic ‘Error on wordpress 7.0.2’ is closed to new replies.