Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

New users cannot register

Asked Modified Viewed 4,522 times
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hi folks - first timer here, but I am familiar with PHP portals (been using PHP Nuke and similar platforms since about 2001

I just set up a new installation of Fusion 7 ( the download on the front page of this site), and although I can log in as the site admin, nobody else seems to be able to register. They get the confirmation on screen from the site, but no email and I don't get any indication that someone has registered, nor can I see any evidence of it in the SQL tables. I have even tried disabling everything except captcha on the registration page, but I get the same result.

The site is running on a Windows 2008 server, withy MySQL and Abyss web server. If anyone has an idea on what might be wrong I'd be grateful for your guidance!
0 replies

16 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Please opt for php-fusion 9.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

I didn't see a download link for that - do I need to sign up for a beta?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Heya, You can always find the latest revison here : https://github.com/PHPFusion/PHPFusion

Your issue in 7 is most likley due to mail issues, all non verified users are stored in newusers table. users table is empty.
If you turn off all verifications including mail and try again I am sure it works.
Edited by N/A on 08-07-2016 16:24,
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

That's just the thing - I have turned off every verification and tried it that way as well, and it still doesn't save a thing. I've found the download for 9 and I am playing with it right now, but I'm not finding the admin pages as easy to navigate.

UPDATE:

So, it turns out I can add a user through the admin panel, and that user is then able to log in/out without any issue, so the login script seems to work there.

However, new users still don't get added if they try to sign up on their own. The mail is configured correctly as I got a message in my inbox when I created the test user, so there shouldn't be an issue there.

Also, I cannot log out of the admin account - it just returns me to the main page, still logged in.

What I have made sure of:

Added to hosts file on the server - 172.20.30.49 internal-web1
site_url - internal-web1/fusion
site_path - /fusion

I'm convinced this is a simple thing I am missing somehow. The server is on an internal network as well.

UPDATE 2:

I just tried giving my test user admin privileges, and though the script seems to do something, the permissions do not get changed and the test account does not get added to the admin list.

UPDATE 3

I re-enabled email verification to see if that would work, and it sort of does. The email gets sent out with the verification link, but the link is seen as a mailto link instead of http, and if I copy the link into a browser, I get a 404 error. The new user does show up in the SQL table as well, but it doesn't show up in any of the admin panels as unregistered or otherwise.
Edited by grimmcartel on 08-07-2016 20:06,
grimmcartel attached the following file:
sql_1.png [No information available / 94 Downloads]
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Try the siteurl with http:// before internal-web.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks - that fixed the link in the registration email, but it still doesn't actually register a new user. Here's the sequence, as far as I can tell:

User fills out form and submits
Site adds data to the new user table, with registration code etc
Site sends user a verification email
User clicks the link on the email, and is taken to the site which says the account has been verified, and they can log in
User enters credentials, but gets invalid username or password error. At this point, the database has dropped the new user info.

No idea where it's going, but I'd love to find out...
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

new user info should be dropped and moved to users once verified.
I am not sure what can be going on beyond that.
What you are working with there is a rock solid function since many years back with no known issues, please check server configurations and environment settings.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

I don't see a users table at all... maybe it didn't get made on installation?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You can try to manually create one, check the setup for layout, just take it and run it thru sql window (phpmyadmin or similar) with correct database prefixes to it.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Ok, so you're saying there should be a "users" table in the DB? I checked, and "submissions" is the last table in the DB I have. Did the install script leave out some stuff? Also, I can't seem to figure out where the install script is in the package I downloaded. Also, since I can add a user manually, where would that information be stored, if not in a "users" table?
Edited by grimmcartel on 11-07-2016 18:29,
grimmcartel attached the following file:
fusionsql.png [No information available / 77 Downloads]
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Yes there should be a users table.
Users you add should be added to it as well, you sure have some odd behaviour on the install or your environment.
The install script is located in the root and called setup.php.

                       $result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."users");
                     $result = dbquery("CREATE TABLE ".$db_prefix."users (
                     user_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
                     user_name VARCHAR(30) NOT NULL DEFAULT '',
                     user_algo VARCHAR(10) NOT NULL DEFAULT 'sha256',
                     user_salt VARCHAR(40) NOT NULL DEFAULT '',
                     user_password VARCHAR(64) NOT NULL DEFAULT '',
                     user_admin_algo VARCHAR(10) NOT NULL DEFAULT 'sha256',
                     user_admin_salt VARCHAR(40) NOT NULL DEFAULT '',
                     user_admin_password VARCHAR(64) NOT NULL DEFAULT '',
                     user_email VARCHAR(100) NOT NULL DEFAULT '',
                     user_hide_email TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
                     user_offset CHAR(5) NOT NULL DEFAULT '0',
                     user_avatar VARCHAR(100) NOT NULL DEFAULT '',
                     user_posts SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
                     user_threads TEXT NOT NULL,
                     user_joined INT(10) UNSIGNED NOT NULL DEFAULT '0',
                     user_lastvisit INT(10) UNSIGNED NOT NULL DEFAULT '0',
                     user_ip VARCHAR(45) NOT NULL DEFAULT '0.0.0.0',
                     user_ip_type TINYINT(1) UNSIGNED NOT NULL DEFAULT '4',
                     user_rights TEXT NOT NULL,
                     user_groups TEXT NOT NULL,
                     user_level TINYINT(3) UNSIGNED NOT NULL DEFAULT '101',
                     user_status TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
                     user_actiontime INT(10) UNSIGNED NOT NULL DEFAULT '0',
                     user_theme VARCHAR(100) NOT NULL DEFAULT 'Default',
                     user_location VARCHAR(50) NOT NULL DEFAULT '',
                     user_birthdate DATE NOT NULL DEFAULT '0000-00-00',
                     user_skype VARCHAR(100) NOT NULL DEFAULT '',
                     user_aim VARCHAR(16) NOT NULL DEFAULT '',
                     user_icq VARCHAR(15) NOT NULL DEFAULT '',
                     user_msn VARCHAR(100) NOT NULL DEFAULT '',
                     user_yahoo VARCHAR(100) NOT NULL DEFAULT '',
                     user_web VARCHAR(200) NOT NULL DEFAULT '',
                     user_sig TEXT NOT NULL,
                     PRIMARY KEY (user_id),
                     KEY user_name (user_name),
                     KEY user_joined (user_joined),
                     KEY user_lastvisit (user_lastvisit)
                     ) ENGINE=MYISAM;");
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Ok, I tried to run the query on my DB, and it timed out. I can see that this shouldn't take more than a couple of seconds to accomplish, so I must be missing something. Also, it now seems that I no longer have outside access to my MySQL admin panel - I have to RDP direct to the VM and run it locally in order to see it.

Thanks for all the help guys - this has me super puzzled as well.

Error 414 - Request URI too long - that's the timeout message I get.

EDIT - Ok, bit of a boneheaded move on my part here. I hadn't noticed the 2nd page of tables under the fusion DB, so Users exists. However, I decided to track the tables while my colleague went through the signup process. I could see the user created in new users, and it disappeared from that table when he clicked the link in his email, but it was never created in the Users table, and there was no error shown.

Is there something special about that particular part of the operation that needs something server-side enabled or configured? Most of the other scripts I have run on this server seem to work fine with logins.

Merged on Jul 12 2016 at 21:32:36:
      // getmequick at gmail dot com
      // http://www.php.net/manual/en/function.unserialize.php#71270
      function unserializeFix($var) {
         $var = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $var);
         return unserialize($var);
      }

      $data = dbarray($result);
      $user_info = unserializeFix(stripslashes($data['user_info']));
      $result = dbquery("INSERT INTO ".DB_USERS." (".$user_info['user_field_fields'].") VALUES (".$user_info['user_field_inputs'].")");
      $result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE user_code='".$_GET['code']."' LIMIT 1");



Ok, so if I'm right, this is the piece of code that isn't doing what it should be. I'm not really a pro, so I might be reaching here, but shouldn't there be a corresponding DB table or column for user_info user_fields_fields and user_field_inputs?

Merged on Jul 13 2016 at 22:18:48:
Still looking for a solution to this - thanks muchly for all of the help so far, but I really need to figure out this one issue so I can get on with developing the rest of the site...
Edited by grimmcartel on 13-07-2016 22:18,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

No they are arrays created for callback.
Basically, you can look in the error log and see step by step where it goes wrong if it gets reported there.
What version are you running of PHP and MySql? There are mysqli adapatations for higher versions around if that would be the case. But then again, I would recommend 9 on latest environments. 7 is simply not made for it.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Server version: 5.6.28-log - MySQL Community Server (GPL)

PHP 5.6.9

I understand the recommendation for 9, but for what I want to do, 7 just fits better for the time being. It's also a style I'm far more used to, so I can find my way around it a lot easier.

What are the adaptations you're talking about?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

It was existing on the German site last I heard, please check there and see if you can find it´s complete codes. It is a mysqli adaptation.
It is also described here, https://www.php-fusion.co.uk/articles.php?article_id=49
dont mind all them question marks, they need to poff naturally, they are there since PHP version upgrade, we need to switch to 9 here as well but during the prepare we get some odd things like that in.
0 replies
G
grimmcartel
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Ok, so that means I should upgrade PHP to 7, and install the mysqli extension, and then make all of the recommended code changes? Or would I just need to change register.php in this case?
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 16 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
G
G
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet