Jump to content

PHPBB2 Forums can't register


Recommended Posts

I'm setting up a website for a few friends of mine, but I am having trouble with the registration page.It won't let anybody register. When you enter all your information it just refreshes the page and there isn't any errors or anything from the from.It just doesn't take registrations.The forums are at www.rabbitsnail.com/rabbitsnail/Thanks.

Edited by jblack
Link to post
Share on other sites

I looked at your site, but couldn't begin to check it because there's so much we don't have access to (mysql tables, etc). The first thing I'd check is what's being passed to the POST array. Just let us know if you need help with that diagnostic.

Link to post
Share on other sites

I'm working on it. I'm not real familiar with phpbb. I haven't used it in quite awhile. I'll look at all the info.I can't figure it out. I'm not sure exactly what file controls the registration.I'll better explain what's going on.When you try to register absolutely nothing happens. If you don't enter anything you get the same result as filling everything out. It just refreshes the page and there is no error message.

Edited by jblack
Link to post
Share on other sites

right, we get it, and niche already suggested a good debugging trick, display the contents of the $_POST array. i.e.

var_dump($_POST);

at the top of profile.php, after the opening <?php tag. See if the form data is even coming 'over the wire' so to speak.

Edited by thescientist
Link to post
Share on other sites

Sounds like its time to do some debugging on that page. One method that is often recommended is to include the problem page in a php file that has error reporting turned on. So for now, instead of linking to the phpBB page, link to a page called debug.php, for example, like so:

<?phpini_set('log_errors', 1);ini_set('error_log', dirname(__FILE__) . '/error_log.txt');error_reporting(E_ALL);include('phpbb.php');?>

and put it in the same directory as your phpbb.php page (or whatever its called). This should hopefully get some error messages displaying for you, as well as logging them for you.

Edited by thescientist
Link to post
Share on other sites

The result:

[06-Nov-2010 01:47:11] PHP Notice:  Undefined index:  avatar in /home/www/rabbitsnail.com/rabbitsnail/includes/usercp_register.php on line 202[06-Nov-2010 01:47:11] PHP Notice:  Undefined index:  avatar in /home/www/rabbitsnail.com/rabbitsnail/includes/usercp_register.php on line 202

Edited by jblack
Link to post
Share on other sites

There isn't anything in the database.Edit - Here's line 202$user_avatar_upload = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim($HTTP_POST_VARS['avatarurl']) : ( ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : '' );

Edited by jblack
Link to post
Share on other sites

so I guess $avatar is undefined. Time to track it down and find out where it's coming from and find out why there's no value for it.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...