Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'failed to open stream' ???? advice needed


Guest

Recommended Posts

Posted

Can anybody offer a newbie advice on how to fix this error when trying to load my site? I've spent a day trying to track down the problem without success. :(

 

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

 

Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/muzmats/public_html/store/index.php on line 33

 

Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/muzmats/public_html/store/index.php on line 33

 

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

 

The admin section of my site is working fine. Any help with this would be much appreciated.

Posted

double check the paths on your configure.php in catalog/includes

Posted

Compare the configure.php file in admin/includes to the catalog one.

 

FILENAME_DEFAULT usually refers to index.php in /includes/filenames.php

 

And /store/includes/configure.php defines /includes/languages as DIR_WS_LANGUAGES

 

If you are absolutely sure that the file structure and files are actually there then find in /store/index.php (near the top) the following line (different with the stable release)

 

require(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/' . FILENAME_DEFAULT);

 

And print the entire path that includes $language - this might be the cause for some reason or another.

 

If everything is ok you should see

 

/includes/lanuguages/english/index.php

 

Else there is a problem with $language.

 

HTH.

"Any fool can know. The point is to understand." -- Albert Einstein

Archived

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

×
×
  • Create New...