jokaz Posted April 27, 2008 Posted April 27, 2008 Yesterday everything was OK, but today i turn on pc, go to web and i saw this error: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288 application_top.php on line 288 is: require(DIR_WS_LANGUAGES . $language . '.php'); How can I fix this error? Please help me!
Guest Posted April 27, 2008 Posted April 27, 2008 Yesterday everything was OK, but today i turn on pc, go to web and i saw this error: Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/includes/application_top.php on line 288 application_top.php on line 288 is: require(DIR_WS_LANGUAGES . $language . '.php'); How can I fix this error? Please help me! is the path right? It looks odd having the ftp there. /usr/home/www/ftp/jokaz/includes
jokaz Posted April 27, 2008 Author Posted April 27, 2008 is the path right? It looks odd having the ftp there./usr/home/www/ftp/jokaz/includes My web is at FTP server, is there something wrong?
jokaz Posted April 27, 2008 Author Posted April 27, 2008 Now i got another error, i fix it, but i don't know how, here is my new error -_- Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157 157 line is: require(DIR_WS_LANGUAGES . $language . '.php');
Guest Posted April 27, 2008 Posted April 27, 2008 Now i got another error, i fix it, but i don't know how, here is my new error -_- Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/share/pear') in /usr/home/www/ftp/jokaz/admin/includes/application_top.php on line 157 157 line is: require(DIR_WS_LANGUAGES . $language . '.php'); Are you using the admin filemanager? If so, don't. You didn't fix the probelem, you just moved it (perhaps by inadvertantly deleting code). If you have back up files (as you should) just replace the files mentioned.
jokaz Posted April 27, 2008 Author Posted April 27, 2008 Are you using the admin filemanager? If so, don't. You didn't fix the probelem, you just moved it (perhaps by inadvertantly deleting code). If you have back up files (as you should) just replace the files mentioned. I'm using FIleZilla FTP program, so i don't have to use it??
Guest Posted April 27, 2008 Posted April 27, 2008 I'm using FIleZilla FTP program, so i don't have to use it?? Very good. No if you have backups, replace the affected files, and see how it goes. Did you delete the default language by any chance?
jokaz Posted April 27, 2008 Author Posted April 27, 2008 Very good. No if you have backups, replace the affected files, and see how it goes. Did you delete the default language by any chance? I didn't have backups ;( So I have to re-install one more time. I'm edit Englisch(default) language to my country Lithuanian. Maybe that's the problem?
Guest Posted April 27, 2008 Posted April 27, 2008 I didn't have backups ;( So I have to re-install one more time. I'm edit Englisch(default) language to my country Lithuanian. Maybe that's the problem? Is there a Lithuanian language pack? Not sure how you edited.
jokaz Posted April 27, 2008 Author Posted April 27, 2008 Is there a Lithuanian language pack? Not sure how you edited. Yes, it is. Here is the link: http://www.oscommerce.com/community/contributions,1677 :)
Guest Posted April 27, 2008 Posted April 27, 2008 Yes, it is. Here is the link: http://www.oscommerce.com/community/contributions,1677 :) That seems complete. There should be instructions about what else to do, I seem to remember that the default locale needs to be set, but I can't remember where.
cmakynen Posted April 27, 2008 Posted April 27, 2008 Yes, it is. Here is the link: http://www.oscommerce.com/community/contributions,1677 :) Do you have a file called \includes\languages\lithuanian.php? And \admin\includes\languages\lithuanian.php? If not, put them there from the contribution (along with the directories of lithuanian ifo) Then go into your site's admin and under Localization, Languages - if Lithuanian isn't listed, add "new language". That error in your php is looking for a file at variable name location $languages, and this is one place to set that. Fields required are Name (Lithuanian), code (li maybe?), image you can leave blank I think, directory (this is the important one): lithuanian (the exact same as the firs tpart of lithuanian.php!), sort order 0 or 1. if you can't get to that Localization/Languages for via your admin page either, then we need to remember where the $languages variable is set! If I find it I'll post back. Sometimes so hard to find these details when you need them!
Guest Posted April 27, 2008 Posted April 27, 2008 Sometimes so hard to find these details when you need them! That is for sure.
jokaz Posted April 27, 2008 Author Posted April 27, 2008 Peoples, now everything is OK. I'm re-install the website, and now it seems working good, without errors. I did backup, if someone will crash. So, thanks for help Coopco and cmakynen. Respect :)
Guest Posted April 27, 2008 Posted April 27, 2008 Peoples, now everything is OK. I'm re-install the website, and now it seems working good, without errors. I did backup, if someone will crash. So, thanks for help Coopco and cmakynen. Respect :) Fantastic. Now how did the problem arise in the first place?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.