Forums / Basic Configuration / Can't login on admin with Zen Cart version 1.3.8a

Can't login on admin with Zen Cart version 1.3.8a

Locked

Views: 2,321

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 Feb 2008, 8:27 AM
#1
victor_hopman avatar

victor_hopman

New Zenner

Join Date:
Feb 2008
Location:
Netherlands
Posts:
3
Plugin Contributions:
0

Can't login on admin with Zen Cart version 1.3.8a

Hello!

I installed the newest version of Zen Cart. But I can't login to the admin. My username and password are correct but instead of showing the admin it keeps refreshing to the login page. I found a lot of threads about this, but nothing helps.

Does anyone know how to solve this????

Thanks!

10 Feb 2008, 10:51 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't login on admin with Zen Cart version 1.3.8a

Using your FTP check your files for "0" byte size/corrupt files

Zen-Venom Get Bitten

10 Feb 2008, 12:10 PM
#3
victor_hopman avatar

victor_hopman

New Zenner

Join Date:
Feb 2008
Location:
Netherlands
Posts:
3
Plugin Contributions:
0

Re: Can't login on admin with Zen Cart version 1.3.8a

kobra:

Using your FTP check your files for "0" byte size/corrupt files

Thanks for your reply! But there a no files with 0 byte size. I even uploaded al the files again. Did'nt solve it :(

10 Feb 2008, 12:41 PM
#4
victor_hopman avatar

victor_hopman

New Zenner

Join Date:
Feb 2008
Location:
Netherlands
Posts:
3
Plugin Contributions:
0

Re: Can't login on admin with Zen Cart version 1.3.8a

Solved it!!!!!!!!! :clap:

If anyone else is having the same problem:

Open includes/functions/sessions.php (NOT in the admin folder)

Copy this code (found it here on the forum)

  if(!version_compare(phpversion(),"4.3.3",">=")){
     setcookie(
        session_name(),
        session_id(),
        ini_get("session.cookie_lifetime"),
        "/"
     );
  }

Search for "session_regenerate_id();". Paste the code right after that. First it did'nt work, but in the file there are 4 lines of code with "session_regenerate_id();"

Paste the code after every session_regenerate_id();.

Close your browser, empty the cache and delete cookies. Then try again :laugh:

10 Feb 2008, 9:34 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't login on admin with Zen Cart version 1.3.8a

What version Zen Cart are you running and what version php that you had to touch the code?

Are you sure it wasn't just clearing your cache and cookies that fixed this? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Feb 2008, 7:04 AM
#6
babycharmer avatar

babycharmer

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

Re: Can't login on admin with Zen Cart version 1.3.8a

I would like to know this too... My admin worked the first time I logged in and then it started saying my login info was wrong. I have tried to resend the password a few times, and it never works.

I have tried checking for 0 byte files, and i have looked at my config files. I would just like to know if this code way would actually help my situation.

Thanks!

21 Jun 2008, 1:28 PM
#7
phil99 avatar

phil99

Zen Follower

Join Date:
Aug 2007
Posts:
113
Plugin Contributions:
0

Re: Can't login on admin with Zen Cart version 1.3.8a

I have had this problem for 6 months, posted here a fair few times, cant get into the site...

I am fed up with this! ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

I have version 1.3.7 on one site, and 1.3.8 on another, is it something to do with login into them both???

21 Jun 2008, 3:40 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't login on admin with Zen Cart version 1.3.8a

phil99:

I have had this problem for 6 months, posted here a fair few times, cant get into the site...
Understand your frustration but piggybacking/hijacking another thread is not the way to obtain assistance nor a solution.

Keep it to one thread and add to that instead of posting to every thread you find

Zen-Venom Get Bitten