WordPress.org

Ready to get started?Download WordPress

Forums

WP-United : phpBB WordPress Integration
[resolved] Issues with integrated login and plugin User Switching (11 posts)

  1. Roger N
    Member
    Posted 1 year ago #

    Hi!

    Thank you for a great plugin. It seems to be amazing!

    However, I am having problems with the integrated login. I am trying to use the User Mapping function to create new accounts on the forum for the WP-users, but I get the following message when doing so. I also get this message when trying to register on the WP-site as a new user or when I try to log out of the forum, or when I try to activate an account straight in the PhpBB ACP.

    admin.php?page=wpu-user-mapper returned: Error: Invalid XML: Fatal error: Cannot redeclare validate_email() (previously declared in /storage/content/84/104584/mydomain.com/public_html/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php:350) in storage/content/84/104584/mydomain.com/public_html/forum/includes/functions_user.php on line 1749

    Likewise, trying to login on the forum with one of the forum users that is not linked to any WP account doesn't seem to work either and neither does logging out of the WP site, when this function is enabled.
    Other weird things are happening too. For some reason once I am in the Admin and switch to looking at the actual site, I am logged out. This I think only happens in IE, although I am unsure if this is correct.

    During the installation with Automod I had one instance where the following line could not be added automatically to memberlist-view.html:

    <!-- IF U_BLOG_LINK -->
             <dt>{L_BLOG}:</dt> <dd><a href="{U_BLOG_LINK}" title="{L_VISIT_BLOG}" >{L_VISIT_BLOG}</a></dd>
          <!-- ENDIF -->

    It should have been added after

    <dt>{PROFILE_FIELD1_NAME}:</dt> <dd>{PROFILE_FIELD1_VALUE}</dd>
                    <!-- ENDIF -->

    And as that isn't in the file, I instead added it manually after

    <dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
          <!-- ENDIF -->

    Furthermore, WP-United also causes a conflict with a plugin called "User Switching" which simply seizes to function without error message.

    Another factor in this might be the "slider" feature that the WP theme "Brunelleschi" has, which I am using to promote certain news items. This loads on the forum page, but not quite correctly. Functionally it seems OK, but I think the actual text is turned into the color black, which makes it unreadable against the background. However, the header for the news item is OK. The news item slide and roll just fine though.

    Any advice on how this can be fixed other than disabling the plugin?

    Thanks!

    http://wordpress.org/extend/plugins/wp-united/

  2. Roger N
    Member
    Posted 1 year ago #

    Oh, and as I try to register a new user it is registered in WP, but the user integration appears to be broken and I get a blank page loaded with the message shown above.

    admin.php?page=wpu-user-mapper returned: Error: Invalid XML: Fatal error: Cannot redeclare validate_email() (previously declared in /storage/content/84/104584/mydomain.com/public_html/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php:350) in storage/content/84/104584/mydomain.com/public_html/forum/includes/functions_user.php on line 1749

  3. Roger N
    Member
    Posted 1 year ago #

    Trying it with some updated settings for mail in WP I now get the following when I try to register.

    Fatal error: Cannot redeclare validate_email() in /storage/content/84/104584/mydomain.com/public_html/forum/includes/functions_user.php on line 1699

    Again, the user is created in WP, but not in the forum.

  4. Roger N
    Member
    Posted 1 year ago #

    Ok, this is a conflict with the WP-Mail-SMTP plugin. With it disabled, login integration seems to work properly. This is unfortunate, as I seem to be having other issues with user registrations not being sent out without this plugin.

  5. Roger N
    Member
    Posted 1 year ago #

    Seems to work alright with to work alright with the plugin Configure SMTP though, so I am switching to that for sending the email instead.

  6. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Sorry for the delay in responding.

    Yes, it is a collision between two functions that are named the same in both WP-Mail-SMTP and phpBB. Unfortunately the error isn't in phpBB.

    It's not great coding practice on the part of both phpBB and the plugin unfortunately -- functions really should be namespaced -- e.g. phpbb_validate_email or wpmail_validate_email. Unfortunately WP-United just sits in the middle.

    I'll contact the author of that plugin to let them know... maybe they will update it for a future version.

    Also, I'll mark this topic as resolved, but please do let me know if you need anything else.

    J

  7. jhong
    Member
    Plugin Author

    Posted 1 year ago #

  8. Roger N
    Member
    Posted 1 year ago #

    Thanks! I appreciate it! I have posted some other questions on your forum regarding css and a particular theme also, and I would very much appreciate your help there.

    Again, thanks for a really great plugin!

  9. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    No worries.

    Just an addendum to my previous post in case people visit in the future. When I typed "The error isn't in phpBB", I meant to say: "The error isn't in WP-United". :-)

  10. execu7ioner
    Member
    Posted 1 year ago #

    Hey guys,

    I am having the exact problem you were Roger...

    I have added

    "<dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
    <!-- ENDIF -->"

    manually to the file just as you did. However it still acted as though the problem was not fixed.

    This is the only error stopping me from installing properly, how did you fix it?!? Thank you!!

  11. Roger N
    Member
    Posted 1 year ago #

    Well, assuming we had the same problems as described above, then the fix for me was replacing WP-SMTP with another plugin. I also had to make some changes to the css of both the forum and WP, although those changes aren't perfect yet, especially not for different screen resolutions.

    Also, note that what you should add is:

    <!-- IF U_BLOG_LINK -->
             <dt>{L_BLOG}:</dt> <dd><a href="{U_BLOG_LINK}" title="{L_VISIT_BLOG}" >{L_VISIT_BLOG}</a></dd>
          <!-- ENDIF -->

    For me, the place where it should be added seems to have been a bit different, so I added it after

    <dt>{postrow.PROFILE_FIELD1_NAME}:</dt> <dd>{postrow.PROFILE_FIELD1_VALUE}</dd>
          <!-- ENDIF -->

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic