Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What does this error message mean?


jmw1960

Recommended Posts

Posted

Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/collect8/public_html/includes/application_top.php on line 286

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/collect8/public_html/includes/application_top.php on line 286

Posted

that means the variable $language is somehow blank (null). if you only use one language on your site then you could hard code it, ie, take off the variable, and replace it with, say, english (english.php, that is).

 

Ken

 

Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/collect8/public_html/includes/application_top.php on line 286

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/collect8/public_html/includes/application_top.php on line 286

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

Thanks. How do I correct this issue so My site comes back up. This occured while I was trying to put a new image into the langauge box in the localization part of admin.. And then this happens. What do I do??? I'm new at this....

 

 

that means the variable $language is somehow blank (null). if you only use one language on your site then you could hard code it, ie, take off the variable, and replace it with, say, english (english.php, that is).

 

Ken

Posted
Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/collect8/public_html/includes/application_top.php on line 286

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php') in /home/collect8/public_html/includes/application_top.php on line 286

 

 

Also check in your admin panel: admin->Localization->Languages and make sure that there is at least a language in there.

Posted

I can't even get into my admin->Localization->Languages. The error shows up when when I go to the site and os commerce admin.... How do I fix this????

 

Also check in your admin panel: admin->Localization->Languages and make sure that there is at least a language in there.
Posted
I can't even get into my admin->Localization->Languages. The error shows up when when I go to the site and os commerce admin.... How do I fix this????

 

Ok can you check your files and make sure you have an english.php under includes/languages?

Posted

Did you back up your website files before doing any modifications? You should Always Back Up!! Then you can at least return to the previous state if something goes wrong. Can you retrace what you did and undo it?

Posted

I checked my files and I do have an english.php under includes/languages.. Now what do I do??

 

 

Ok can you check your files and make sure you have an english.php under includes/languages?
Posted

I believe what GemRock was saying was go into your application_top.php and find the coding:

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

and change it to:

 

// include the language translations

require(DIR_WS_LANGUAGES . 'english.php');

 

I am not one of those gurus, but if you are sure that you have english.php it might be the answer. Also there is catalog/admin/includes/languages/english.php as well as catalog/includes/languages/english.php. Did you make sure that both are there?

Posted

Thanks it worked. But the catalog admin style sheet has has changed with the buttons graphics gone and other changes. How do I get it back to the original. But I am happy to have the site back and up thanks. Also how do I add a new image to a default language???

 

 

 

 

I believe what GemRock was saying was go into your application_top.php and find the coding:

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

and change it to:

 

// include the language translations

require(DIR_WS_LANGUAGES . 'english.php');

 

I am not one of those gurus, but if you are sure that you have english.php it might be the answer. Also there is catalog/admin/includes/languages/english.php as well as catalog/includes/languages/english.php. Did you make sure that both are there?

Posted
Thanks it worked. But the catalog admin style sheet has has changed with the buttons graphics gone and other changes. How do I get it back to the original. But I am happy to have the site back and up thanks. Also how do I add a new image to a default language???

 

Hi, I am not sure where it is that you are wanting this image to show up on your website. Can you give a little more info on that? I use a program called smart ftp to upload files to my website. How are you doing yours?

Archived

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

×
×
  • Create New...