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.
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
@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/
Setting debug to false just hides the error – need a proper solution!