Log filling up with warnings: Attempt to read property “user_login” on null
-
We’re on wordpress.com. Our logs are filling up really fast with this warning:
Message
PHP Warning: Attempt to read property “user_login” on null in /srv/htdocs/wp-content/plugins/co-authors-plus/template-tags.php on line 129
Timestamp
2024-06-14T01:31:07.000Z
Kind
plugins
Name
co-authors-plus
File
/srv/htdocs/wp-content/plugins/co-authors-plus/template-tags.php
Line
129Around line 129 in template.tags.php:
// Fallback to user_login if we get something empty
if ( empty( $author_text ) ) {
$author_text = $i->current_author->user_login;
}I’m not sure what the root cause is or what to do about it. To the end-user, everything looks normal, and performance isn’t bad either. I can’t replicate on our staging site either.
WP help recommended I turn it off and on again, but that did nothing. I’ll try turning on debug logging and seeing if I can get more info, but I’m a bit out of my depth. Any ideas would be appreciated!
Our PHP is running 8.2, and WP version is 6.5.4.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.