Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: cralor on July 03, 2010, 11:58:34 PM

Title: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 03, 2010, 11:58:34 PM
Version: 2.0 RC3

Our site was working perfectly fine, but once I upgraded to Aeva Media 1.3a, things got wonky.

I searched around and tried different things. This is what I have already tried:

1) Clearing the 'smf_sessions' table ('Empty' phpMyAdmin function)
2) Clearing cookies
3) Deleting my cache
4) Running 'repair_settings.php'
5) Putting 'www.' before the board URL in 'Settings.php'

Here is my 'phpinfo()' file:
http://www.delibargaming.com/phpinfo.php

What else can I try? None of our users, including the Admins, can log into the site now. I cannot try repairing the boards or view the errors if I cannot log in.

Please help. This is a semi-time-critical issue.

Thank you.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: CapadY on July 04, 2010, 04:23:56 AM
I think I would start uninstalling AEVA.
This is be done via FTP so you don't have to login
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 01:41:14 PM
Hello. Thank you for the suggestion and sorry about the late reply.

I have commented out every file modification listed here: http://custom.simplemachines.org/mods/index.php?mod=977 (And then click 'Parse')
This, unfortunately, has not fixed our issue.

What other recommendations might you have?

Thank you.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 01:45:56 PM
Was AEVA the very last mod that you installed?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 01:49:23 PM
I did not have any issues until upgrading from 1.1 to 1.3a of Aeva Media.

I uninstalled 1.1 and then installed 1.3a successfully. When uninstalling 1.1, there were some errors, saying that it could not remove some of the information on some of our files, but I assumed that since I would be reinstalling, this would be okay. I do not know if this specific issue is the cause of our login problems. Might this bring about any ideas?

Thank you.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 01:53:00 PM
Yeah, I've got that.

Was the upgrade of that mod the last mod that you installed?

If it was, I have a way out, for you, possibly.


The BIG shame, is that people NEVER backup, before doing this kinda thing.

That would, of course, be the best solution.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 02:22:48 PM
I did have a Sources, index.php, and SSI.php backup, but after applying these older files, the issue still remains.

Do you think this is a file, mod, or database issue? My only worry is that even if I backup my database, save my Theme files, and re-install clean, that if I want to retain what I have currently, I will receive the same error message.

Could you shed a bit of light on this? I am totally fine with re-installing. The Theme files should not be harmed from this and the whole site look should retain. I just want to try and keep as much of the database as possible.

Thank you.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 02:28:18 PM
One more try...

Was the upgrade of that mod the last mod that you installed?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 02:31:31 PM
Sorry.

Upgrading Aeva Media is the last mod install/upgrade that I did.

If you are asking "Was Aeva Media the last mod that you installed originally?" (which might be misunderstood from your question), then I do not remember. I believe that could be a No.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 02:33:39 PM
Well, let's have a small pray and try this... Might be best to backup, first, just in case.

Inside your Packages directory, you'll find another, named "backups".


In there, you'll find, hopefully, a file named something like "2010-07-05_before_AEVA_upgrade.zip".


If you get that file and dearchive it, on your hard disk, you can upload all the files to your site, overwriting what's there, now.


That should put you back as you were, before you installed that mod.


Lesson learnt. In future, before adding ANY mods, or custom themes, BACKUP EVERYTHING, first.  ;)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 02:53:07 PM
Fortunately, this file was there.

Unfortunately, overwriting my current files with those has had no affect on the error. I am still receiving it :(
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 02:56:26 PM
I'm not sure what your error is, to be honest.

You say "things got wonky".

What do you mean, by that?

I just went to your site and it seems OK.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 02:59:20 PM
I cannot log in. That is the problem.

Sorry. I probably should have made it more clear. I did say "None of our users, including the Admins, can log into the site now.", though.

My error is the topic name. I receive this whenever anyone registered on my site tries to log in.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 03:07:36 PM
Yeah, sorry... Men can't multitask.  :P

Can you PM me a username and password, so I can have a look?

I might be able to see something in the source.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 03:11:13 PM
Actually, there's another symptom.

If you try to register, you click "I accept the terms of the agreement" and it takes you straight back to that same screen...
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 03:24:22 PM
I believe there is something wrong with the PHP Sessions. If I try and do "Forgot your password?" I always get "Your session timed out while posting. Please go back and try again."

Also, you can simply login as Username: "SMF" Password: "SMF". Don't worry. This is not an actual account. The same error occurs even if there is no such account. You'll get the same situation.

Thank you for your continued assistance.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 03:32:14 PM
If you could get into your forum, I'd suggest uninstalling AEVA, completely.

Sadly, you can't do that.

I thought, initially, "Get the virgin SMF install archive and upload all the files".

I somehow doubt that'd help, though, with this.

Assuming you have FTP access, have a look in the root of your site, where settings.php is.

You'll see a directory named "cache".

Try deleting everything inside that.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 03:34:13 PM
I deleted the 'cache' folder entirely already. (And doesn't look like it'll come back until we fix the issue.)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 03:42:37 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fscratchhd.gif&hash=572212733b3699e0a3d18caf340e2040db85c334)

My brain hurts...

This is just a hunch, this...

Try going to your site's cpanel and repairing the database.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 05, 2010, 04:03:00 PM
K@,

If I may (might?) make a suggestion... Before you start poking around in the database, try this

Code (MySQL) Select

UPDATE `smf_settings` SET `value` =  '1' WHERE `smf_settings`.`variable` = 'theme_allow';


After that try accessing the forum using the default theme (?theme=1). Maybe it's the code for the update added or not added to the custom theme that's causing this.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 04:16:34 PM
That's a plan. :)

I tried the theme=1 thing and it stayed on the custom one, oddly enough.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 05, 2010, 04:20:51 PM
Because "Allow members to select their own themes" option is unchecked, you won't be able to select any theme other than the selected theme. Running the query should reset that option.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 04:26:45 PM
I have completed both steps.

...The issue still remains :(
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 05, 2010, 04:27:15 PM
Quote from: xenovanis on July 05, 2010, 04:20:51 PM
Because "Allow members to select their own themes" option is unchecked, you won't be able to select any theme other than the selected theme. Running the query should reset that option.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=0ef61ff2bc9ea8a23920a1224944f12fcb52a9bd)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 04:31:27 PM
Quote from: K@ on July 05, 2010, 04:27:15 PM
Quote from: xenovanis on July 05, 2010, 04:20:51 PM
Because "Allow members to select their own themes" option is unchecked, you won't be able to select any theme other than the selected theme. Running the query should reset that option.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=0ef61ff2bc9ea8a23920a1224944f12fcb52a9bd)

This is one of the steps that I accomplished.

1) I submitted query
2) I change the theme
3) I tried logging in - same error
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 05, 2010, 04:37:51 PM
Please run this query in phpMyAdmin and post back the results:


SELECT *
FROM `smf_log_errors`
ORDER BY `smf_log_errors`.`log_time` DESC
LIMIT 0 , 30


It should give us the latest entries in your errorlog, we might me able to determine what file is causing this. Leave out the ip addresses please.

I'm sorry, it's time to get some sleep for me now. I'll be back tomorrow.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 05, 2010, 04:49:41 PM
http://delibargaming.com/result.htm

TPortal.php!!!!!!!!!!!!! YOU LITTLE!!!!!!!!!!!!!

It keeps referring to line 2766. this is part of the function:


function TP_blockgrid($block, $theme, $pos, $side, $last=false, $gridtype, $empty=false)
{
global $context , $scripturl, $settings, $language , $txt;

// first, set the table, equal in all grids
if($pos==0)
echo '<table cellpadding="0" cellspacing="0" width="100%">';

if(isset($context['TPortal']['grid'][$gridtype][$pos]['doubleheight']))
$dh=true;
else
$dh=false;

// render if its not empty
if(!$empty)
echo $context['TPortal']['grid'][$gridtype][$pos]['before'] , call_user_func($context['TPortal']['hooks']['tp_block'],$block,$theme, $side,$dh) , $context['TPortal']['grid'][$gridtype][$pos]['after'];
else
echo $context['TPortal']['grid'][$gridtype][$pos]['before'] . '&nbsp;' . $context['TPortal']['grid'][$gridtype][$pos]['after'];

// last..if its the last block,close the table
if($last)
echo '</table>';

return $code; // this is line 2766
}


What could be the problem here?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 06, 2010, 02:29:20 PM
Bump :)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 06, 2010, 05:09:13 PM
Just a hunch, this. So, keep a copy of the original file, just in case.

This line:

echo $context['TPortal']['grid'][$gridtype][$pos]['before'] . '&nbsp;' . $context['TPortal']['grid'][$gridtype][$pos]['after'];

Try removing the "&nbsp", or even the "'&nbsp;' . "
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 06, 2010, 05:34:17 PM
Unfortunately, neither change proved to be successful. :(

Thanks.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 07, 2010, 03:12:09 AM
I'm sorry for my absence. I had a footballparty to attend to yesterday  :)

I've tried searching for this error, but it seems you're unique in this.  :( I'm still not sure this is causing this, however you should report this error in the support topic for this mod.

For a quick solution, I'd recommend uploading all files from the installationpackage for 2.0 RC3, except install.php, Settings.php and Settings_bak.php, overwriting the excisting files. This will get rid of your installed mods and most likely let your forum function again.
Note that this will only affect your files and not the database, so your members and posts will be safe.

However, if you want to get to the bottom of this, which could be painfull and timeconsuming (probably more than refreshing the files and reinstalling the mods), could you start by filtering any login errors by running this query in phpMyAdmin?


SELECT *
FROM `smf_log_errors`
WHERE `url` LIKE '%login%'
ORDER BY `smf_log_errors`.`log_time` DESC
LIMIT 0 , 60


And please post back the results  ;)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 07, 2010, 07:30:24 AM
Quote from: xenovanis on July 07, 2010, 03:12:09 AM
I'm sorry for my absence. I had a footballparty to attend to yesterday  :)

I bet!

I've tipped The Netherlands, right from the start!  :)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 07, 2010, 11:58:08 AM
I could start from scratch... but I don't want to give up!! I want to fix this issue so if others get the same thing.

Anyway, query results: http://delibargaming.com/login.htm

Will post on Aeva's boards. Thanks.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 07, 2010, 02:58:08 PM
The last error regarding login is from July 3th. It didn't even record those failed attempts as errors :(

I'm really sorry I can't help more. Try posting in Avea's board or else in Tinyportals support topic, maybe people have an idea.

In addition, overwriting the files is nearly the same procedure as upgrading. What eventually you'll still need to do. It's hardly starting from scratch, after all no database data is lost.

Quote from: K@ on July 07, 2010, 07:30:24 AM
Quote from: xenovanis on July 07, 2010, 03:12:09 AM
I'm sorry for my absence. I had a footballparty to attend to yesterday  :)

I bet!

I've tipped The Netherlands, right from the start!  :)


It's great. It's 32 years ago the team came this far  :D
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 07, 2010, 08:19:46 PM
Alright. Well I overwrote every file, but Settings.php, Settings_bak.php, and install.php.

Guess what.... still broken. :(

Take a look now: http://delibargaming.com/
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 09:43:24 AM
Just had a look.

As a guest, everything looks fine.

I doubt this affects guests, though, does it?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 08, 2010, 10:54:38 AM
Quote from: K@ on July 08, 2010, 09:43:24 AM
Just had a look.

As a guest, everything looks fine.

I doubt this affects guests, though, does it?

Just try logging in with any Username and Password. No matter what, it will say "You need to fill in a username." I thought this would have fixed after overwriting with fresh new files. Seems like it has not.

Thanks.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 11:29:50 AM
Well, it's bound to do that, if I haven't registered.

Do you have a username/password we can use?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 08, 2010, 11:34:01 AM
Quote from: K@ on July 08, 2010, 11:29:50 AM
Well, it's bound to do that, if I haven't registered.

Do you have a username/password we can use?

No it isn't suppose to do that. It would say something like "Wrong Username or Password". not "Please enter a username"... (no matter what you enter, always "Please fill in a username" comes up)

Also... I am trying mine... not working. I don't have a test account. If I did, I can't see the members list so I wouldn't know what it was.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 11:40:59 AM
Yeah, 'course.

Let me just go back over this topic and see if I can think of anything else.

This may have already been asked. But, assuming that everything worked, before, can you think of anything that was done, just prior to this all going "Phut!"?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 11:43:11 AM
AEVA... OK, cancel that last bit... ;)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 11:45:33 AM
I thought you said the forum was set to the default theme?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 08, 2010, 11:47:47 AM
's OK, I changed it. No difference...

Do you mind sending me, by PM, FTP access details for your site?

There're a few things I can check, there.

Please, read this, first: http://www.simplemachines.org/community/index.php?topic=228940.0
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 09, 2010, 04:56:28 AM
Meanwhile, could you also try deleting all files from your /forum/cache directory, except index.php and .htaccess?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 09, 2010, 05:51:34 AM
That might be something.

That directory's crammed full of stuff.

I really can't find anything wrong, on your site.

This is really weird.

Best I can offer, is that if that was my site, I'd get the SMF v2.RC3 large upgrade package and run that.

I don't want this to come-across as "Ner-ner! I told you so!", or anything...

BUT... if you'd backed-up, before installing mods, you'd be OK. ;) I have to confess that I don't always backup, but I sure would before installing something as complicated as AEVA, or TP.  O:)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 09, 2010, 06:06:42 AM
That was one of my last ideas too. It doesn't make any sense, really  >:(
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 09, 2010, 06:13:19 AM
Yeah... It's, dare I say?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fillogical.gif&hash=66e8c38c5c9642668ccf62c7cd0c118180e4b2d1)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 09, 2010, 06:24:17 AM
You may and you're absolutely right.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F2.bp.blogspot.com%2F_gKemFtSMbos%2FSmRllDyLd3I%2FAAAAAAAABBM%2FZ8pmu18K41I%2Fs400%2Fthe_annoying_thing.jpg&hash=97cd9855a70b116100640175d9aad622a589f705)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 09, 2010, 12:35:40 PM
Well, the host we are using doesn't have automated backups, but I should have been a smarter thinker and backed up myself.

Anyway, I think we're just going to run a re-install and work on a new canvas :) I don't mind so much having to make a new site again.

Well, thanks for the continued support. Really wish there was a reason for this dumb error.

Thanks again.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 09, 2010, 12:38:36 PM
I think that's the best plan, mate.

Good luck with it and keep those backups going. ;)

Keep us informed, ay?  :)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 09, 2010, 01:07:08 PM
Sure will.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 09, 2010, 02:39:55 PM
Alright... well... I'm trying to install now... and all of a sudden... I can't even install :(

Clicking "Continue" on the first page of Install.php does nothing but refresh the page. What now?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 09, 2010, 03:43:36 PM
I think now would be the time to contact your host and ask him if anything has been changed in the serverconfiguration during the last couple of days.

Before reinstalling, (did you backup - I know, sensitive  ;) ) and remove all 'old' files?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 11, 2010, 05:27:55 PM
Yeah I've removed all the old files. Haven't had a chance to contact host, but I will look into it.

The 'install.php' page takes a while to load and click "Continue" just is a longggg refresh of the 'install.php'.... hrm....
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: Kill Em All on July 17, 2010, 12:21:57 AM
Sorry for getting back to this late, do you need any further help with this?

At what step of the install.php does the it just refresh?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 25, 2010, 01:34:27 PM
Sorry. I believe it is a host server issue. Nothing wrong with the actual script.

Thanks for the support and help with this issue.
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 25, 2010, 01:48:40 PM
I'll mark this as having been solved, for now.

If you need any further help, with this, just mark it "Unsolved" and post away, OK?
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on July 25, 2010, 02:00:02 PM
Sure thing. I've re-created the forums on another server for now.

Thanks!
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 25, 2010, 02:06:32 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=0ef61ff2bc9ea8a23920a1224944f12fcb52a9bd)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: xenovanis on July 26, 2010, 08:19:17 AM
Thanks for posting back, cralor  :)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: cralor on August 10, 2010, 05:53:59 PM
Well... here is an update: I FOUND THIS FRIGGIN ISSUE!!!!

Here is my bug report: http://www.simplemachines.org/community/index.php?topic=395166.0

Thanks again for the help you provide(d)!!!
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: Kill Em All on August 10, 2010, 05:56:48 PM
Glad you fixed the issue. :)

It was a strange solution, but atleast it worked/
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: marcosb on July 13, 2013, 10:36:25 PM
For anyone who runs across this topic from a Google Search, and if it doesn't address your issue...

The problem I was having was that I setup a PHP/apache redirect so that any attempts to access my domain would be redirected to the www version.

However, I didn't properly update Settings.php to match (i.e. to use the www) - I didn't realize there was a setting for it.  This resulted in any attempts to login showing the "You need to fill in a username." message.

Hope that helps anyone who runs into this (I ran into the problem on GoDaddy hosting)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: kat on July 14, 2013, 02:53:32 PM
Thanks, for that, Marco! :)
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: neon22 on November 20, 2014, 05:09:50 PM
facing the same issue of arvixe hosting.I didnt even changed anything .
let me try  ur solution
Title: Re: Error "You need to fill in a username." (Semi-time-critical)
Post by: PeterC66 on December 11, 2015, 01:36:35 AM
Thanks for these postings. I have a new installation and got the same error message. After an hour I managed to resolve it via this post and others.  The most helpful was the repair tool at http://wiki.simplemachines.org/smf/Repair_settings.php (http://wiki.simplemachines.org/smf/Repair_settings.php). I wish I had found it earlier!