Previewing new post without saving causes PHP error

Posted in: Newspaper
Post count: 11

Hi,

We’ve come across an issue with the theme. When we create a new post and attempt to preview it without first saving it, we get this error:

PHP Recoverable Error: Uncaught exception ‘Error’ with message ‘Call to a member function format() on bool’ in /wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php on line 672, request: GET /?p=478051&preview=true, request_id: 2a82feb36d110085a88aeae2bde14e7d

If we save the post and then view or preview it, it works fine.

We are on Newspaper 10.2.

Thanks,
Peter.

Post count: 35449

Hi,

Unfortunately there is a problem with the new option add in theme panel for disable the schema article, this interfere with preview draft, in order to fix this problem you’ll need to make some changes in theme file or deactivate the schema articles from here: https://www.screencast.com/t/0E3IucACC You will have to check that in order to deactivate the schema, this issue will be fixed in the next update.
The file are wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> https://i.imgur.com/EMWC74l.png add “|| is_preview()” -> https://i.imgur.com/78beFgC.png
wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php
-> https://i.imgur.com/WIIKHSU.png -> https://www.screencast.com/t/VbigQIINRB
or you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look and make the proper changes for you. Include a link to this topic in the email.

Thank you for your understanding!

Post count: 11

Thanks Calin, that seems to work for me.

Cheers,
Peter.

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