Forums / General Questions / Another "Unable to Login to Admin" Issue

Another "Unable to Login to Admin" Issue

Started by kairho on 23 Feb 2012, 7:12 PM · Views: 2,150

Results 1 to 5 of 5
23 Feb 2012, 7:12 PM
#1
kairho avatar

kairho

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Another "Unable to Login to Admin" Issue

Brand new user here with a completely virgin install of V1.5.0 (via Softaculous for convenience). And yes, I've spent 3 hours scouring these fora but still unable to solve the problem. However, I may have a twist which I did not see covered.

To start, the installation went without error and the "default" storefront seems to operate properly. I can create an account in the storefront, logoff, login in again, and the account info is in there. I can even use the Contact Me email to send a message to the administrator email.

However, going into the admin area and entering the proper username and password I get a blank screen. The db seems ok because it accepts the name/pw and stores a cookie with a session ID in my Firefox. But no error messages; nothing but a blank screen.

However, the twist is the URL of that blank screen is "http://persianriches.com/zencart/zcadmin/login.php?camefrom=index.php" which, along with the cookie, leads me to believe the login was accepted and control sent to index.php. There, something is messed up and it went back to login.

If I click on Forgot Password, it does the same blank screen but with the URL: "http://persianriches.com/zencart/zcadmin/password_forgotten.php?action=update" No email is sent.

No changes have been made to any of the file, including configuration files. The problem occurs in both Firefox and IE. So things like the database, email, cookies, seem to be working ok.

Any suggestions (or questions)? And thanks very much in advance.

23 Feb 2012, 8:30 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Another "Unable to Login to Admin" Issue

Troubleshooting of Blank Page symptoms: https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2012, 9:15 PM
#3
kairho avatar

kairho

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Re: Another "Unable to Login to Admin" Issue

DrByte:

Troubleshooting of Blank Page symptoms: https://www.zen-cart.com/tutorials/index.php?article=82
Hooray! Now we are getting somewhere.

Thanks, Doc, that's one page I never came across. I think because I was concentrating on login blank pages, not blank pages in general.

Anyway, I also was unaware of log files in the cache file. Whodatunk? So now we at least have an error message:

[23-Feb-2012 11:24:31] PHP Fatal error: Call to undefined function: json_encode() in /home/egypt5/public_html/persianriches/zencart/zcadmin/includes/init_includes/init_admin_history.php on line 34

But I have no idea where to look for that function, at least to see if it exists. So if someone can tell me where it should exist I can hunt it down as the next step.

Thank you!!!

UPDATE: I found this thread and thus will check with my host as to the status of PHP (although they show they are running version 5.2.17). Stand by!

24 Feb 2012, 12:18 AM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Another "Unable to Login to Admin" Issue

UPDATE: I found this thread and thus will check with my host as to the status of PHP (although they show they are running version 5.2.17). Stand by!

JSON is actually an add-on, so the PHP version isn't the issue. Might be that JSON isn't enabled.

The best way to learn is to try stuff. But, back it up first.

24 Feb 2012, 1:43 AM
#5
kairho avatar

kairho

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Re: Another "Unable to Login to Admin" Issue

Kairho:

UPDATE: I found this thread and thus will check with my host as to the status of PHP (although they show they are running version 5.2.17). Stand by!
Problem solved! Thanks to a quick response by LunarPages Support. In my control panel is a PHP Configuration page and the first item thereon is "The ".php" file extension will be processed by ##########" It just had to be switched from System Default (which is PHP4) to PHP5.

Really simple. Suggestion to install documentarians: mention this!

Thanks again, Doc, for the pointer which would lead to resolution.