Warning: Attempt to read property “post_type” on null
-
Hello
Excuse me, I have to use the google translate and I hope it is understandable.
I am using this plugin to share blog posts. The plugin is displayed and works very well, but today I found a problem: When passing several entries to draft so that they would not be displayed, these errors have jumped me (I copy everything that has appeared on the screen):
—
Warning: Attempt to read property “post_type” on null in /var/www/html/wp-content/plugins/kiwi-social-share/includes/lib/class-kiwi-social-share-click-to-tweet.php on line 55Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/kiwi-social-share/includes/lib/class-kiwi-social-share-click-to-tweet.php:55) in /var/www/html/wp-admin/includes/misc.php on line 1381
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/kiwi-social-share/includes/lib/class-kiwi-social-share-click-to-tweet.php:55) in /var/www/html/wp-includes/functions.php on line 6878
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/kiwi-social-share/includes/lib/class-kiwi-social-share-click-to-tweet.php:55) in /var/www/html/wp-includes/pluggable.php on line 1421
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/plugins/kiwi-social-share/includes/lib/class-kiwi-social-share-click-to-tweet.php:55) in /var/www/html/wp-includes/pluggable.php on line 1424
—I understand that what is really important is the first warning, which seems to be trying to read a null value. I suppose the solution would be to put a condition, but I’m not sure and I don’t know how to do it.
I was able to get the job done by disabling the plugin and then re-enabling it, but it’s still a doddle to get out of trouble.
I hope you can provide some solution.
Thank you very much for your work and time
Best regards
Carlos
The page I need help with: [log in to see the link]
- The topic ‘Warning: Attempt to read property “post_type” on null’ is closed to new replies.