Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2005
    Posts
    42
    Plugin Contributions
    0

    session_save_path, session_start warnings

    Have upgraded and now get the following warnings on Welcome screen:

    ====================================================
    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/domains/shop.galeriefotos.com/:/usr/share/phpmyadmin:/etc/phpmyadmin:/usr/local/lib/php) in /var/www/domains/shop.galeriefotos.com/docs/zencart/demo/includes/functions/sessions.php on line 143

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/domains/shop.galeriefotos.com/docs/zencart/demo/includes/functions/sessions.php:143) in /var/www/domains/shop.galeriefotos.com/docs/zencart/demo/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/domains/shop.galeriefotos.com/docs/zencart/demo/includes/functions/sessions.php:143) in /var/www/domains/shop.galeriefotos.com/docs/zencart/demo/includes/init_includes/init_templates.php on line 78
    ====================================================

    How do I get rid of them?

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: session_save_path, session_start warnings

    your configure.php files appear to be incorrectly pointing your DIR_FS_SQL_CACHE setting to '/tmp'
    instead of
    '/var/www/domains/shop.galeriefotos.com/docs/zencart/demo/cache'
    .

    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
    Nov 2005
    Posts
    42
    Plugin Contributions
    0

    Re: session_save_path, session_start warnings

    Thanks for all your help!

    I checked both configure.php files.

    Here's the one from the includes folder:

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/var/www/domains/shop.galeriefotos.com/docs/zencart/demo/cache');


    And from the admin/includes folder:

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/var/www/domains/shop.galFS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    * * *

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/var/www/domains/shop.galeriefotos.com/docs/zencart/demo/cache');

    Should the 'SQL_CACHE_METHOD' be 'file' instead of 'none'? Do you have any other thoughs/suggestions?

    Thanks, again, for all your help!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: session_save_path, session_start warnings

    Quote Originally Posted by Gart
    And from the admin/includes folder:

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/var/www/domains/shop.galFS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    Looks like you may have some corruption in the file...
    .

    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
    Nov 2005
    Posts
    42
    Plugin Contributions
    0

    Re: session_save_path, session_start warnings

    Quote Originally Posted by DrByte
    Looks like you may have some corruption in the file...
    Sorry...I went back to "fix" the file (if I could), only to discover that the corruption was in the copying and pasting:

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/var/www/domains/shop.galeriefotos.com/docs/zencart/demo/cache');

    ?>

    What other things might cause these warnings?

    Thanks for being there when we need you (which feels like always).

  6. #6
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: session_save_path, session_start warnings

    Does running the Fix_cache_key tool help?
    http://www.zen-cart.com/index.php?ma...products_id=82
    - upload it to your demo/zencart folder and run it in your browser.
    .

    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.

  7. #7
    Join Date
    Nov 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: session_save_path, session_start warnings

    All Right! The Fix_cache_key tool worked as documented.

    Thanks again, for all your help.

    I think that you should take the rest of the night off!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,378
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: session_save_path, session_start warnings

    Quote Originally Posted by Gart
    I think that you should take the rest of the night off!
    I hope Ajeh didn't hear you say that .... or I'll pay for it tomorrow!
    .

    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.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: session_save_path, session_start warnings

    Quote Originally Posted by DrByte
    I hope Ajeh didn't hear you say that .... or I'll pay for it tomorrow!
    you are doomed ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Warning: session_save_path
    By IDW in forum General Questions
    Replies: 7
    Last Post: 27 Mar 2010, 04:56 AM
  2. Warning: session_save_path(): HELP
    By Xanox in forum General Questions
    Replies: 3
    Last Post: 23 Nov 2006, 01:58 PM
  3. session_save_path() [function.session-save-path]:
    By vr4indian in forum Installing on a Windows Server
    Replies: 2
    Last Post: 30 Oct 2006, 07:45 PM

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