PHP 8

Posted in: Newspaper
Post count: 3

Should I upgrade to PHP 8 or stay with PHP 7.4?

Post count: 27744

Hello,

For the moment we have done only a few tests with the last version of WordPress and the theme version and at the moment seems to work correctly, if you want, you can test it.

Thank you!

Post count: 3

I can share some test resule.

in php7.4, site works fine with some warning

Warning: A non-numeric value encountered in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 443

Warning: A non-numeric value encountered in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 470

then in php8.0, it totaly crash.
Fatal error: Uncaught TypeError: Unsupported operand types: string / float in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php:443 Stack trace: #0 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php(208): td_flex_block_4::cssMedia() #1 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php(1831): td_css_res_compiler->load_settings() #2 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php(1501): td_flex_block_4->get_custom_css() #3 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php(1857): td_block->get_block_css() #4 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): td_flex_block_4->render() #5 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #6 [internal function]: do_shortcode_tag() #7 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #8 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #9 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(283): tdc_composer_block->do_shortcode() #10 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_column->render() #11 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #12 [internal function]: do_shortcode_tag() #13 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #14 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #15 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(1098): tdc_composer_block->do_shortcode() #16 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_row->render() #17 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #18 [internal function]: do_shortcode_tag() #19 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #20 /home/***/webapps/***/wp-content/plugins/td-composer/includes/tdc_composer_block.php(273): do_shortcode() #21 /home/***/webapps/***/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php(591): tdc_composer_block->do_shortcode() #22 /home/***/webapps/***/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdc_zone->render() #23 /home/***/webapps/***/wp-includes/shortcodes.php(343): td_global_blocks::proxy_function() #24 [internal function]: do_shortcode_tag() #25 /home/***/webapps/***/wp-includes/shortcodes.php(218): preg_replace_callback() #26 /home/***/webapps/***/wp-includes/class-wp-hook.php(292): do_shortcode() #27 /home/***/webapps/***/wp-includes/plugin.php(212): WP_Hook->apply_filters() #28 /home/***/webapps/***/wp-includes/post-template.php(253): apply_filters() #29 /home/***/webapps/***/wp-content/plugins/td-standard-pack/Newspaper/page.php(51): the_content() #30 /home/***/webapps/***/wp-includes/template-loader.php(106): include('...') #31 /home/***/webapps/***/wp-blog-header.php(19): require_once('...') #32 /home/***/webapps/***/index.php(17): require('...') #33 {main} thrown in /home/***/webapps/***/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_flex_block_4.php on line 443
There has been a critical error on this website.

Post count: 21065

Hello!

First of all, please make sure you have a backup done and then you can update the theme (version 11) and the TagDiv plugins also.
Please take a look for this advice before updating: https://forum.tagdiv.com/topic/action-required-please-read-how-to-update-to-the-newspaper-theme-v-10/
I recommend you make a backup and update plugins and the theme via file transfer, so that you don’t face any error: https://forum.tagdiv.com/how-to-update-the-theme-2/
Let me know about your results!

Thank you!

Post count: 3

Yea yea yea… surely canned message.
Of course I’m on latest version, just keep your dev team living in your “development environment“ ivory tower.

Post count: 21065

Hello!

I just tried to help you. I’m sure about what I said because our ” development environment ” knows when we do some modifications in order to help you get rid of errors.
Also, our theme has some requirements, some specific required settings, tested plugins(it is not working with all plugins). But, it is ok if our messages are canned, then you are not obliged to do what we recommend.

Thank you so much for your kind words!

Post count: 3

“I’m on the latest version.”

That’s all I got to said. Stack trace is there, fix it or not is not my problem, just share the error code.

#td_flex_block_4.php

Post count: 27744

Hello,

We tested the PHP version 8 and we did not encounter such an error, nor have other users reported it (for example, I have the version of PHP 8.0.7)
This issue also has been discussed here https://github.com/woocommerce/woocommerce/issues/29087
About the error from flex block 4, do you have set reviews for posts? Also, have you checked for a plugin conflict?
Also, please provide the link to your website.

Thank you!

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