PHP Warning: Attempt to read property "comment_type" on null

Posted in: Newspaper
Post count: 3

Hi team! I’m getting the following errors on my apache error log and I think it’s causing some performance issues thou no errors appears in the front-end

[proxy_fcgi:error] [pid 7187:tid 140583540553472] [client MYSERVERIP:47648] AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “comment_type” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1089PHP message: PHP Warning: Attempt to read property “comment_type” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1103PHP message: PHP Warning: Attempt to read property “comment_ID” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1103PHP message: PHP Warning: Attempt to read property “comment_type” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1089PHP message: PHP Warning: Attempt to read property “comment_type” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1103PHP message: PHP Warning: Attempt to read property “comment_ID” on null in /home/magro/public_html/wp-includes/comment-template.php on line 1103’

Any help on this? the site is https://mundoagrocba.com.ar

Thanks!

Post count: 21065

Hello!

Please make sure you have the latest version of the PHP, WordPress, theme and plugins(11.2). Delete and re-install the TagDiv Composer plugin.
Please check if this code is missing from your htaccess file: https://www.screencast.com/t/iN0R93dD3p from our requirements, make sure you have all the requirements as you can see here: https://forum.tagdiv.com/requirements-for-newspaper/

Let me know the results!

Thank you!

Post count: 3

Hi! thanks for your answer, followed your steps and of course the reqs for newspaper and still getting the error :/

Here’s a screenshot of the system status

system statys

Thank you!

Post count: 35449

Hi caker15, I can see that the PHP Warning it is from some wordpress file. Maybe this has something to do with the comments section from our theme -> https://i.imgur.com/FoGRiwC.png please make a test and remove the comment element from the single post template and see if you keep getting those PHP Warning.
Let us know the results!

Post count: 3

Hi! thanks for your answer, I deleted the comments section and the errors stoped, server load decreased and the site is back online in good health. Thou, is there any fix or workaroud I can use in the meantime?

Thanks again!

Martin.

Post count: 35449

Hi caker15, so if the problem has stopped once that the comment section was removed I think that it is because you do not have a login element, this add a JavaScript that it is needed.
For this please edit your website with tagDiv Composer and add the “header login” element and in case that you do not want it to be display, then just hide it -> https://i.imgur.com/wABQISu.png after that you should be able to use the comments section without problems.

Thank you!

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