Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Moving zen cart problem

    Hello,

    I've recently moved host and have followed the instructions to the letter

    (https://www.zen-cart.com/tutorials/i...hp?article=100)

    The shop works fine but the admin page gives the error
    Code:
    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. 
    File(/home/fhlinux153/a/aliandna.co.uk/user/htdocs/shop/cache) 
    is not within the allowed path(s): (/home/fabulousfuk/public_html/) in 
    /home/fabulousfuk/public_html/shop/includes/functions/sessions.php on line 151
    As you will have guessed /home/fhlinux153/a/aliandna.co.uk/user/htdocs/shop/cache is from the old host. I've run the fix_cache_key and it says they're fine. I've searched the database and even downloaded and search the files and can't find any reference to the old path (except in the error log!).

    Where is it getting it from?

    Thanks!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Moving zen cart problem

    Did you double check your admin/includes/configure.php?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Moving zen cart problem

    Yep, definitely set to the new /home/fabulousfuk/public_html/shop

  4. #4
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Moving zen cart problem

    Fixed it!

    For some reason there was a configure.php in admin/includes/local which had the details of the old database which has the old path in it!

    How random, but happy it's solved!
    Thanks for the help

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Moving zen cart problem

    You should delete that extra file from the /admin/includes/local folder, unless you know exactly why it's there
    .

    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.

  6. #6
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Moving zen cart problem

    I have the same problem but the cache / session confguration info is in database!
    I can see there in sql dump

    INSERT INTO `cust138_configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (305, 'Session Directory', 'SESSION_WRITE_DIRECTORY', '/home/myserver00/d/myaccount/html/cust/katalog/cache', 'If sessions are file based, store them in this directory.', 15, 1, NULL, '2008-03-10 14:23:26', NULL, NULL);

    and that makes the path wrong.
    What sql command I use to change a single configuration like this?

 

 

Similar Threads

  1. Problem after moving main zen cart directory
    By Raptors in forum General Questions
    Replies: 6
    Last Post: 26 Aug 2010, 01:06 AM
  2. Problem when moving zen cart to another folder
    By AHeartForTheEarth in forum General Questions
    Replies: 12
    Last Post: 11 Nov 2008, 04:25 PM
  3. Moving zen cart - Importing database problem
    By nipinuk in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 20 Dec 2006, 09:14 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