Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: I am able to write to the configuration file:


Guest

Recommended Posts

Hi All,

 

Would apreciate some help on this if possible....

 

Is it possible to write that warning out of OSC so it doesnt display this error message when configure.php cant be written to ? If so can you tell me which file to modify and a rough guess at which parts need changing ?

 

Thanks in advance! :thumbsup:

Link to comment
Share on other sites

You get the error message because your configuration.php file

 

(calatog/includes/configuration.php)

 

does not have the correct permissions! This is a security risk! You should access your control panel (www.domain.com/cpanel ????) use your file manager to find the file and remove the ticks from all the write boxes..

Link to comment
Share on other sites

Hi All,

 

Would apreciate some help on this if possible....

 

Is it possible to write that warning out of OSC so it doesnt display this error message when Config.php cant be written to ? If so can you tell me which file to modify and a rough guess at which parts need changing ?

 

Thanks in advance! :thumbsup:

 

Whilst this is not advisable you can do it as follows

 

Towards the bottom of you includes/application_top.php file you will find this section

 

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'true');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

You can change the value from true to false to turn the warnings off

Regards

 

Mark A Reynolds

Link to comment
Share on other sites

You get the error message because your configuration.php file

 

(calatog/includes/configuration.php)

 

does not have the correct permissions! This is a security risk! You should access your control panel (www.domain.com/cpanel ????) use your file manager to find the file and remove the ticks from all the write boxes..

 

Yup i know how to set the permissions, the problem i have at the moment is my webhost is going through an update on all files and the permissions have been changed back to standard and i cannot edit the permissions until this has been done (ETA 24 hours) Hence needing to remove the warning for the time being..

 

Whilst this is not advisable you can do it as follows

 

Towards the bottom of you includes/application_top.php file you will find this section

 

 

QUOTE

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'true');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

 

You can change the value from true to false to turn the warnings off

 

You are a gentleman sir... Just want i needed thank you! :thumbsup:

Link to comment
Share on other sites

Yup i know how to set the permissions, the problem i have at the moment is my webhost is going through an update on all files and the permissions have been changed back to standard and i cannot edit the permissions until this has been done (ETA 24 hours) Hence needing to remove the warning for the time being..

You are a gentleman sir... Just want i needed thank you! :thumbsup:

 

Your welcome

Regards

 

Mark A Reynolds

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...