[Plugin: PHPBB Single Sign On] can not login (ucp) cannot redeclare
-
So I almost have PHPBB Single Sign On plugin working, no errors in the WP admin – all green ‘OKs’ and PHPBB is set to wpbb authentication and works at least to display forums and posts.
My logins are not working however.
At first I when clicking on the Login link in PHPBB, I was getting “Cannot redeclare validate_username() (previously declared in …/wp-includes/registration.php:49 in ../forums/includes/functions_user.php on line 1610”
I fixed this by adding a “if (!function_exists(‘validate_username’)) {” around the function in functions_user.php.
Now I get the login screen, but when I enter my username and password and submit, it looks like it does something, then I get:
“Cannot redeclare _wp_get_user_contactmethods() (previously declared in …/wp-includes/registration.php:326) in …/wp-content/plugins/phpbb-single-sign-on/module.wp.php(22) : eval()’d code on line 382”
So the problem is I assume I need the version of this function from the plugin – I know I could comment out the one in registration.php, but I hate the idea of modifying the main code base.
What do you think I should do? Is the plugin supposed to be overriding the function somehow? If so, why is it not working?
- The topic ‘[Plugin: PHPBB Single Sign On] can not login (ucp) cannot redeclare’ is closed to new replies.