Title: PHP Warning
Last modified: May 14, 2017

---

# PHP Warning

 *  Resolved [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/)
 * Whenever I visit my site after a short time away I get a php warning
 * Warning: Missing argument 2 for pg_assign_role_on_login(), called in /home/user/
   website/wp-includes/class-wp-hook.php on line 298 and defined in /home/user/website/
   wp-content/plugins/bbp-private-groups/includes/functions.php on line 368
 * First off, I suppose I could suppress PHP warnings, but I didn’t know WP doesn’t
   by default. Anything to be concerned with? Ways to remedy the warning?
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9131757)
 * Thanks for posting that – not an error that I have seen.
 * I’ve taken a look.
 * Are you able to amend to amend a line of code as a test – ie do you know how 
   to edit and then FTP a file to your site.
 * Don’t worry if you do not – but if you can it would really help me !!
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9131842)
 * Yes, I have that ability.
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9131850)
 * I believe I have a persistent login plugin installed, this is the only thing 
   I can think of that would interfere with any pg_assign_role_on_login function.
   I can try disabling that too, but my users will get mad.
 * Either way persistent login doesn’t seem to work for me, the admin and this warning
   is occasional so it might be a few days to test it because I don’t know what’s
   triggering it other than staying away for a while.
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9132332)
 * That’s really useful info and changes what I was planning !
 * Yes I suspect that you persistent plugin is hooking to the same code I am, so
   causing a potential conflict.
 * can you go to
 * dashboard>settings>bbp private groups>Assign groups to roles and tell me what
   you have the box ticked for ‘Add group on login’
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9142187)
 * Sorry for the slow reply, I have neither box checked on that tab.
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9142322)
 * great – thanks
 * I think I know how to fix your issue, give me a few days and I’ll release a new
   version
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9145906)
 * I’ve just released version 3.4.9 which should get rid of your error.
 * Please let me know if it persists
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9161962)
 * This appears to be fixed, it was only occasionally showing up, so I’ve let it
   go a little while before responding. Thanks
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9162533)
 * great – thanks for updating me !

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbp-private-groups.svg)
 * [Private groups](https://wordpress.org/plugins/bbp-private-groups/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-private-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-private-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-private-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-private-groups/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/php-warning-124/#post-9162533)
 * Status: resolved