Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Removing line in HEADER.PHP?


Recommended Posts



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 (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {






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!




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.



Link to comment
Share on other sites

  • 4 months later...


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

  • Create New...