Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot instantiate non-existent class


jdlev

Recommended Posts

Posted

I have built multiple oscommerce sites, but have never seen this one. I get this error after I go to checkout and then click the continue button to get to Payment Information:

 

Fatal error: Cannot instantiate non-existent class: cc in /web/awi/includes/classes/payment.php on line 41

 

Here is lines 37 - 41 in payment.php (not modified whatsoever)

 

		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'];

 

I have searched, but with no luck. Can one of you Oscommerce Guru's please help me out :)

Posted

i would check first that things like cc.php have uploaded correctly, could be your file is corrupt

Posted

I thought about that myself, so what i did was download oscommerce again, and up the file... unfortuanately no luck... any other suggestions?

Posted
I thought about that myself, so what i did was download oscommerce again, and up the file... unfortuanately no luck... any other suggestions?

 

Ok, you ended up being right.. cc.php was corrupt... I thought I checked that, but I was wrong. Thanks for helping me out

Archived

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

×
×
  • Create New...