• maxminzer

    (@maxminzer)


    Hey, so I have my PHPBB forum as a link on one of the pages of my WordPress based website.
    And use WP-Members and PHPBB Single Sign On plugins to connect WP and PHPBB users.
    Updated to WordPress 3.1 today (I don’t know if that’s the reason – but most probably).

    Now noone can login or register on PHPBB forum.
    Whenever I try to access https://teensatsalvation.com/forum/ucp.php?mode=login or https://teensatsalvation.com/forum/ucp.php?mode=register I get a window saying “Oops! This link appears to be broken.”

    However, I can login on WP side and then access the forum (logged in automatically to the forum). But if I click logout on PHPBB forum – same problem happens.

    There seems to be something wrong going on with ucp.php

    Please help

Viewing 15 replies - 31 through 45 (of 47 total)
  • Thread Starter maxminzer

    (@maxminzer)

    Thank you for fast response! I hope this works and I’m trying to do that. Just want to double check (I’m clueless about php) – do I just put it here:

    class ucp_register
    {
    	var $u_action;
    
    	function main($id, $mode)
    	{
                    include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
    		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
    
    		//
    		if ($config['require_activation'] == USER_ACTIVATION_DISABLE)
    		{
    			trigger_error('UCP_REGISTER_DISABLE');
    		}

    Thread Starter maxminzer

    (@maxminzer)

    What I’ve done above doesn’t fix it. What other files do I need to modify, please? Thank you for your help!

    szawil

    (@szawil)

    I did it like this:

    global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
    include($phpbb_root_path . 'includes/functions_user.' . $phpEx);

    I’m not sure it matters.

    Thread Starter maxminzer

    (@maxminzer)

    Ok, I switched them and now I get a blank page when I click “Register”

    szawil

    (@szawil)

    Hmm… I’m not sure. The other files wouldn’t fix the registration process. Could you check your error logs?

    I had the following error generated when I tried to register a user:

    [DATA/TIME] [error] [IP] PHP Fatal error: Call to undefined function validate_data() in /var/www/html/SITE/PHPBB/includes/auth/ucp_register.php on line X

    I’m running CentOS, and my error log is found in /var/log/httpd/

    The important part of the above error was that the validate_data() function wasn’t loaded.

    Thread Starter maxminzer

    (@maxminzer)

    I installed “phpBB3 Error Logging Tool” and it should generate a php_error.log file automatically but it’s not in the directory it’s supposed to be in.
    So I can’t really see any error logs.
    Would you please give me a link for CentOS tool?

    Thread Starter maxminzer

    (@maxminzer)

    And if I will get that error, what would I do next since code above didn’t help in my case?

    Thread Starter maxminzer

    (@maxminzer)

    NO WAY!!!!!!

    I didn’t read jwhyatt’s comment above.

    This change in ucp_register.php worked and fixed the problem!

    array(‘username’, ”)),
    to
    array(‘username_phpbb’, ”)),

    THANK YOU SO MUCH!!!

    P.S.
    Now the thing that makes me worry is what will happen when WordPress or PHPBB will make another update ??

    szawil

    (@szawil)

    I was just going to ask if you did that! Glad you figured it out.

    For reference, if you still have some trouble with your forum, I also had to edit ucp_prefs.php, ucp_profile.php, and auth_wpbb.php. I had to insert that include statement into any function that referenced ‘validate_data’.

    Test updating your profile, preferences, etc in your User Control Panel and make sure it all works.

    Doesn’t mean you’ll have to make any further changes, but if you continue to have problems, this may help.

    I can’t help you with the CentOS stuff, sorry.

    Thread Starter maxminzer

    (@maxminzer)

    Hey, thank you!

    I got one more question and it might be related to the same problem:

    Whenever I go to ACP and try to change administrative settings like Attachment settings and click submit – it asks me to login page again and after I do no changes are made.
    It’s a loop – can’t change anything

    Thread Starter maxminzer

    (@maxminzer)

    Also, if any problem comes up in the forum, what do I change in (for example) auth_wpbb.php or ucp_pref.php ? The “array” function or what?
    Thank you very much for your help!

    szawil

    (@szawil)

    Sorry, I don’t know what’s going on with your Attachment settings. That hasn’t happened to me.

    Regarding the other files… search for the ‘validate_data’ function in your code. Then place the following statement:

    include($phpbb_root_path . 'includes/functions_user.' . $phpEx);

    Near the beginning of the function that uses ‘validate_data’, but after the “global” variables declaration… (e.g. something like:

    global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;

    My code kept generating the undefined function error for “validate_data”, so I had to tell the code where to find it (in functions_user.php)

    Again, this may not apply to your forum.

    Thread Starter maxminzer

    (@maxminzer)

    Wow!
    Everything just works for me! It’s incredible – I found solution for administrative settings problem.

    I tried installing WP-United a while ago. It didn’t work. I unistalled it but didn’t read all instructions and WP-United tab was still on my PHPBB and I couldn’t remove it anyhow. What I had to do was I had to go to wp-united/options.php and manually change “UNINSTALL” from FALSE to TRUE (I had to install WP-United again for that).
    That was affecting my permissions I guess.

    Everything works now after I removed that tab and deleted WP-United completely.

    Thank you very much for all your help!!!

    Thread Starter maxminzer

    (@maxminzer)

    Nevermind, it wasn’t WP-United.
    I was checking a different testing website with PHPBB where everything works fine.
    Still have settings change issue. Trying to figure it out

    @maxminzer: hey man, I’m having a huge amount of issues with this plugin and the current versions of WP and PhpBB3. Did you got it working? if so, mind to share the overall findings?

Viewing 15 replies - 31 through 45 (of 47 total)
  • The topic ‘Can't login or register to forum’ is closed to new replies.