Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    6,979
    Plugin Contributions
    63

    Default Redirection to hosted site from locally-hosted test-bed after upgrade

    I was upgrading my site (finally!) to 1.5.5, starting with an XAMPP installation with a /local/configure.php override for the hosted configuration.

    I started thel upgrade by copying the pre-existing /includes/local/configure.php files to the /includes folder and performed my initial zc_install there. Once I'd completed the upgrade locally, I copied the files to my hosted environment ... first copying the original, Zen Cart 1.5.4 version of the hosted configure.php files to my local installation.

    I then ran zc_install on my hosted site and I'm up and running ... except that I could no longer log into my locally-hosted admin. Whenever I entered my locally-hosted admin's URL, I was redirected to my hosted storefront ... what the ?

    Since my locally-hosted installation now included that Zen Cart 1.5.4 /myadmin/includes/configure.php file, the constants that are moved (in Zen Cart 1.5.5) to the /includes/defined_paths.php were being pre-defined in that back-level hosted version of the file! That's where the unintended "re-direct" to my hosted storefront was coming from.

    Copying down the Zen Cart 1.5.5 version of the hosted configure.php files allowed me (again) to log into my locally-hosted admin.

    Posting the symptoms and solution here to hopefully save others some time!

  2. #2
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: Redirection to hosted site from locally-hosted test-bed after upgrade

    Yes: using v1.5.4 configuration files on a v1.5.5 site will produce unintended side-effects such as you describe.

    Running zc_install (just visiting its home page) will convert the files to the new format for you.


    (Granted, it's a known issue that it doesn't convert the files in your "/local/" subdirectories at this time.)
    .

    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.

 

 

Similar Threads

  1. v138a Hosted Site Search Integration (Nextopia)
    By newbey in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 5 Oct 2012, 06:29 PM
  2. (56) Received HTTP code 403 from proxy after CONNECT (hosted on GoDaddy)
    By shanehunt40 in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 9 Aug 2011, 10:38 PM
  3. Can't upgrade to my hosted server to activate zc_install
    By wncds in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 23 May 2010, 03:02 AM
  4. Merchant Hosted versus Bank Hosted - ANZ
    By wotnow in forum Addon Payment Modules
    Replies: 0
    Last Post: 29 Apr 2010, 05:37 AM
  5. Changing an image hosted remotely to one hosted on Zen Cart?
    By Liamv in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Feb 2010, 11:06 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