Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
291 stars 205 forks source link

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

Open WiredUK opened 11 months ago

WiredUK commented 11 months ago

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.

GaryJones commented 10 months ago

Are you able to replicate this with the develop branch?