Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hate errors but they help...


gabi

Recommended Posts

I try to add a ney row in information box.

What I have done so far:

1. created a file fred.php(model shipping.php) in catalog/

2. created a file fred.php (model shipping.php but different text) in language/english/

3. added define('FILENAME_FRED', 'fred.php') in filename.php

4. added define('BOX_INFORMATION_FRED, 'Fred Bla-Bla'); in language/english.php file

 

What's missing?

 

I got :

 

Warning: main(includes/languages/english/fred.php) [function.main]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\catalog\fred.php on line 16

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/english/fred.php' (include_path='.;c:\php4\pear') in c:\program files\apache group\apache\htdocs\catalog\fred.php on line 16

 

This error messages are supposed to help me but I don't understand(the files are there..why osc doesn't see them...)

If I out comment the next line in catalog/fred.php

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FRED);

 

I get the page but ofcourse it doesn't work properly.

Can somebody help me? :(

Link to comment
Share on other sites

Hi Matt,

I verified the r-w mode and it was ok.

But because I was feed up with modifications I just deleted all I have put there and I started again.

 

And...guess!

 

Now it is working. :rolleyes:

I have done the same steps as above.

I hate this kind of errors(came and dissapear-ofcourse you can look for a mistake all the day and not be able to see a coma missing or an extra dot somewhere in the code).

Anyway thanks. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...