Can not login as admin anymore

Permalink
All of a sudden I can not login as admin anymore.

"A username and password are required."


This is the error message.

When I try to recover the password, via the email option, I get:

"Invalid email address."


I have tried to reset the password directly via the md5(password:salt) method, but nothing seems to work.

I am using the new C5 and it worked perfectly up until now.

The website is:
http://premierclinics.net

I am desperate :(

 
Pritam replied on at Permalink Reply
scriptdude replied on at Permalink Reply
No, I tried all of that. It does not help.
scriptdude replied on at Permalink Reply
What I have tried:

* Reset the admin password via phpMyAdmin
* Change admin emailaddress
* Create a second admin account

(as instructed inhttp://www.concrete5.org/documentation/how-tos/developers/i-cant-lo...

Same problem with all accounts.

can not login & can not reset password.
scriptdude replied on at Permalink Reply
I am getting very very frustrated.

This is not something I did. This just happened. I read a different topic from somebody who also had mysterious login problems after the upgrade to the new C5.

One minute I can work on my site.
The next minute nobody can do anything anymore.
I have a site that can't be changed.

Sigh.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Check the database whether the admin user is still active. The table is "Users" & the column might be "uIsActive". Check whether the value is still 1.

Rony
scriptdude replied on at Permalink Reply
How do I reinstall C5 in a way that keeps my data in the DB, but installs a new admin?
mdzoidberg replied on at Permalink Reply
mdzoidberg
You can go back to your previous install if you upgraded, open up site.php under your config folder and comment-out the line that points to the new concrete folder.
scriptdude replied on at Permalink Reply
First i am going to apologize for insinuating that this problem was caused by C5's update. It just didn't make sense to me, and the only change i could think of was the update.

Turns out that the problem was caused by using a custom php.ini file. Once I removed the custom php.ini, the problem dissapeared. I will need to figure out how to use the custom php.ini some other time. I am just glad the website is accessible again.
RadiantWeb replied on at Permalink Reply
RadiantWeb
I had a client who had this very issue, the reason was that the host provider had mistakenly left the "M" off of the size increase. so instead of "upload_max_filesize = 50M" , they had placed "upload_max_filesize = 50" in the php_ini file. this causes C5 to not properly execute is runtime.

ChadStrat
fryedesign replied on at Permalink Reply
fryedesign
php.ini was the culprit for me as well. This happened when I moved the entire site from one server to another, BTW.
PencilneckMatthew replied on at Permalink Reply
I was getting the same error, it turned out that the culprit was a 301 redirect I had added to remove trailing slashes from URLs (for Google Analytics) in the .htaccess file.

The Login Page's FORM actions have a trailing slash, and when the POST request was redirected, it converted the request to a GET request (and thus stripped the POST data from the request).

To fix, I added a clause to only rewrite GET requests:

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} =GET
RewriteRule ^(.*)/$ /$1 [L,R=301]
</IfModule>
extremecreations replied on at Permalink Reply
extremecreations
hero.