Cannot create new users with wp-members anymore

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Cannot create new users with wp-members anymore

Re: Cannot create new users with wp-members anymore

by tlagren » Tue Apr 15, 2025 6:07 pm

It's from the wp-members registration page. I haven't got time to re-enable the default wp registration but wil try to do that.

/Tomas

Re: Cannot create new users with wp-members anymore

by axew3 » Mon Apr 07, 2025 4:07 pm

from where you try to register and fail? WP default login/reg page or the wp-members registration page?

Re: Cannot create new users with wp-members anymore

by tlagren » Fri Apr 04, 2025 7:21 pm

This is so strange. Today I have tested this
  • Re-installed both wp-members and w3all
  • Upgraded phpbb to latest 3.3.15
  • Tried with and without the phpbb wp extension.
  • Disabled all plugins excepts wp-members and w3all.
Then having w3all enabled and selected the option to link users, new users cannot register to Wordpress anymore.

/Tomas

Re: Cannot create new users with wp-members anymore

by tlagren » Fri Apr 04, 2025 8:39 am

I'm just trying to let new users register to Wordpress using WP-members, but with the w3all plugin enabled it's not working. The user does not receive any error messages and there is no issues in the logfile, the user is not created.

If I disable w3all new users can register to wp.
When using "not linked users", new users can register to wp, but cannot login to wp.
If if remove DB config for wp3all (to make the code stop) new users can register to wp and the also login to wp.

This has been working for years, but suddenly I noticed that new users hasn't been added for long so I'm not really sure what caused this.

To try to find where the code stops i added debug to it and found that w3all_add_phpbb_user was the last part that was executed.

/Tomas

Re: Cannot create new users with wp-members anymore

by axew3 » Thu Apr 03, 2025 10:04 pm

What you try to do? To add an user in WP when registered into phpBB? Because this function
w3all_add_phpbb_user add a phpBB user into WP when the registration process into phpBB is complete and works with the phpBB extension that through cURL send a post request to WP.
If the var w3alladdphpbbuid is not set, as the code say, the function just return.

Are you searching for functions that adds users into phpBB instead?

Re: Cannot create new users with wp-members anymore

by tlagren » Thu Apr 03, 2025 7:39 am

I have done some more debugging and I think the problem is as below, at least the w3all plugin exists here.

Code: Select all

function w3all_add_phpbb_user() {

  // work with the phpBB WordPress extension -> cURL
  // add user into WP, do NOT setup a phpBB session for the just inserted WP user

  global $w3all_add_into_wp_u_capability,$phpbb_config,$w3all_oninsert_wp_user,$wpdb,$wp_w3all_forum_folder_wp;
     if( isset($_REQUEST["w3alladdphpbbuid"]) ){
      $phpbbuid = intval($_REQUEST["w3alladdphpbbuid"]);
      $uemail = str_replace(chr(0), '', $_REQUEST["w3alladdphpbbuemail"]);
      $w3allastoken = trim(str_replace(chr(0), '', $_REQUEST["w3allastoken"]));

      if( $phpbbuid < 3 ){ return; }
     } else { return; ******** This is last known part of the code that is executed *********** }
The variable $_REQUEST["w3alladdphpbbuid"] is undefined

Could there have been some issues with my phpbb database that affected the avatar salt?
I checked the DB and the table structure i there, column user_form_salt exists in table phpbb_users

/Tomas

Top