• Resolved aiwetir

    (@aiwetir)


    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

    (@robin-w)

    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

    (@aiwetir)

    Yes, I have that ability.

    Thread Starter aiwetir

    (@aiwetir)

    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

    (@robin-w)

    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

    (@aiwetir)

    Sorry for the slow reply, I have neither box checked on that tab.

    Plugin Author Robin W

    (@robin-w)

    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

    (@robin-w)

    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

    (@aiwetir)

    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

    (@robin-w)

    great – thanks for updating me !

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

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