angelshop2006 Posted May 21, 2006 Share Posted May 21, 2006 I ues tchinese. But I try many times still have the below warning message. Anyone could help me? Plz!! Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/angelshop/domains/angelshop2006.com/public_html/catalog/includes/application_top.php on line 288 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /home/angelshop/domains/angelshop2006.com/public_html/catalog/includes/application_top.php on line 288 Link to comment Share on other sites More sharing options...
spax Posted May 21, 2006 Share Posted May 21, 2006 Your warning is showing the filename missing; languages/.php I think your line 288 in application_top.php should be this: require(DIR_WS_LANGUAGES . $language . '.php'); Check to see that is correct. If it looks nothing like that, post it here. Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 21, 2006 Share Posted May 21, 2006 Do you have that lanugage added to your admin->Localization->Languages? I looks like the code can't find it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
angelshop2006 Posted May 21, 2006 Author Share Posted May 21, 2006 Your warning is showing the filename missing; languages/.php I think your line 288 in application_top.php should be this: require(DIR_WS_LANGUAGES . $language . '.php'); Check to see that is correct. If it looks nothing like that, post it here. Do you have that lanugage added to your admin->Localization->Languages? I looks like the code can't find it. Jack At first, I edit lanugage tchinese code tw --> hk then appear the above error message If I don't change it, then the site is no problem How can I change the code be hk but no error? http://www.angelshop2006.com/shopping/index.php?language=tw I wanna the site is http://www.angelshop2006.com/shopping/index.php?language=hk Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 21, 2006 Share Posted May 21, 2006 You lost me with tw --> hk. What does that mean? Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
angelshop2006 Posted May 21, 2006 Author Share Posted May 21, 2006 You lost me with tw --> hk. What does that mean? Jack I quote a picture. Hope you can understand my question. Because my English is weak. :( Link to comment Share on other sites More sharing options...
Terra Posted May 21, 2006 Share Posted May 21, 2006 Your languages are defined in /includes/classes/language.php The standard osCommerce version contains the definition for "tw" but not for "hk" - you will therefore have to add the definition for "hk" to this file. all the best, Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
angelshop2006 Posted May 22, 2006 Author Share Posted May 22, 2006 Your languages are defined in /includes/classes/language.php The standard osCommerce version contains the definition for "tw" but not for "hk" - you will therefore have to add the definition for "hk" to this file. all the best, Terra How could I add it in /includes/classes/language.php ? Link to comment Share on other sites More sharing options...
Terra Posted May 22, 2006 Share Posted May 22, 2006 How could I add it in /includes/classes/language.php ? You need to download the file via FTP and then edit in a text editor. I am not familiar with the settings for your chosen setting though, so can't advise on the PHP code. Good FTP programmes are: * Ipswitch FTP programmes @ http://www.ipswitch.com/ * CuteFTP @ http://www.cuteftp.com/ * SmartFTP @ http://www.smartftp.com/download/ * FileZilla at SourceForge @ http://sourceforge.net/project/showfiles.php?group_id=21558 Good Text Editors are: * TextPad (Windows plain text editor) @ http://www.textpad.com/ * Crimson Editor (Windows plain text editor) @ http://www.crimsoneditor.com/ * DzSoft PHP Editor (preview and edit dynamic PHP pages) @ http://www.dzsoft.com/dzphp.htm * Taco HTML Edit for Mac OSX (HTML and PHP text editor) @ http://tacosw.com/main.php Please note that I have not amended the language.php myself, so this a suggestion, not a tested solution! Always back up your files before making any amendments, and test on a development/test shop first. all the best, Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.