woutertarifa Posted March 2, 2006 Posted March 2, 2006 Hi Everybody, I would like to ask your advise on the following error messsages: These messages appear when I try to acces my website. I am not able to acces my admin either. I get a similar message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 I only have activated spanish on my site. I however canged something in the admin. I think it was the language id. I changed it from "es" to "sp". I think this is where the problem is. I don?t however know how to change it back as I am not able to acces the admin. I have no clue how to resolve this problem. I am a newby with oscommerce, therefore your help would be greatly appreciated. Cheers, Wouter
djmonkey1 Posted March 2, 2006 Posted March 2, 2006 Hi Everybody, I would like to ask your advise on the following error messsages: These messages appear when I try to acces my website. I am not able to acces my admin either. I get a similar message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/includes/application_top.php on line 285 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/t/r/mydomain/htdocs/www/shop/osc/admin/includes/application_top.php on line 130 I only have activated spanish on my site. I however canged something in the admin. I think it was the language id. I changed it from "es" to "sp". I think this is where the problem is. I don?t however know how to change it back as I am not able to acces the admin. I have no clue how to resolve this problem. I am a newby with oscommerce, therefore your help would be greatly appreciated. Cheers, Wouter Edit the database direct (change the "sp" back to "es"). Or you can edit application_top to hardcode in calling your spanish language file. In admin/includes/application_top.php, change line 130 to read require(DIR_WS_LANGUAGES . 'spanish.php'); this won't completely solve your problem but it should allow admin to work well enough to let you fix the problem. Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
woutertarifa Posted March 2, 2006 Author Posted March 2, 2006 Edit the database direct (change the "sp" back to "es"). Or you can edit application_top to hardcode in calling your spanish language file. In admin/includes/application_top.php, change line 130 to read require(DIR_WS_LANGUAGES . 'spanish.php'); this won't completely solve your problem but it should allow admin to work well enough to let you fix the problem. Thank you! I will try to follow your procedure. Let?s see if I can undo the mistake. Cheers, Wouter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.