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!
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'
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!
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...
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).
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.
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!
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!
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 ... :eek: