Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error messages since my ISP upgraded to php 4.3.0


Larskovitch

Recommended Posts

Posted

My fully functional shop suddenly comes with error messages since my ISP upgraded php to 4.3.0.

 

In the catalog/default-section (storefront) header, i suddenly got an eror message reading:

----------------------

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/www/htdocs/consumax/) in /www/htdocs/consumax/catalog/includes/header.php on line 30

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

----------------------

I could make this invisible by changing "true" to "false" in catalog/includes/ header.php :

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'false') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);

} elseif (!is_writeable(tep_session_save_path())) {

tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);

}

}

}

-------------------------------------------------------------------------

In the admin section i get the following header:

 

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /www/htdocs/consumax/admin/includes/languages/dutch.php on line 12

 

This error however results in more errors as soon as i try to update a product for example:

 

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/consumax/admin/includes/languages/dutch.php:12) in /www/htdocs/consumax/admin/includes/functions/general.php on line 18

 

-------------------------------

 

Does anybody have similar experiences, or does anybody know how to fix those errors?

 

Thnx in advance!

Larskovitch

Life is good...... but not for me ;-)

Al Bundy

Posted

Thnx for your reply, The_Bear....

 

But somehow problems solved in topic overthere does not concern mine.

The order_total.php file is not even close to mine.... The line they suggest changing is not even present in my file.

:(

 

Larskovitch

Life is good...... but not for me ;-)

Al Bundy

  • 1 month later...
Posted

iChange in config.php on the end change

 

define('STORE_SESSIONS', 'l');

 

define('STORE_SESSIONS', 'mysql');

 

Greetings John2B

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...