WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: PHPBB Single Sign On] Can't Auth Mode - Option Selected Doesn't Save (62 posts)

  1. pinoyblogero
    Member
    Posted 4 years ago #

    I can't get Auth Mode to go "OK"

    I've been selecting "wpbb" as the second path on the options page but when I save it, it keeps coming back to Apache.

    I'm using WordPress 2.9.1 and the latest version of PHPBB Single Sign On.

    Please help!

  2. brian.pan
    Member
    Posted 4 years ago #

    See if this works:
    Go into the phpBB admin panel (ACP). Find 'Client Communication' on the left, and click on 'Authentication'. Select 'wpBB' as the authentication method from the dropdown and click 'submit'.

  3. brian.pan
    Member
    Posted 4 years ago #

    Also, if ever need to revert the setting and have access to your forum's database, try this:

    http://www.phpbb.com/community/viewtopic.php?f=71&t=1623385#p9756775

  4. myuzikal_flare
    Member
    Posted 4 years ago #

    i'm having the same problem too. same versions (wp 2.9.1) and the latest version of single sign on.

    i select wpbb as the second path but when saving, it reverts back to Apache.

    When i select wpBB via the phpBB admin panel (ACP), I can view the forum, but when I try to login, I get this error:

    'Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 75 bytes) in /home/domain/public_html/forum/includes/utf/utf_tools.php on line 1828'

    I've uninstalled and reinstalled but still have the same problem :(

  5. Sebi23DU
    Member
    Posted 4 years ago #

    Hello,

    I have the same Problem.....can´t change to wbpp.

    Have someone a solution for this and can tell me how i make it to work?

    I hope for help, please.

    Thanks.

    Sebi

  6. brian.pan
    Member
    Posted 4 years ago #

    Hi all,
    The issue you're having has to do with the fact that the plugin assumes your phpBB tables are located in the same database as your wordpress tables. If you're phpBB database is located separately from wordpress database (like mine is), then the plugin's query to update the phpBB's authentication won't work. (and thus the wordpress options page won't "save" or say "ok" for the 'auth'...)

    Have no fear. There is a solution. You can change the authentication manually in two ways. First, from your forum's Admin Ctrl Panel (ACP), you can find Client Communication --> Authentication, and choose wpbb from the drop down menu (it will be an option after you move the auth_wpbb file into the '{forum root}/includes/auth' directory). Alternatively, you can run this query on your forum's database --> UPDATE phpbb_config SET config_value = 'wpbb' WHERE config_name = 'auth_method'

    In both cases, you have to understand that since the plugin does not understand your forum is in a separate database, it will not be able to "save" or indicate "ok" in the plugins' options page in wordpress. But that's ok. The important step was to set forum's authentication mode, which is already done. So now it should work.

    To summarize, here's a basic outline of how to make this thing work (assuming you're starting from fresh wordpress and phpBB installations):

    1. install the plugin and activate in wordpress.
    2. click on "install files in phpbb" - after clicking this, i would check to see that the two files were copied to the forum's directory correctly. there's only two files that need to be moved over. a) /root/common.php (which replaces the forum's common.php) and b) auth_wpbb (described above)
    2b. click on save changes in wordpress to make sure file path for the forum is right, e.g. "forum/"
    3. change phpbb authentication mode (described above)
    4. that's it.

  7. Sebi23DU
    Member
    Posted 4 years ago #

    That is exactly, what i did.

    But in wordpress the option wpbb is not getting saved.

    In the php forum the wpbb authentification is set.

    But what isn´t correct....is it all done like described.

    And the two files are on the right place.....

    I don´t know what to do now.

  8. Sebi23DU
    Member
    Posted 4 years ago #

    Sorry, me again.

    Now i installed the php forum database in the same database like wordpress.

    Now, the options fare all OK.

    But now i have the problem, that my forum is blank

    http://www.starsontv.com/community/

    What is now the problem?

    Please help.

    Sebi

  9. Live2Game
    Member
    Posted 4 years ago #

    Brian.Pan

    you mention

    2. click on "install files in phpbb" - after clicking this,

      i would check to see that the two files were copied to the forum's directory

    correctly. there's only two files that need to be moved over. a) /root/common.php (which replaces the forum's common.php) and b) auth_wpbb (described above)
    2b. click on save changes in wordpress to make sure file path for the forum is right, e.g. "forum/"
    3. change phpbb authentication mode (described above)
    4. that's it.

    I moved the auth_wpbb to my auth directory in my phpbb3 because they're on separate databases as you mention and was able to select wbpp in my client communication area under authenication

    you mention to check for 2 files in the forums directory... is that suppose to be in the phpbb3 directory if so I only have the auth_wpbb.php that I manually moved; no other files copied over when I hit install files on php BB. I do have files that was copied in the WP directory which would look like this

    /root/forum/common.php
    and /root/forum/includes/auth/auth_wpbb.php

    so far I have all o.k accept for the auth mode does that mean all systems go for me?? how can I test this plugin??

    Reccomended Current OK ?
    Files
    auth_wpbb.php 0.6 0.6 OK
    common.php 0.5.3 0.5.3 OK
    common.orig.php - 0 OK
    Configurations
    Auth Mode wpbb Error
    Wordpress Path Variable forum/ OK

    Thanks for the assistances everybody! I'm still wet behind the ears but not for long if I keep this up :-)

    L2Gx The Eraser
    http://www.liv2game.com

  10. Sebi23DU
    Member
    Posted 4 years ago #

    Sorry, me again.

    Now i installed the php forum database in the same database like wordpress.

    Now, the options fare all OK.

    But now i have the problem, that my forum is blank

    http://www.starsontv.com/community/

    What is now the problem?

    Please help.

    Sebi

  11. massayoshi
    Member
    Posted 4 years ago #

    I was able to set the auth_method but don't know how to test it. I registered a user from phpBB and when I logged in, nothing happened on WP's side. And when I tried the opposite, nothing happened as well.

  12. brian.pan
    Member
    Posted 4 years ago #

    Live2Game: As you might have discovered by now, I think everything should be working for you. You should now have the ability to have users login into the forum and be able to make comments on your wordpress site under the same login; create users in the forum - which will automatically create accounts in wordpress (and vice versa); etc...

    Sebi23DU: Sorry, I'm not sure why your forum is blank. There might be an error in your forum configuration. When you set your new forum tables up, did you indicate to phpbb somewhere that the tables are now located in same database as wordpress (i.e, the /root/config.php file in phpbb). Otherwise, I would check your error logs and see what error shows up there...(that is, if you have access to them... e.g. for apache '/var/log/httpd/error'...)

  13. brian.pan
    Member
    Posted 4 years ago #

    massayoshi: I would check to make sure all files are copied over correctly.

  14. massayoshi
    Member
    Posted 4 years ago #

    brian.pan: unfortunately they were copied over correctly. I'm looking at then right now. and I just started a fresh install of both wp and phpbb running on different databases.

  15. massayoshi
    Member
    Posted 4 years ago #

    brian.pan: and I still got the message "PHP Single Sign On is almost ready. You have to Follow the instructions for it to work." when I'm logged in on WP. but I guess this has nothing to do right?

  16. massayoshi
    Member
    Posted 4 years ago #

    Don't know what happened but it's working right now. Go figure!

  17. massayoshi
    Member
    Posted 4 years ago #

    But it only works when I log in thru WP.

  18. Live2Game
    Member
    Posted 4 years ago #

    Brian.pan

    thanks a million

    I encounter another issue can anybody tell me what his means

    Parse error: parse error, unexpected '=', expecting ')' in /press/wp-content/plugins/phpbb-single-sign-on/common-functions.php on line 293

    I uninstalled wordpress then reinstalled and tried adding the PHPBB Single Sign On again and got that error

    is this something I can fix

  19. onigoetz
    Member
    Posted 4 years ago #

    Hi all,

    as you may have noticed, I worked to make a fix of this in the version 0.6.1

    for other questions that were asked, I recommend to open new topics, but I'll answer what I know.

    Sebi23DU : you say that your forum is blank ? this is because a wordpress plugin is colliding with a function name of phpbb.
    The only way to fix it now is to disable all plugins. and re-enable them one by one.

    I'm working on a piece of code that can automatically detect if a plugin will make it crash. but for now I'm searching for a regular expressions genius. because a function needs one to work. but it's already almost done.

    Live2Game : Are you using PHP4 ? the last time I saw this error the person had PHP4, I'm not sure if this is the cause, because I don't have a PHP4 install here and thus I can't test it.

  20. EvilFree
    Member
    Posted 4 years ago #

    I am having an issue with my install also,

    WordPress does not see any of my existing Forum logins.

    The authentication process works fine. I can also create new accounts on my wordpress site, which is then replicated on to my forums.

    Suggestions?

  21. onigoetz
    Member
    Posted 4 years ago #

    What do you mean by "does not see my existing Forum logins." ?

    Actually, the logins are replicated upon login.

    for example, the user "matt" subscribed to you forum months ago.
    now he wants to login. he can log into wordpress. and wordpress will automatically check if the user exists in the forum and create him in wordpress.

    Please tell me if it doesn't work so I can fix it.

  22. EvilFree
    Member
    Posted 4 years ago #

    I have tested it again this morning.

    I created a test user on the forums, then attempted to log into wordpress using the same credentials.

    I am then presented the wordpress standard response for invalid user.

    ERROR: Invalid username. Lost your password?

    Thanks for your help onigoetz

  23. ewesslen
    Member
    Posted 4 years ago #

    After uploading the files (I did automatic install through wordpress) I click to activate and I get the following message and my site becomes unstable, returning the following message:

    WordPress database error Table ‘xxxxxxxxxx.0config’ doesn’t exist for query SELECT config_value FROM 0config WHERE config_name = ‘auth_method’ made by require_once, require_once, require_once, require_once, do_action, call_user_func_array, wpbb_admin_warnings, wpbb_run_test, wpbb_get_current_auth_method

    xxxxxxxxxx = WordPress database name

    Thanks for any help.

    Also, my phpbb is located in a different database from my wordpress one. Should I uninstall phpbb and relocate it to the same database as the wordpress one?

  24. onigoetz
    Member
    Posted 4 years ago #

    @evilFree
    Hi,
    can you just tell me the username that you create ?
    because the implementation of the name match is a bit special.

    @ewesslen
    Hi,
    Yes, WordPress and PHPBB have to be in the same database.
    I'm working on the support of two diffrenet databases. but it's not finished now.

  25. ewesslen
    Member
    Posted 4 years ago #

    Thanks. Another quick question, does the phpbb install need to be in a certain directory related to the wordpress install? Right now my wordpress install is in the root directory with phpbb being in /forums. Thanks again for the help.

  26. ewesslen
    Member
    Posted 4 years ago #

    I reinstalled phpbb and it has the same database as wordpress but I'm still getting the same message as the one I posted above and the blog becomes unstable. Any ideas?

  27. onigoetz
    Member
    Posted 4 years ago #

    What do you mean by unstable ?
    and what prefix do you have for your phpbb tables ?
    it seems that my script can't find it for your tables.

  28. whatami
    Member
    Posted 4 years ago #

    1) Installed & configured WordPress 2.9.2 and phpBB-PL1 3.0.7
    2) Installed PHPBB Single Sign On 0.6.2 on WordPress
    3) Changed authentication to wpbb on the forum
    4) Copied the auth_wpbb.php /forum/includes/auth/auth_wpbb.php
    5) Copied common.php to /forum/common.php

    6) Went to PHP BB Options in the WordPress administration menu changing Second Path/Auth to wpbb
    but it did always revert back to apache no matter what i did.

    This is my phpBB output.
    Reccomended | Current OK ?

    • auth_wpbb.php: 0.6.2 0.6.2 OK
    • common.php: 0.6.2 OK
    • common.orig:.php - OK

    • Configurations

    • Auth Mode: wpbb Error
    • WordPress Path Variable: forum/ OK

    ---

    Ohh and btw when i try to reach the forum i get these errors

    Warning: file_get_contents(./common.orig.php) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.org/httpdocs/forum/common.php on line 17

    Fatal error: Call to a member function session_begin() on a non-object in /var/www/vhosts/domain.org/httpdocs/forum/index.php on line 24

  29. whatami
    Member
    Posted 4 years ago #

    Okey gotten everything green when i placed the forum in the same database wordpress is in. auth now keeps wpbb =D

    however when i am trying to visit the forum i get this error

    Warning: file_get_contents(./common.orig.php) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/vhosts/kpumea.org/httpdocs/forum/common.php on line 17

    Fatal error: Call to a member function session_begin() on a non-object in /var/www/vhosts/kpumea.org/httpdocs/forum/index.php on line 24

  30. _OMEGA_
    Member
    Posted 4 years ago #

    Anyone fixed these two errors:

    Warning: file_get_contents(./common.orig.php) [function.file-get-contents]: failed to open stream: No such file or directory in httpdocs/forum/common.php on line 17

    Fatal error: Call to a member function session_begin() on a non-object in httpdocs/forum/index.php on line 24

Topic Closed

This topic has been closed to new replies.

About this Topic