Title: PHP New Error &#8211; Missing Argument
Last modified: August 30, 2016

---

# PHP New Error – Missing Argument

 *  Resolved [mchartley](https://wordpress.org/support/users/mchartley/)
 * (@mchartley)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/)
 * I am getting a PHP error all of the sudden – **Warning: Missing argument 2 for
   pg_assign_role_on_login() in …./wp-content/plugins/bbp-private-groups/includes/
   functions.php on line 313**.
 * Thank you for the plug-in – it seemed to be working great until it started throwing
   this error. Perhaps you can give me a bit of guidance.
 * Thanks much!
 * Michele
 * [https://wordpress.org/plugins/bbp-private-groups/](https://wordpress.org/plugins/bbp-private-groups/)

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

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484327)
 * not a piece of code that I’ve changed recently.
 * Have you done any upgrades, added any plugins etc. before this happened?
 *  Thread Starter [mchartley](https://wordpress.org/support/users/mchartley/)
 * (@mchartley)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484382)
 * I am sure it could be something I have done since but have no idea what…think
   it may be due to a redirect on my login page but I am not sure.
 * Thank you for your quick response, by the way!
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484403)
 * ok, I presume you are using the ‘assign role on login’ part of the plugin?
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484460)
 * nothing heard – marking as resolved
 *  Thread Starter [mchartley](https://wordpress.org/support/users/mchartley/)
 * (@mchartley)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484464)
 * Robin,
 * Thank you for your response…I disabled several plugins that I didn’t need and
   it works again. Unfortunately, I am not sure which one was causing the conflict.
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484465)
 * no problem, if you do have an issue in future, come back and once we know which
   are conflicting, I should be able to help

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

The topic ‘PHP New Error – Missing Argument’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/php-new-error-missing-argument/#post-6484465)
 * Status: resolved