Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error message help


Chris Dunning

Recommended Posts

Check out this page here:

http://wiki.oscommerce.com/WarnFatalOpen

This offers some great information in case someone forgot a filename define. However, I think it would be more helpful to add in an explanation of what that error message means. I think it's rather obvious, but many people don't understand it (or don't try to). In the forums today, someone posted this error message:

 

Warning: Failed opening 'includes/boxes/textsurvey.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/jnr1/barginhut-www/store/includes/column_left.php on line 27

 

So, I would explain it like this:

 

in /home/jnr1/barginhut-www/store/includes/column_left.php on line 27

 

This part of the message tells you where the error can be found. In this example, the problem is in column_left.php on line 27.

 

Failed opening 'includes/boxes/textsurvey.php' for inclusion

 

This part of the message tells you what the error is. In this example, osCommerce is trying to find a file called textsurvey.php in the directory includes/boxes/. This file is either not where it should be or is not the same filename.

 

Solution:

Make sure the file exists. If it's not there, upload it.

Make sure the filename matches exactly. Case matters - textsurvey.php, TextSurvey.php, TEXTSURVEY.PHP, text_survey.php - each of these is a different filename. If the filename doesn't match, either rename the file or edit column_left.php to point to the correct filename. If the line in question looks something like this:

include (DIR_WS_BOXES . FILENAME_TEXTSURVEY);

then you need to open up filenames.php and look for a line like this:

define ('FILENAME_TEXTSURVEY', 'textsurvey.php');

This is where you can change the filename being called.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...