szawil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can't login or register to forumSorry, 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.
Forum: Fixing WordPress
In reply to: Can't login or register to forumI 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.
Forum: Fixing WordPress
In reply to: Can't login or register to forumHmm… 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.
Forum: Fixing WordPress
In reply to: Can't login or register to forumI 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.
Forum: Fixing WordPress
In reply to: Can't login or register to forumMaxminzer,
I think I experienced the same problem… for some reason, I needed to put the following line of code in many of the files in my /phpBB/includes/ucp directory.
For example, what might solve your problem is to edit the /phpBB/includes/ucp/ucp_register.php file.
Somewhere near the beginning of the function main($id, $mode), try inserting the following line of code:
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
If that works, there are probably several other files you need to insert this code into to get your UCP panel functioning correctly.
Forum: Fixing WordPress
In reply to: Can't login or register to forumI think your fix worked! Thanks…
For some reason, my ucp_register.php file was missing an include statement for functions_user.php.
Forum: Fixing WordPress
In reply to: Can't login or register to forumIn fact, I get this error message in my error log, regardless of whether it is ‘username’ or ‘username_phpbb’
PHP Fatal error: Call to undefined function validate_data() in /var/www/html/site/forum/includes/ucp/ucp_register.php on line 202, referer: https://www.site.com/forum/ucp.php?mode=register
Is this the same error message you were getting before your fix jwhyatt?
Thanks!
Forum: Fixing WordPress
In reply to: Can't login or register to forumjwhatt,
I seem to be having the same problem. Unfortunately, that fix didn’t work for me.
I want to make sure I’m making the fix in the right place. Is this where you made the change? This begins on around line 200 of ucp_register.php for me.
if ($submit) { $error = validate_data($data, array( 'username' => array( array('string', false, $config['min_name_chars'], $config['max_name_chars']), array('username', '')), 'new_password' => array( array('string', false, $config['min_pass_chars'], $config['max_pass_chars']), array('password')), 'password_confirm' => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']), 'email' => array( array('string', false, 6, 60), array('email')), 'email_confirm' => array('string', false, 6, 60), 'tz' => array('num', false, -14, 14), 'lang' => array('match', false, '#^[a-z_\-]{2,}$#i'), ));
Was it only in one line of code?
Forum: Fixing WordPress
In reply to: Can't login or register to forumGlad that worked!
I’m having one further minor issue. When I go to log-out of phpBB, I am receiving this message in Firefox:
“Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”
or this message in Chrome:
“The web page … has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.”
It ends up logging out successfully, but I’d appreciate help or suggestions from anybody with knowledge of these error messages. Thanks!
Forum: Fixing WordPress
In reply to: Can't login or register to forumMaxminzer, I may have found the solution.
There appears to be a conflict for the name of the function ‘ validate_username’. It is a function that exists in both the latest versions of phpBB and WordPress 3.1. What I did is simply rename the function in phpBB.
There were 3 files, and 3 total lines of code that I needed to edit, in your phpBB directory.
First, in the /includes directory, functions_user.php contains the definition for ‘validate_username’. Find the following line of code:
function validate_username($username, $allowed_username = false)
and change it to:
function validate_username_phpbb($username, $allowed_username = false)
This will rename the function. Next, you have to change any place in your phpBB code that references this function. For me, this was posting.php and posting.orig.php (found in the root directory of phpBB).
Search for the following line of code in both posting.php and posting.orig.php:
if (($result = validate_username($post_data['username'], (!empty($post_data['post_username'])) ? $post_data['post_username'] : '')) !== false)
and replace it with:
if (($result = validate_username_phpbb($post_data['username'], (!empty($post_data['post_username'])) ? $post_data['post_username'] : '')) !== false)
Hopefully that works for you!
Forum: Fixing WordPress
In reply to: Can't login or register to forumMy code is failing to line 18 of ucp.php (ucp.php is a phpBB file) at any time the ucp.php file is accessed:
require($phpbb_root_path . 'includes/functions_user.' . $phpEx);
I’m using Netbeans to debug. When I “step into” line 18 of ucp.php, it instantly jumps to function __destruct() of wp-db.php. The path and filename appears to be correct. Line 17 of ucp.php is:
require($phpbb_root_path . 'common.' . $phpEx);
which runs like a normal require statement. If I comment out line 18 of ucp.php, I can access the log-in page, and it works fine. I can also access the register page, but it fails when I go to register a user, as it requires functions that are part of functions_user.php.
What could be causing wordpress to go jump to the __destruct() function when using the require statement?
Thanks for any help!
Forum: Fixing WordPress
In reply to: Can't login or register to forumClarification of my above post… I can still access the forum without being signed in. phpbb-single-sign-on is the only thing allowing me to be signed in on my phpbb forum.
Forum: Fixing WordPress
In reply to: Can't login or register to forumI am having the same exact problem. Just updated to WordPress 3.1 on a development server, and phpbb-single-sign-on is the only thing letting me still gain access to my phpbb forum.
With phpbb-single-sign-on installed, I can sign on in the wordpress section of the site, then remain signed on over in the phpbb forum… but I can’t do anything with registering, logging in, or even signing out over at the phpbb forum.
When I uninstall phpbb-single-sign-on, I am no longer kept signed in over the forum, as I would expect.
The setup worked perfectly fine before upgrading to version 3.1