quachvu Posted November 30, 2004 Share Posted November 30, 2004 hello, i cant load my main page anymore, here is the error message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 Link to comment Share on other sites More sharing options...
♥Vger Posted November 30, 2004 Share Posted November 30, 2004 There is no language file listed in that file pathway e.g. includes/languages/.php I would suggest that you upload all of your language files again. Vger Link to comment Share on other sites More sharing options...
quachvu Posted November 30, 2004 Author Share Posted November 30, 2004 hello, i cant load my main page anymore, here is the error message:Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 <{POST_SNAPBACK}> Warning: main(includes/languages//index.php): failed to open stream: No such file or directory in /home/vietpcb6/www.vietphim.com/catalog/index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages//index.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vietpcb6/www.vietphim.com/catalog/index.php on line 33 Link to comment Share on other sites More sharing options...
quachvu Posted November 30, 2004 Author Share Posted November 30, 2004 There is no language file listed in that file pathway e.g. includes/languages/.php I would suggest that you upload all of your language files again. Vger <{POST_SNAPBACK}> i see the problem is the path in that file is not correct "/.php" .. it cant realize the right filename with $language in the applicaton_top file Link to comment Share on other sites More sharing options...
gabosgab Posted October 10, 2005 Share Posted October 10, 2005 This is a problem with cookies. To reproduce: 1. Clear your cookies in your browser. 2. Visit the website with your osCommerce installed. The page should load properly. 3. Refresh, the page will display the error now. I believe this is because osCommerce is trying to set a language cookie and the client is rejecting it becuase an improper cookie domain? hello, i cant load my main page anymore, here is the error message:Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vietpcb6/www.vietphim.com/catalog/includes/application_top.php on line 285 Link to comment Share on other sites More sharing options...
gabosgab Posted October 10, 2005 Share Posted October 10, 2005 Insert this code before // set the language comment if you have register_globals off. This will fix the problem and simulate register_globals // www.gabosgab.com // Simulate register_globals if(!empty($_GET)) extract($_GET); if(!empty($_POST)) extract($_POST); if(!empty($_COOKIE)) extract($_COOKIE); if(!empty($_SESSION)) extract($_SESSION); This is a problem with cookies. To reproduce: 1. Clear your cookies in your browser. 2. Visit the website with your osCommerce installed. The page should load properly. 3. Refresh, the page will display the error now. I believe this is because osCommerce is trying to set a language cookie and the client is rejecting it becuase an improper cookie domain? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.