Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

    Default Admin Login page redirects to itself - can't login

    Hello,

    I just moved our Cart from one host to another. Now I cannot login to the admin. The login page redirects to itself.

    Here is what I tried:


    1. Cleared cache cookies, used different browsers and computers.
    2. Made sure my config files were setup correctly.
    3. Made sure cache folder is writable.
    4. Disabled SSL
    5. Changed define('STORE_SESSIONS', 'db'); to define('STORE_SESSIONS', '');
    6. Renamed .htaccess to htaccess.bak in both catalog and admin
    7. I can see zenAdminID=09da23512d1ee3954e8a7b444dff8c86 by using print_r($_SERVER); on admin/login.php
    8. Cleared the session table

    I am stumped.
    Can anyone suggest something else I can try?

    Thank you.

    Francois

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Admin Login page redirects to itself - can't login

    Have you reviewed the "Similar threads" listed at the bottom of this posting?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2008
    Location
    Ohio
    Posts
    21
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    I'm having the same trouble. I've just started using zc, and I played with it a bit and then removed and reinstalled using Fantastico on HostGator. The first time I installed - with Fantastico - I was up and running with no trouble, but now I can't get past the login page on the admin side. I enter ID and PW and it just goes back to the login screen - no error messages.

    Since I'm very new to this I don't even know where to start to solve this one. I've removed and reinstalled zc, but same results.

  4. #4
    Join Date
    Nov 2008
    Location
    Ohio
    Posts
    21
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    OK - I discovered the problem was with SSL settings. I was on an HTTPS url, but had not yet enabled SSL in Zen-Cart. Now I'm missing something else, when I went to start configuring my store, I edited the store name, and when I went to save the change it says the page is secure but this data is being sent unsecure. I click continue, and then the name field goes blank. I tried changing the state too - same result. Can anyone point me in the right direction?

  5. #5
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    Thank you for the replies. I went through many threads, but nothing is working.

    It took me a while because I had to downgrade MySQL from 5 to 4, which fixed some SQL problems, but not the admin issue.

    Here are all the posts/gets info when I login to admin:

    Array
    (
    [HTTP_HOST] => www.theclickworldwide.com
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_CONNECTION] => keep-alive
    [HTTP_COOKIE] => cookie_test=please_accept_for_session; __utma=36695013.1045890727.1227479091.1227479091.1228006977.2; __utmz=36695013.1227479091.1.1.utmccn=(referral)|utmcsr=zen-cart.com|utmcct=/forum/newthread.php|utmcmd=referral; __utmb=36695013; __utmc=36695013; zenAdminID=7fd87bd9f59bc2a1355bb971ad52c271; zenid=e0e1ba36c4d420960e15862ce2dad742
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
    [SERVER_SIGNATURE] => <address>Apache/2.0.52 (Red Hat) Server at www.theclickworldwide.com Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.0.52 (Red Hat)
    [SERVER_NAME] => www.theclickworldwide.com
    [SERVER_ADDR] => 208.131.157.132
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 166.70.233.151
    [DOCUMENT_ROOT] => /var/www/html
    [SERVER_ADMIN] => erased for this post
    [SCRIPT_FILENAME] => /path/to/admin/login.php
    [REMOTE_PORT] => 33124
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /admin/login.php
    [SCRIPT_NAME] => /admin/login.php
    [PHP_SELF] => /admin/login.php
    [REQUEST_TIME] => 1228008632
    [argv] => Array
    (
    )

    [argc] => 0
    )
    HTTP_X_FORWARDED_HOST: www.theclickworldwide.com


    Anyone sees anything wrong?
    Last edited by fxchain; 30 Nov 2008 at 02:39 AM.

  6. #6
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    I just realized that customer cant login and can't add anything to their cart. If add to cart is clicked on a product page, it clicks though the shopping cart page, and the cart is empty.

    What is the common denominator? POST problems? Session problems? Some global variable not working on this new host?


  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Admin Login page redirects to itself - can't login

    If logins loop back to themselves without any error message, then you have session problems ... namely, PHP was unable to start a session based on the configuration options selected in your site.

    You said you moved from one server to another. Did you follow *all* the relocation steps? https://www.zen-cart.com/tutorials/i...hp?article=100
    .

    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.

  8. #8
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    Quote Originally Posted by DrByte View Post
    If logins loop back to themselves without any error message, then you have session problems ... namely, PHP was unable to start a session based on the configuration options selected in your site.

    You said you moved from one server to another. Did you follow *all* the relocation steps? https://www.zen-cart.com/tutorials/i...hp?article=100

    Thank you DrByte, you did it again.

    The Fix-Cache-Key tool did it for me. I am pretty sure I emptied the cache table in DB, wonder where those faulty session paths were?



  9. #9
    Join Date
    Jun 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    I am having the same issue with a fresh Fantastico (no errors on install) installed on Hostgator. I have done all the troubleshooting I have seen on this forum and still can't login, and get no error message. I have my own installed SSL and it is working. Enabled it in configure.php, as well as other suggestions I have seen on this and other forums. Any help? I am running the latest zencart 1.3.8a
    mysql 5.3, php 5.2

    Thanks,

    andy

  10. #10
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Admin Login page redirects to itself - can't login

    Fresh install of: zen-cart-v1.3.8a-full-fileset-12112007
    Installed on: Apache web server 2.0.46
    Database: MySQL version 3.23.58
    PHP 4.3.2
    SSL is enabled and the certificate seems to be in place.
    Website: www.hooptapecanada.com
    Admin: www.hooptapecanada.com/admin

    I can not log into admin after a clean installation.
    I have tried the many suggestions on the ZenCart site and from the forums, with no success. The user id and password are correct. When the username and password are entered the login screen simply reappears as it did the first time. If you enter the username and password incorrectly it will tell you that the username or password is incorrect. The browser is accepting cookies, there is no firewall in the way. I have tried changing the admin/includes/configure.php SQL_CACHE_METHOD to file and to database, with no success. The install was very straight forward, until I hit this wall.
    What should I try next?

 

 

Similar Threads

  1. Trying to login into admin redirects to home page
    By pityocamptes in forum Basic Configuration
    Replies: 3
    Last Post: 26 Jun 2015, 04:20 PM
  2. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 PM
  3. v139h Admin login redirects to customers login
    By jolion in forum General Questions
    Replies: 4
    Last Post: 24 Aug 2012, 07:27 AM
  4. Admin Login page redirects to itself, since I reset admin activity log
    By beep in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 27 Jan 2010, 01:08 PM
  5. Replies: 9
    Last Post: 2 Apr 2009, 04:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR