So i tested the thing, and all is working fine about the phpBB extension, except the warning coming out to you due to some setting about user's registration in phpBB. The warning above reported can maybe be just resolved adding an
if isset.
But also i
note the fact that if the URL setting that point to WP do NOT contain the final slash, WON'T work, so:
https://localhost/wp/ or
https://localhost/wp/a-test-page/ --> OK
https://localhost/wp --> NOT Ok, will not work
this is easily solvable also, adjusting the right required URL, adding a slash when lacking.
It will be so improved asap on next coming ext version.
But the main problem about the user that is NOT added in WP, come after when the wordpress with the integration plugin installed, and based on the cURL/request received, go to execute the function
into the
/wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php file.
Inside this function, the very strange thing, that's to me coming from a bug in wordpress, is that passing the email:
Code: Select all
$userdata = array(
'user_login' => $phpbb_user[0]->username,
'user_pass' => md5($phpbb_user[0]->user_password),
'user_email' => $phpbb_user[0]->user_email,
'user_registered' => date_i18n( 'Y-m-d H:i:s', $phpbb_user[0]->user_regdate ),
'role' => $role
);
DO NOT WORK,
while the follow will WORK, that DO NOT PASS the email:
Code: Select all
$userdata = array(
'user_login' => $phpbb_user[0]->username,
'user_pass' => md5($phpbb_user[0]->user_password),
//'user_email' => $phpbb_user[0]->user_email,
'user_registered' => date_i18n( 'Y-m-d H:i:s', $phpbb_user[0]->user_regdate ),
'role' => $role
);
It can be also easily resolved, updating into the subsequent query the email for the just created user.
Very strange behavior, it has been quite hard to understand the issue.
The bug in WordPress is about the
wp_insert_user function that in my tests fail with error
not enough data provided when email value provided.
This is the
wp_w3all.php file with the
function w3all_add_phpbb_user() {
patched to work fine:
I will return over this to check if can be resolved in a different way (but it appear to me to be a WP bug, we'll see) , or the next 2.7.1 will come with this same fix applied.
If you want i will surely take a look to your going on, so may link it to me into a pm
So i tested the thing, and all is working fine about the phpBB extension, except the warning coming out to you due to some setting about user's registration in phpBB. The warning above reported can maybe be just resolved adding an [i]if isset[/i].
But also i [b]note the fact that if the URL setting that point to WP[/b] do NOT contain the final slash, WON'T work, so:
[b]https://localhost/wp/[/b] or [b]https://localhost/wp/a-test-page/[/b] --> OK
[b]https://localhost/wp[/b] --> NOT Ok, will not work
this is easily solvable also, adjusting the right required URL, adding a slash when lacking.
It will be so improved asap on next coming ext version.
But the main problem about the user that is NOT added in WP, come after when the wordpress with the integration plugin installed, and based on the cURL/request received, go to execute the function
[code]function w3all_add_phpbb_user() {[/code]
into the [i]/wp-content/plugins/wp-w3all-phpbb-integration/[b]wp_w3all.php[/b][/i] file.
Inside this function, the very strange thing, that's to me coming from a bug in wordpress, is that passing the email:
[code]
$userdata = array(
'user_login' => $phpbb_user[0]->username,
'user_pass' => md5($phpbb_user[0]->user_password),
'user_email' => $phpbb_user[0]->user_email,
'user_registered' => date_i18n( 'Y-m-d H:i:s', $phpbb_user[0]->user_regdate ),
'role' => $role
);[/code]
DO NOT WORK,[b] while the follow will WORK[/b], that DO NOT PASS the email:
[code] $userdata = array(
'user_login' => $phpbb_user[0]->username,
'user_pass' => md5($phpbb_user[0]->user_password),
//'user_email' => $phpbb_user[0]->user_email,
'user_registered' => date_i18n( 'Y-m-d H:i:s', $phpbb_user[0]->user_regdate ),
'role' => $role
);[/code]
It can be also easily resolved, updating into the subsequent query the email for the just created user.
Very strange behavior, it has been quite hard to understand the issue.
The bug in WordPress is about the [b]wp_insert_user[/b] function that in my tests fail with error [b]not enough data provided[/b] when email value provided.
This is the [b]wp_w3all.php[/b] file with the [b][i]function w3all_add_phpbb_user() {[/i][/b]
patched to work fine:
[attachment=0]wp_w3all.zip[/attachment]
I will return over this to check if can be resolved in a different way (but it appear to me to be a WP bug, we'll see) , or the next 2.7.1 will come with this same fix applied.
If you want i will surely take a look to your going on, so may link it to me into a pm