Guest Posted January 2, 2006 Share Posted January 2, 2006 i installed the Quantity_Price_Breaks_Per_Product_mod and it seemed to be working fine i am now getting the following error. Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /hsphere/local/home2/filter/filtersforless.com/admin/includes/application_top.php on line 129 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /hsphere/local/home2/filter/filtersforless.com/admin/includes/application_top.php on line 129 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /hsphere/local/home2/filter/filtersforless.com/admin/includes/application_top.php on line 129 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home2/filter/filtersforless.com/admin/includes/application_top.php on line 129 Can any one point me in the right direction Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted January 2, 2006 Share Posted January 2, 2006 Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /hsphere/local/home2/filter/filtersforless.com/admin/includes/application_top.php on line 129 Perhaps you can tell us what is on line 129 in that file, because this mod doesn't use any language files of itself as far as I can remember. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2006 Share Posted January 2, 2006 Perhaps you can tell us what is on line 129 in that file, because this mod doesn't use any language files of itself as far as I can remember. 128: // include the language translations 129: require(DIR_WS_LANGUAGES . $language . '.php'); 130: $current_page = basename($PHP_SELF); 131: if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { 132: include(DIR_WS_LANGUAGES . $language . '/' . $current_page); 133: } Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted January 2, 2006 Share Posted January 2, 2006 Interesting, I only have the next two lines, and on line 292: 128: // include the language translations129: require(DIR_WS_LANGUAGES . $language . '.php'); The couple of lines that QPBPP adds are very basic and I cannot imagine them causing any problems: // include the price formatter for the price breaks contribution require(DIR_WS_CLASSES . 'PriceFormatter.php'); $pf = new PriceFormatter; They are (in my files) indeed just above the part that deals with language, but as, said, I cannot imagine that giving a problem. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2006 Share Posted January 2, 2006 Interesting, I only have the next two lines, and on line 292: The couple of lines that QPBPP adds are very basic and I cannot imagine them causing any problems: // include the price formatter for the price breaks contribution require(DIR_WS_CLASSES . 'PriceFormatter.php'); $pf = new PriceFormatter; They are (in my files) indeed just above the part that deals with language, but as, said, I cannot imagine that giving a problem. I believe that the lines of code that you are refering to that are above are from a small hack that allows you to see the price breaks on the preview screen before you update? I will keep looking for a resolution Thanks Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted January 2, 2006 Share Posted January 2, 2006 I believe that the lines of code that you are refering to that are above are from a small hack that allows you to see the price breaks on the preview screen before you update? I'm sorry, you are right. These lines are from catalog/includes/application_top.php and you are referring to admin/includes/application_top.php. I actually don't know how the admin language is determined, but let's say you have english as your admin language, why don't you change those lines to: // include the language translations // just in case $language is not set properly if (!isset($language)) { $language = 'english'; } 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); } That at least should get you going again (albeit not a real solution). Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2006 Share Posted January 3, 2006 I'm sorry, you are right. These lines are from catalog/includes/application_top.php and you are referring to admin/includes/application_top.php. I actually don't know how the admin language is determined, but let's say you have english as your admin language, why don't you change those lines to: // include the language translations // just in case $language is not set properly if (!isset($language)) { $language = 'english'; } 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); } That at least should get you going again (albeit not a real solution). That did the Trick Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.