WordPress error HTTP & td-util.php

Posted in: Newspaper
Post count: 2

Good evening,

as with many, I have a HTTP error when uploading image in worldpress.

After setting a debug.log, error seems to come from the following:

11-Feb-2019 01:26:27 UTC] PHP Notice: Trying to get property of non-object in /home/…/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 50
[11-Feb-2019 01:26:27 UTC] PHP Notice: Undefined variable: tdc_header_template_id in /home/…/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 187

Line 50 is :
if ( ! td_util::tdc_is_live_editor_iframe() && ‘tdb_templates’ !== $post->post_type ) {

Line 187 is:
if ( empty( $meta_header_template_content ) && ‘no_header’ !== $tdc_header_template_id ) {

My cosing knowledge are really limited. Any help would be apreciated.

Beside that, I have tryed all of the following to resolve the issue:

*adding these codes above your .htaccess file.
SetEnv MAGICK_THREAD_LIMIT 1
*deactivating all plugin
*deleting and reinstalling my newspaper theme
*changing maximum in PHPfile
*changing name of image file
*tring different web browser
*emptying cache

Also, the isssue does not present itself if I activate another theme but reappear when I activate newspaper again

Thank you for your time and help

  • This topic was modified 7 years by lanatheme.
Post count: 20688

Hi,

What version of PHP is the server using? In some cases similar issues were solved by upgrading to PHP 7 or 7.1. You could test this if possible, contact the hosting provider and ask them. Let us know if this fixes the problem.

Thanks

Post count: 33

Hi,
I have the same issue and my PHP version is 7.0
So it doesn’t solve the problem
thk you for your response

Post count: 20688

@jackfischlum Try setting the wp-debug to false in the wp-config file, a guide if you need it here
https://forum.tagdiv.com/requirements-for-newspaper/

Post count: 33

Setting debug to false just hides the error – need a proper solution!

Post count: 23312

Hi rightpalava,

Please notice that we have this in our evidence and you should keep your debug to false until the next future update will fix this problem.

Thanks for your understanding!

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