Site breaks on Version 12.5 with PHP 8.0

Posted in: Newspaper
Post count: 11

After updating, when trying to switch from PHP 7.4 to PHP 8.0, the site breaks. Although the homepage (main page) is fine, whenever I try to access any article, it triggers a critical WordPress error.

https://prnt.sc/UdB4na53nHhm

The only error that is displayed in the PHP viewer is the following:

Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /home/wwaler/public_html/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php:1142

Seguimiento de la pila
1.
number_format('XXX')
/home/wwaler/public_html/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php:1142
2.
td_block_social_counter->render(Array, '')
/home/wwaler/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
3.
td_global_blocks::proxy_function(Array, '', 'td_block_social...')
/home/wwaler/public_html/wp-includes/shortcodes.php:355
4.
do_shortcode_tag(Array)
[internal function]:0
5.
preg_replace_callback('/\\[(\\[?)(vc_wid...', 'do_shortcode_ta...', '[vc_widget_side...')
/home/wwaler/public_html/wp-includes/shortcodes.php:227
6.
do_shortcode('[vc_widget_side...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
7.
tdc_composer_block->do_shortcode('[vc_widget_side...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:316
8.
vc_column->render(Array, '[vc_widget_side...')
/home/wwaler/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
9.
td_global_blocks::proxy_function(Array, '[vc_widget_side...', 'vc_column')
/home/wwaler/public_html/wp-includes/shortcodes.php:355
10.
do_shortcode_tag(Array)
[internal function]:0
11.
preg_replace_callback('/\\[(\\[?)(vc_col...', 'do_shortcode_ta...', '[vc_column widt...')
/home/wwaler/public_html/wp-includes/shortcodes.php:227
12.
do_shortcode('[vc_column widt...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
13.
tdc_composer_block->do_shortcode('[vc_column widt...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1145
14.
vc_row->render(Array, '[vc_column widt...')
/home/wwaler/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
15.
td_global_blocks::proxy_function(Array, '[vc_column widt...', 'vc_row')
/home/wwaler/public_html/wp-includes/shortcodes.php:355
16.
do_shortcode_tag(Array)
[internal function]:0
17.
preg_replace_callback('/\\[(\\[?)(vc_row...', 'do_shortcode_ta...', '[vc_row gap="10...')
/home/wwaler/public_html/wp-includes/shortcodes.php:227
18.
do_shortcode('[vc_row gap="10...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php:279
19.
tdc_composer_block->do_shortcode('[vc_row gap="10...')
/home/wwaler/public_html/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:591
20.
tdc_zone->render(Array, '[vc_row gap="10...')
/home/wwaler/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
21.
td_global_blocks::proxy_function(Array, '[vc_row gap="10...', 'tdc_zone')
/home/wwaler/public_html/wp-includes/shortcodes.php:355
22.
do_shortcode_tag(Array)
[internal function]:0
23.
preg_replace_callback('/\\[(\\[?)(tdc_zo...', 'do_shortcode_ta...', '[tdc_zone type=...')
/home/wwaler/public_html/wp-includes/shortcodes.php:227
24.
do_shortcode('[tdc_zone type=...')
/home/wwaler/public_html/wp-includes/class-wp-hook.php:308
25.
WP_Hook->apply_filters('[tdc_zone type=...', Array)
/home/wwaler/public_html/wp-includes/plugin.php:205
26.
apply_filters('tdb_template_co...', '[tdc_zone type=...')
/home/wwaler/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php:139
27.
include('/home/wwaler/pu...')
/home/wwaler/public_html/wp-includes/template-loader.php:106
28.
require_once('/home/wwaler/pu...')
/home/wwaler/public_html/wp-blog-header.php:19
29.
require('/home/wwaler/pu...')
/home/wwaler/public_html/index.php:17
30.
{main}
thrown in /home/wwaler/public_html/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php on line 1142

Post count: 21065

Hello!

Deactivate ALL plugins except tagDiv ones, update the theme and plugins and see the changes.

Thank you!

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