Co-Authors-Plus icon indicating copy to clipboard operation
Co-Authors-Plus copied to clipboard

Warning in server log: Attempt to read property "user_nicename" on bool

Open WiredUK opened this issue 1 year ago • 1 comments

We are seeing warnings in our server logs:

[proxy_fcgi:error] [pid 711673] [client www.xxx.yyy.zzz:nnnnn] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "user_nicename" on bool in /home/site/public_html/wp-content/plugins/co-authors-plus/co-authors-plus.php on line 1124'

Since get_userdata can return false, I think it's worth putting a check in there.

WiredUK avatar Nov 02 '23 21:11 WiredUK

Are you able to replicate this with the develop branch?

GaryJones avatar Nov 24 '23 11:11 GaryJones