Closed BoweFrankema closed 8 years ago
Unfortunately, I can't replicate. Are there any details regarding this issue?
I need to test this again.. I did a poor job describing this error :-)
Ok this started happening again. You can reproduce this by going here:
http://cfcommunity.net/become-a-member/
And filling in the registration form. It will give the fatal error after registration.
"Fatal error: Cannot use object of type WP_User as array in /srv/users/serverpilot/apps/cfcommunity/public/wp-content/plugins/buddypress-rss-feeds/core/front_members.php on line 227"
The reason I could not reproduce this before is because I was registering my account through a subsite in the network and BuddyPress RSS Feeds was not active there.
@BoweFrankema I can't replicate. Can you please test this one more time and provide some feedback? That error message is not valid any more, on that line another code is currently located.
Let me pull in the latest changes again
Here we are again.. :-) The error is still present when you use register a new user account and the plugin is active. I'm not sure why or how but I think it has something to do with the action firing and trying to update the user meta before that data is present.
"Fatal error: Cannot use object of type WP_User as array in /Users/Bowromir/webserver/wefoster.co/wp-content/plugins/buddypress-rss-feeds/core/front_members.php on line 255"
https://github.com/WeFoster/buddypress-rss-feeds/blob/master/core/front_members.php#L255
This scenario might only happen when registration is done through another plugin. In my case this is gravity forms. I think this is the registration hook that is used:
https://www.gravityhelp.com/documentation/article/gform_user_registered/
Thanks for the update! Will take care of this asap. 28 июля 2015 г. 16:18 пользователь "Bowe Frankema" notifications@github.com написал:
Reopened #15 https://github.com/WeFoster/buddypress-rss-feeds/issues/15.
— Reply to this email directly or view it on GitHub https://github.com/WeFoster/buddypress-rss-feeds/issues/15#event-367209948 .
When a user registers the following fatal error occurs
"Fatal error: Cannot use object of type WP_User as array in /Users/Bowromir/webserver/cfcommunity.net/wp-content/plugins/buddypress-rss-feeds/core/front_members.php on line 222"