• Resolved gshell

    (@gshell)


    Hi, I installed this plugin and I believe I followed the directions on your website and am not able to get it to work (or it doesn’t do what I expected). I have a simple localhost environment created with a bitnami wordpress stack. I have an “admin” user on both the WP side and the phpbb side which work. Both have the same password. I have no other users on either location. I used the phpinfo() function to return the absolute path of C:/Website Development/apache2. In actuality, the standard phpbb config.php file is located in C:/Website Development/apache2/htdocs/forum. I have tried both and neither changed the relative RED text become GREEN in the plugin settings. I can successfully access php at this URL: https://localhost:81/forum.

    When I created a new user in WP, I expected to be able to open phpbb and log in to the same account username and password set in WP, but it did not find that username. What have I done wrong?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author axew3

    (@axewww)

    Hello!

    I have tried both and neither changed the relative RED text become GREEN in the plugin settings

    if the text not become green, then possibilities are 2:
    path to a valid phpBB config.php isn’t correct OR
    the phpBB config.php, contain the follow line in this way?
    @define('PHPBB_INSTALLED', true);

    Plugin Author axew3

    (@axewww)

    p.s:
    try to follow the custom config.php procedure.
    copy the
    addons/wp-w3all-config folder
    as is into your
    C:/
    directory and open the config.php on it:
    read comment inside, fill it with values as the root phpBB config.php is, and un-comment the very last line where:
    // @define('PHPBB_INSTALLED', true);
    change into
    @define('PHPBB_INSTALLED', true);
    set as path into plugin config, C:/wp-w3all-config

    what result?

    • This reply was modified 6 years, 3 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    the above edited:
    check that the path as my example that need to point to the config.php file, in this case will be
    C:/wp-w3all-config
    without final slash

    Thread Starter gshell

    (@gshell)

    I copied the wp-w3all-config folder to C: and edited the values from the default config.php file as you suggested. When I edited the path in the plugin to point to it, nothing turned green, but when I saved the WP-W3all configuration, WordPress logged me out of the site, took me to the home page, and I could no longer log in. I commented the last line of the config file so that I could log in again. Then after being logged into the WP site as admin, I uncommented the line and saved it. When I then saved the WP-W3all configuration I received the error: “You can’t perform this action.” The browser URL showed: https://localhost:81/wordpress/wp-admin/options-general.php?page=wp-w3all-options

    Any suggestions?

    Plugin Author axew3

    (@axewww)

    cookie problem: when you activate the integration this can happen:

    1) the user is logged out because the same username isn’t already logged into phpBB also. And phpBB need to have the correct cookie value to have correct cookie value over all the domain.
    check the related help here:
    https://www.axew3.com/w3/cms-plugins-scripts/wordpress-plugins-scripts-docs/wordpress-phpbb-integration/#installAndConfig

    2) you need to use the phpBB pass to login wp at this time, if is different for the same user in phpBB.
    3) remember the joke about uid 1 in wp and phpBB uid 2, they are treated by id and not by username: if you’re installing with uid 1 in wordpress, the user id 2 in phpBB need to exist also, or you need to exclude the uid 1 to be linked activating the option, before to activate the plugin, as explained on plugin admin page.

    Clean cookies when you’re ready with above checks, and login.

    Thread Starter gshell

    (@gshell)

    I cleaned cookies, and tried again – no luck. I still can not log into the WP site. I can log into the phpbb site under admin. I verified via phpmyadmin that the php admin user has ID=2 and that WP admin user has ID=1.

    3) remember the joke about uid 1 in wp and phpBB uid 2, they are treated by id and not by username: if you’re installing with uid 1 in wordpress, the user id 2 in phpBB need to exist also

    Are you implying that WP needs to have 2 users one with ID=1 and a second with ID=2 that matches the php ID=2? If so, then it seems to make sense to me that the WP ID=1 would need to be something other than ‘admin’ and that WP ID=2 would need to be ‘admin’ to match the php ID=2.

    Plugin Author axew3

    (@axewww)

    Are you implying that WP needs to have 2 users one with ID=1 and a second with ID=2 that matches the php ID=2? If so, then it seems to make sense to me that the WP ID=1 would need to be something other than ‘admin’ and that WP ID=2 would need to be ‘admin’ to match the php ID=2.

    No, uid 1 in wp and uid 2 in phpBB are recognized differently, by id, and associated (uid 1 in phpBB are guests). This is a cookie problem, that isn’t set correctly: it is not recognized and then you’re logged out.
    What about if you login with admin uid2, installer in phpBB then as logged you come in wordpress?
    it is logged in as uid 1 in wordpress?

    assuming that phpBB cookie is correctly setup to be available over all the domain, the answer should be yes.

    sorry edited: was phpbb uid 2 of course

    • This reply was modified 6 years, 3 months ago by axew3.
    • This reply was modified 6 years, 3 months ago by axew3.
    Thread Starter gshell

    (@gshell)

    I can log in to phpbb as admin (ID=2) with no problem.
    I checked the phpbb cookie domain settings in the ACP and they are set to ‘localhost’. Should it be localhost:81?
    I also changed my browser (Windows 10 – Edge) cookie settings to “Do Not Block Cookies” just to see if it made any difference. – No change. I can not log into WP admin account (ID=1) or a second administrator account that I created for testing.

    Could it have anything to do with the installation directories of php and WP?
    php is installed in C:\Website Development\apache2\htdocs\forum
    phpbb is accessed via: https://localhost:81/forum/
    wp is installed in C:\Website Development\apps\wordpress
    and accessed via: https://localhost:81/wordpress/

    Thanks for all of your help.

    Plugin Author axew3

    (@axewww)

    np, this way the plugin can be improved because i know there are problems that i or others may not experience. Often a solution for an issue can be imagined, personally unfortunately i often need to experience, to understand how to resolve.

    No, the cookie value need to be just localhost

    The cookie path setting is set as / (single slash) on ACP?

    Could it have anything to do with the installation directories of php and WP?

    should not, because by the way the domain should be resolved to the same and the cookie recognized.

    so you can login phpBB, but when coming on wp side you result logged out: this mean that the phpBB cookie isn’t recognized on wp side.
    You also result logged out from phpBB when you return to phpBB?

    just supposing, let assume that your is the case where localhost as value not work fine: on phpBB ACP where cookie setting, what if you go to setup it as empty value, then logout, and opening
    /wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
    where line:

          if(empty($w3cookie_domain)){
          	$w3cookie_domain = 'localhost';
          }

    you change into

          if(empty($w3cookie_domain)){
          	//$w3cookie_domain = 'localhost';
          }

    then login phpBB, coming in wp you still result logged out?

    At last, may to try to install an on fly wordpress in 2 min into a subfolder of same phpBB directory if all the above still not work?

    (p.s now it is clear why the path to config.php was not working, the correct absolute path as above you say installs are, would be then:
    C:\Website Development\apache2\htdocs\forum
    )

    • This reply was modified 6 years, 3 months ago by axew3.
    • This reply was modified 6 years, 3 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    p.s
    or just open wp_w3all.php
    and where:

    // FORCE here the reset of cookie domain (removing the two chars // in front on next line)
    // $w3reset_cookie_domain = '.mydomain.com'; // (set 'localhost' if you're on localhost) change to fit THE SAME COOKIE DOMAIN SETTING as you have set it in phpBB config. To RESET/force cookie domain setting: remove // chars in front of this line and save, than load any WP page one time. So comment out other time this line re-adding // chars and save.

    change into

    // FORCE here the reset of cookie domain (removing the two chars // in front on next line)
     $w3reset_cookie_domain = false; // (set 'localhost' if you're on localhost) change to fit THE SAME COOKIE DOMAIN SETTING as you have set it in phpBB config. To RESET/force cookie domain setting: remove // chars in front of this line and save, than load any WP page one time. So comment out other time this line re-adding // chars and save.

    then login in wp (using phpBB user pass if different from wp)
    ???

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Install not working’ is closed to new replies.