Thread: error message

Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    13
    Plugin Contributions
    0

    error message

    Using the previous version of zen cart on a windows server. Error message when trying to log in to admin, I have changed the domain name to "********", so that's not the problem!, Any help gratefully appreciated:

    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/fhlinux206/b/******.co.uk/user/htdocs/cache) is not within the allowed path(s): (e:\sslroot;c:\winnt\temp;c:\winnt;c:\php\pear;c:\php) in e:\sslroot\*******ssl\includes\functions\sessions.php on line 154

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\sslroot\******ssl\includes\functions\sessions.php:154) in e:\sslroot\*****ssl\includes\functions\sessions.php on line 111

    Warning: Cannot modify header information - headers already sent by (output started at e:\sslroot\*******ssl\includes\functions\sessions.php:154) in e:\sslroot\********ssl\admin\includes\functions\general.php on line 34
    I hold fast to the pearl of the mind

  2. #2
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    13
    Plugin Contributions
    0

    Default Re: error message

    Apologies, It is hosted on a lynux server & I've posted this in the wrong place
    I hold fast to the pearl of the mind

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: error message

    open_basedir restriction in effect. File(/home/fhlinux206/b/******.co.uk/user/htdocs/cache) is not within the allowed path(s): (e:\sslroot;c:\winnt\temp;c:\winnt;c:\php\pear;c:\ php)
    You have the PHP open_basedir restrictions set to only allow the webserver to access files contained in these folders:
    Code:
    e:\sslroot;
    c:\winnt\temp;
    c:\winnt;
    c:\php\pear;
    c:\ php
    But ... your webserver is attempting to access from this folder instead:
    Code:
    /home/fhlinux206/b/******.co.uk/user/htdocs/cache
    Since this message is appearing in the context of caching, it appears that you have taken a backup from your live site and copied it to your PC. For working offline, I suggest you change your cache settings in order to get around this message. In your /includes/configure.php file, change your 'STORE_SESSIONS' setting to 'db'. Do the same for the /admin/includes/configure.php

    If that doesn't work, then download the "fix cache key" utility from the Downloads area (link at top of page) under Troubleshooting Tools and follow its instructions.
    .

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: error message

    Quote Originally Posted by anro
    Apologies, It is hosted on a lynux server & I've posted this in the wrong place
    The message you posted strongly suggests you are actively running it on a windows machine, but pulled data from a linux machine.
    .

    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
    Oct 2005
    Location
    Scotland
    Posts
    13
    Plugin Contributions
    0

    Default Re: error message

    Many thanks for the advice I'll give that a try.
    I host with fasthosts.co.uk and until this morning the site has been running without a hitch. I have been able to access the admin without problem until today. I don't have a local copy on my laptop (it's held on another computer)that I use to access the admin functions of zen cart and had emailed the support at fasthosts to see if they had made any changes on the server that may have affected things.........still waiting to hear from them.
    I hold fast to the pearl of the mind

  6. #6
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    13
    Plugin Contributions
    0

    Re: error message

    I've tried the suggestions to fix the problem to no avail and have had a rather long & convoluted discussion by email with my host, Fasthosts, to try to establish if they had changed anything. Finally they admitted that they have, here's what they say :

    "I believe this issue relates to your script assuming the temporary folder is /tmp (a linux folder), rather than the windows equivilant.

    In the previous version of PHP this /tmp was automatically converted to the correct Windows equivilant but following a recent upgrade of PHP to keep our servers secure and up to date, this is no longer converted.

    All you need to do to is remove the reference to the /tmp folder from this application's settings and you should be fine"

    Any help with how I actually do this would be much appreciated, thanks.
    I hold fast to the pearl of the mind

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: error message

    Original reported error:
    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/home/fhlinux206/b/******.co.uk/user/htdocs/cache) is not within the allowed path(s): (e:\sslroot;c:\winnt\temp;c:\winnt;c:\php\pear;c:\ php)
    Cause:
    Zen Cart uses this folder for storing session details:
    /home/fhlinux206/b/******.co.uk/user/htdocs/cache
    but when you're in SSL mode, since we can see that your script is running from:
    e:\sslroot\*******ssl\includes\ (ie: using functions\sessions.php there)
    you are forced to operate underneath one of these folders:
    e:\sslroot;c:\winnt\temp;c:\winnt;c:\php\pear;c:\php

    As you can see, "/home/fhlinux206" doesn't exist under "e:\sslroot" and thus the PHP configuration for open_basedir, which is enforcing the above restricted folders, is not allowing Zen Cart to store session details in the specified folder.

    Possible workaround:
    In your /includes/configure.php file, what do you have set for STORE_SESSIONS (near the bottom of the file)?
    Can you try setting it to 'db' and see if that helps?

    You should also have SQL_CACHE_METHOD set to 'database' or 'none' and not set to 'file' due to your server's configuration.


    Comment about your host's comments
    While your host has at least a tiny understanding that PHP traditionally uses the /tmp folder for storing sessions and thus that could be a related issue, they are clearly missing the fact that their SSL configuration in conjunction with their open_basedir configuration is causing this problem.
    .

    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.

  8. #8
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    13
    Plugin Contributions
    0

    Default Re: error message

    Many thanks for your comments.

    In my /includes/configure.php file, STORE_SESSIONS are already set to 'db' and the

    SQL_CACHE_METHOD set to 'none'

    I've sent another email to fast host to see if they can resolve the SSL configuration in conjunction with their open_basedir configuration
    I hold fast to the pearl of the mind

 

 

Similar Threads

  1. Authorize.net error message with no error message?
    By swamyg1 in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 19 Nov 2010, 12:32 AM
  2. 500 Error - FastCGI error message after database installation page.
    By hungoveragain in forum Installing on a Windows Server
    Replies: 8
    Last Post: 24 Sep 2010, 03:37 PM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. PCI error: Potentially Exploitable Database Error Message -- links_alias table
    By srigari in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 21 Jun 2009, 12:23 AM
  5. error message 1064 you have an error in your sql syntax
    By ngsl in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2008, 06:44 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