Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing line in HEADER.PHP?


thejungle

Recommended Posts

Hi!

 

Since I installed OSC I've been getting the basdir error on the Catalog pages only, the Admin pages seem to load and update etc fine.

 

Anyway I removed this section from the very beginning of `header.php':

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);

}

}

 

 

I think it just checks and then warns if the INSTALL directory is still there.

 

Anyway, once I remove this section in header.php the catalog pages now load up without error.

 

Is it OK tp leave that section out assuming that the INSTALL directory has been removed?

 

I just need to know b4 I continue building my store!

 

Thanks

Ernie

Link to comment
Share on other sites

Hi Trusten:

 

Thanks for the reply. I did actually redownload the files from OSC and then reinstall completely, last week as this has been happening for over a week.

 

It didn't actually tell me the install files were still there (it did at first and then when I deleted the directory INSTALL) it went to:

 

Warning: open_basedir restriction in effect. File is in wrong directory in /home/.capotefridge/oongo..... in header.php at line 15

 

and line 15 or therabouts was the `Check if Install directory exists'.

 

I dunno, I know nothing about PHP but I'll battle on.

 

Ernie

Link to comment
Share on other sites

  • 4 months later...

Archived

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

×
×
  • Create New...