|
osCommerce eski sürümlerini kullanırken aşağıdaki hata mesajını alabilirsiniz.
Warning: session_save_path() [function.session-save-path]: SAFE MODE
Restriction in effect. The script whose uid is 32168 is not allowed to
access owned by uid 0 in
/home/alanisminiz/public_html/includes/functions/sessions.php on line 162
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at
/home/alanisminiz/public_html/includes/functions/sessions.php:162) in
/home/alanisminiz/public_html/includes/functions/sessions.php on line 97
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/home/alanisminiz/public_html/includes/functions/sessions.php:162) in
/home/alanisminiz/public_html/includes/functions/sessions.php on line 97 Çözüm1. catalog/includes/configure.php dosyasında en son satırın aşağıdaki gibi olduğuna emin olun. define('STORE_SESSIONS', 'mysql');
2. catalog/includes/functions/sessions.php dosyasını açın ve aşağıdaki satırları bulun: function tep_session_save_path($path = '') { if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } }
Aşağıdaki ile yer değiştirin: function tep_session_save_path($path = '') { if (STORE_SESSIONS != 'mysql') { // added this *** if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } } }
Aynı düzeltmeleri yönetim paneli içinde yapabilirsiniz. 1. catalog/admin/includes/configure.php dosyasında en son satırın aşağıdaki gibi olduğuna emin olun. define('STORE_SESSIONS', 'mysql'); 2. catalog/admin/includes/functions/sessions.php dosyasını açın ve aşağıdaki satırları bulun: function tep_session_save_path($path = '') { if ($path != '') { return session_save_path($path); } else { return session_save_path(); } }
Aşağıdaki ile yer değiştirin: function tep_session_save_path($path = '') { if (STORE_SESSIONS != 'mysql') { // added this *** if ($path != '') { return session_save_path($path); } else { return session_save_path(); } } }
Kolay gelsin.
Bu içeriği arkadaşına öner... |