Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2004
    Posts
    262
    Plugin Contributions
    0

    Default errors after site transfer

    Hello,

    I moved to a new host, and the hosting company transferred my site, and changed the configurations for me (password, databases,etc). I had put the site under maintenance, and can get to that page, put when I try to log into my admin I get errors:

    1. Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/(OLD HOST USER NAME)/public_html/store/cache) is not within the allowed path(s): (/home/(NEW HOST USER NAME)/:/tmp:/usr/local/lib/php/:/usr/lib64/php/) in /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php on line 156

    2. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php:156) in /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php on line 108

    3. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php:156) in /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php on line 108

    4. Warning: Cannot modify header information - headers already sent by (output started at /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php:156) in /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/(ADMIN FOLDER)/includes/init_includes/init_templates.php on line 36

    5. Warning: Cannot modify header information - headers already sent by (output started at /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/includes/functions/sessions.php:156) in /home/(NEW HOST USER NAME)/domains/vintageknits.net/public_html/store/(ADMIN FOLDER)/includes/functions/general.php on line 21

    I would appreciate any help. Hopefully this can be fixed and I will not have to start all over. My other hosting has expired. I do have a database backup on my computer, and only the files currently on the new hosting account.

    Thanks

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

    Default Re: errors after site transfer

    Start with reviewing the steps for switching hosts outlined here: https://www.zen-cart.com/tutorials/i...hp?article=100
    Perhaps try the fix_cache_key utility mentioned as your first step, then review the rest.
    .

    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
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default Re: errors after site transfer

    I have this problems as well and just tried this and the fix_cache_key returns only a blank page. I also followed the move zc directions you mentioned above. Any last ditch ideas before I remove everything and start again?

    Thanks

  4. #4
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: errors after site transfer

    If you are sure your config files are correct (be sure) you can either use phpmyadmin to fix the cache key or use this trick to bring up admin and then fix it in the sessions tab.

    In includes/functions/sessions.php

    find: (about line 154)

    Code:
      function zen_session_save_path($path = '') {
        if (!empty($path)) {
          //return session_save_path($path);  // comment this out
    	  return "/proper/cache/path";  // add this
        } else {
          //return session_save_path();  // comment this out
    	  return "proper/cache/path"; // add this
        }
      }
    note commenting out the return lines and hardcoding the proper value temporarily.

    I've seen the fix_cache_key come up with a blank page. Don't know why.

    Be sure to set the proper path in the admin and then undo the above temp fix.

  5. #5
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default Re: errors after site transfer

    Bingo!~ Hardcoding did the trick......

    Thanks!

  6. #6
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default Re: errors after site transfer

    By the way... For others having thisproblem too....

    There were remnants of the old path in the db file. Would be good for folks to do a scan of their back up sql file and make sure to change any references to old server paths.... I found 2! Logs and Sessions.

    night!

 

 

Similar Threads

  1. v139d BIG problem after I paid my hosing company to transfer my site...
    By OnlySeaDoo in forum General Questions
    Replies: 7
    Last Post: 1 Feb 2012, 09:09 PM
  2. Admin half loading after site transfer to new server
    By dj_chillerz in forum General Questions
    Replies: 11
    Last Post: 5 Nov 2011, 03:11 PM
  3. Problems after site transfer
    By myalkut in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 20 Aug 2009, 01:47 AM
  4. site wont display in explorer after transfer
    By blind1 in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 4 Aug 2008, 09:24 AM
  5. Unable to Log into Admin after site transfer
    By OutdoorsInteriors in forum General Questions
    Replies: 1
    Last Post: 24 Feb 2007, 02:50 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