Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity_Price_Breaks_Per_Product_mod_files


Guest

Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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: }

Link to comment
Share on other sites

Interesting, I only have the next two lines, and on line 292:

128: // include the language translations

129: 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...