Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default admin login.php has wrong URL

    I can't get to my ZC admin page. I just got an transfer account at bluehost and installed ZC 1.3.8 with the bluehost simplescript. My old site is still running on another hosting company so the 2 ZC configure files are set so they use the local server account name (e.g. http://box123.bluehost.com/~myaccount) rather than the domain name.
    However when I go to admin/login.php and view source the html, the URLs are using the domain name rather than the local server account name.

    form name="login" action="http://www.mydomain.com//admin/login.php" method = "POST"

    I'm assuming the login would work if the URL was

    http://box123.bluehost.com/~myaccount//admin/login.php

    Since the mydomain.com is still hosted elsewhere I get an 404 error.

    Otherwise I can navigate around the store, I just can't use the admin.
    Why is php echo zen_href_link(FILENAME_LOGIN, '', 'SSL') in admin/login.php producing the domain name.

    thanks in advance--artbobo

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: admin login.php has wrong URL

    .

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: admin login.php has wrong URL

    Bluehost support found the problem. It seems that there is a third confiure.php file in admin/includes/local/ that needs to be modified.
    Is this file documented anywhere? I've only seem the two other confire.php files mentioned in the book and documentation.
    --artbobo

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: admin login.php has wrong URL

    You don't need a the "third configure.php file" that you mentioned, unless you've added it for troubleshooting purposes, perhaps akin to this FAQ:
    https://www.zen-cart.com/tutorials/index.php?article=82
    Just delete the file if you don't need the services it provides.
    .

    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.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin login.php has wrong URL

    I would just edit the two configure.php files you should be touching as DrByte suggested and remove the extra slashes in them ...

    Check your URLs and they probably inadvertantly contain the extra slashes on the end ...
    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!

  6. #6
    Join Date
    Apr 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: admin login.php has wrong URL

    Just to followup.
    The problem was extra slashes. The third file was not necessary once the URL was corrected.
    Thank you all.
    --artbobo

 

 

Similar Threads

  1. Admin link to preview cart wrong URL
    By stuffdone in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 16 Jan 2011, 01:36 AM
  2. Wrong Admin URL
    By KTNaturals in forum Basic Configuration
    Replies: 3
    Last Post: 11 Nov 2007, 10:44 PM
  3. Login showing the wrong URL
    By bluehorse in forum Basic Configuration
    Replies: 2
    Last Post: 28 Sep 2006, 12:36 PM
  4. Checkout link has wrong url
    By aphilips in forum Basic Configuration
    Replies: 4
    Last Post: 17 May 2006, 12:48 AM

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