Thread: Host move

Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Host move

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    Hi
    I am hoping someone can help please
    I have just moved hosting site and now my website is bringing up blank pages on a lot of products and i can't log into my admin section

    In that case, please check your configuration in order to verify that everything is set properly.
    At a loss as I can't even put my site under construction or anything as can't get in
    Any help appreciated
    Thanks
    Attached Images Attached Images  

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Host move

    What version of Zen Cart? what version of PHP? have you checked the logs folder for mydebug logs?
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Host move

    Sorry was 300miles from home last night and couldn't access my admin
    Version 1.5.5f / PHP 5.6.40 Website is now running as PHP was on 7.1. I realised when you asked what it was
    Although admin is still down with
    ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?
    I've had a look and there is a configure.php file in there under admin / includes
    No log error only ones for earlier issue which is now fixed

  4. #4
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Host move

    Oops spoke to soon .Website was working fine till I tried to enlarge a image
    Now getting this message

    The page isn't redirecting properly
    An error occurred during a connection to website (removed url )
    This problem can sometimes be caused by disabling or refusing to accept cookies.

    [10-May-2019 17:09:28 CST6CDT] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /home/pewterwo/public_html/includes/modules/robbor_red/additional_images_original.php:132
    Stack trace:
    #0 /home/pewterwo/public_html/includes/modules/robbor_red/additional_images.php(17): require_once()
    #1 /home/pewterwo/public_html/includes/templates/robbor_red/templates/tpl_modules_additional_images.php(13): require('/home/pewterwo/...')
    #2 /home/pewterwo/public_html/includes/modules/tabbed_products_pro.php(191): require('/home/pewterwo/...')
    #3 /home/pewterwo/public_html/includes/templates/robbor_red/templates/tpl_product_info_display.php(14): require('/home/pewterwo/...')
    #4 /home/pewterwo/public_html/includes/modules/pages/product_info/main_template_vars.php(182): require('/home/pewterwo/...')
    #5 /home/pewterwo/public_html/includes/templates/robbor_red/common/tpl_main_page.php(145): require('/home/pewterwo/...')
    #6 /home/pewterwo/public_html/index.php(100): require('/home/pewterwo/...')
    #7 {main}
    thrown in /home/pewterwo/public_html/includes/modules/robbor_red/additional_images_original.php on line 132
    Last edited by Andy-C27; 11 May 2019 at 12:04 AM.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,157
    Plugin Contributions
    11

    Default Re: Host move

    Sometimes the cause of too many redirects is, simply, too many redirects. And, an incorrect redirect can cause your no configure.php problem.

    For instance, if your configure.php is set for https and you force it to http, it won't find a file because it is in https.

    Make sure your configure.php files both list https:// as the lead for the URLs. Use https://www if your SSL is for www and https:// if your SSL is set for non-www.

    Make sure SSL is set to true.

    Make sure there are no 301 redirects in a cpanel/plesk environment that point to the wrong URL.

    Also, look in the root for an .htaccess file. If there, make sure it doesn't do a redirect to a wrong URL.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Host move

    For the string offset issue, sorry that I'm a bit out of energy at the moment, but basically the variable that is reported as the problem was predefined with = '', but then it was used as an array. This is an issue that was identified in an earlier version of ZC 1.5.6 which has also been corrected, though the issue appears to be identified in the template override file(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Host move

    Found .htacess https was set to off turned on and am now getting a blank page.
    Does this redirect look OK

    RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE]

    I do have another site running on same domain and it is working fine with SSL enabled

  8. #8
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Host move

    Quote Originally Posted by Andy-C27 View Post
    Found .htacess https was set to off turned on and am now getting a blank page.
    Does this redirect look OK

    RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
    RewriteCond %{HTTPS} on
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE]

    I do have another site running on same domain and it is working fine with SSL enabled
    No it does not.
    This reads as:
    If the address provided does not begin with www. or if the address provided *does* begin with https: and it is possible to capture the content of the address to the right of the www. if it is present or the whole address if www. is not present, then redirect to the https:// version of the address that begins with www. and do not process any redirects below this one during this read of this file.

    What that means is, a visitor is in an infinite redirect loop if the right conditions are established. If they visited using http: and without www. at the beginning, they get redirected to https://www. because the address didn't begin with www. If they visit http://www. There will be no redirect because the address begins with www and the address doesn't begin with https: so they will go on to http://www. Now the big problem is that if they enter the site by https:// whether with www. or without, they will get "redirected" to https://www. Which will result in a visit to the site with https://www. and another redirect, and another, and another, and another... That cycle will happen basically if the site is originally accessed with https: or if a redirect occurred because whatever was used did not begin with www.

    So while there are multiple formats available to accomplish the desired redirect, the above is not correct. Would suggest the following which probably was thought of as incorrect:
    Code:
    RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE]
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Oct 2010
    Location
    United Kingdom
    Posts
    477
    Plugin Contributions
    0

    Default Re: Host move

    Managed to find my errors in the end
    Was both configurations site and admin.
    They were pointing to old hosting IP's and my define('DIR_FS_CATALOG', I had wrong info ,had to remove the .co.uk

    All working fine now

    re redirect

    If it's wrong I don't know why it is ,but my site is working for now. Although only has to work for a few months as site is being rebuilt from the ground up. I am just relieved I am not being forced to put my site into maintenance as it has never been down for longer than 3 hours in 8 years

 

 

Similar Threads

  1. move my store to another host
    By dustbowl in forum General Questions
    Replies: 5
    Last Post: 3 Sep 2013, 06:29 PM
  2. new host move---password trouble
    By DarkAngel in forum General Questions
    Replies: 5
    Last Post: 9 Apr 2011, 10:07 PM
  3. Move Zencart to another host
    By Jeet Kune Do in forum General Questions
    Replies: 2
    Last Post: 19 May 2009, 01:32 PM
  4. Cpanel host to host move will it work
    By cshart in forum General Questions
    Replies: 3
    Last Post: 1 Jan 2007, 12:30 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