Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error When I Select "Buy Now"


ThomasWI

Recommended Posts

Posted

Just uploaded 2.2 to my server...............

 

This is the error I get when I click on "Buy Now"

 

 

Warning: payment(includes/modules/paymentmoneyorder.php) [function.payment]: failed to open stream: No such file or directory in /home/cctrains/public_html/catalog/includes/classes/payment.php on line 39

 

Warning: payment(includes/modules/paymentmoneyorder.php) [function.payment]: failed to open stream: No such file or directory in /home/cctrains/public_html/catalog/includes/classes/payment.php on line 39

 

Warning: payment() [function.include]: Failed opening 'includes/modules/paymentmoneyorder.php' for inclusion (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/cctrains/public_html/catalog/includes/classes/payment.php on line 39

 

Fatal error: Cannot instantiate non-existent class: moneyorder in /home/cctrains/public_html/catalog/includes/classes/payment.php on line 41

 

.../includes/classes/payment.php (Lines 37-42)

 

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {

include(DIR_WS_LANGUAGES . $language . '/modules/payment/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'payment' . $include_modules[$i]['file']);

 

$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];

}

Posted

In my version of this file, this line:

 

		  include(DIR_WS_MODULES . 'payment' . $include_modules[$i]['file']);

reads like this:

 

		  include(DIR_WS_MODULES . 'payment/' . $include_modules[$i]['file']);

(Note the / after payment).

 

That would explain the error you're getting.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...