PHP 7.0 error

Posted in: Newspaper
Post count: 118

Hi Team tagDiv,

I am running Newspaper 7.7.1 and Visual Composer 5.1 on website http://www.thecarexpert.co.uk.

When I try to run PHP 7 on my site, I get the following message at the top of the post (post still displays underneath):
Warning: Declaration of td_module_single_base::get_image($thumbType) should be compatible with td_module::get_image($thumbType, $css_image = false) in /home/thecarex/public_html/wp-content/themes/Newspaper-child/includes/wp_booster/td_module_single_base.php on line 911

When I look up line 911 in the file named, it is the very last line and only contains a single }

When I switch back to PHP 5.6, message goes away.

Can you offer any suggestions where I should look to try and fix this?

Many thanks,

stuart

Post count: 22421

Hello,

There must be something wrong about your file as the file from the last version has 979 lines of code, not 911
We do not get this error on any of our installs using php 7.0.
First, try to disable all plugins except visual composer, clear cache and reset cdn files if you use it. Please also check any custom code you might have added to the theme panel or the theme files. If you use a child theme, please switch to the main theme to make sure it does not affect the proper functionality of the theme.

If the error is still there, please try to reinstall the theme using this guide: https://forum.tagdiv.com/install-via-ftp/

Thank you!

Post count: 118

Hi Bogdan. Seems to be a child theme issue.

Thanks for your help.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.