mugitty Posted November 21, 2003 Share Posted November 21, 2003 I have started receiving an error intermittently after adding the Support System contribution. I can identify where it happens, but don't understand why. I will occasionally receive the following message when moving within my admin area: Warning: main(includes/languages/e): failed to open stream: No such file or directory in /home/farmex/public_html/osc/includes/application_top.php on line 329 Fatal error: main(): Failed opening required 'includes/languages/e' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/farmex/public_html/osc/includes/application_top.php on line 329 The area that it is referencing appears as follows in my application_top.php file: // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = split('\?', basename($PHP_SELF)); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); } As you can see, it is only capturing part of the require for the language file (in the example above "includes/languages/e"). Sometimes it may say this, other times it may say "eng". I can normally close all open instances of my browser and then re-log into the admin area and it will be corrected (until the next seemingly random time). What would cause this to happen? ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
djmonkey1 Posted November 21, 2003 Share Posted November 21, 2003 This is troubling me also- here's what I'm getting: Warning: main(includes/languages/engli): failed to open stream: No such file or directory in /var/www/html/store/admin/includes/application_top.php on line 130 Fatal error: main(): Failed opening required 'includes/languages/engli' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/store/admin/includes/application_top.php on line 130 Lines 129-133 of application_top.php are: // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); Since this first occurred also seemingly randomly (I was navigating through admin, and suddenly that's all I could get), I haven't been able to do anything with admin. I tried closing the browser and going back with no success. And with IE trying to access the admin portion of the store just gets "Page cannot be displayed" (Mozilla Firebird displays the fatal error). The regular portion of the store works fine. ????? 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. Link to comment Share on other sites More sharing options...
Guest Posted November 22, 2003 Share Posted November 22, 2003 Try using 'require' in the script rather than 'include' Matti Link to comment Share on other sites More sharing options...
djmonkey1 Posted November 22, 2003 Share Posted November 22, 2003 It has been a vertical climb so far, and though I've fallen I can still get up. :lol: Thanks for the tip, I'll try that if this weirdness happens again (my admin randomly starting working again). 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. Link to comment Share on other sites More sharing options...
mugitty Posted November 24, 2003 Author Share Posted November 24, 2003 Well, the problem is still occurring. It seems to be random, but also seems to happen more often when returning to the admin index page from Who's Online than other places. It doesn't seem to make any difference if the reference says "include" or "require" - It still occurs Anyone else have any other thoughts on why this happens and how to fix it? ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
beercan Posted January 2, 2004 Share Posted January 2, 2004 This is troubling me also- here's what I'm getting: Warning: main(includes/languages/engli): failed to open stream: No such file or directory in /var/www/html/store/admin/includes/application_top.php on line 130 Fatal error: main(): Failed opening required 'includes/languages/engli' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/store/admin/includes/application_top.php on line 130 Lines 129-133 of application_top.php are: // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); Since this first occurred also seemingly randomly (I was navigating through admin, and suddenly that's all I could get), I haven't been able to do anything with admin. I tried closing the browser and going back with no success. And with IE trying to access the admin portion of the store just gets "Page cannot be displayed" (Mozilla Firebird displays the fatal error). The regular portion of the store works fine. ????? I have the same exact issue Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.