Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ship2pay - "Fatal error: Cannot instantiate non-existent class: flat in /.../shipping.php on line 38"


AStA

Recommended Posts

Hello everybody,

 

I'm in trouble after installing ship2pay-module.

 

When I click at the new link in the admin section I get the error massage:

 

ship2pay - "Fatal error: Cannot instantiate non-existent class: flat in /.../shipping.php on line 38"

 

Some kind of class is missing?!

 

So what can I do?

 

Thanks!

 

Ivan

Link to comment
Share on other sites

Looks like the file catalog/includes/modules/shipping/flat.php is missing, but is enabled in the admin - modules - shipping - flat rate

 

Hi,

 

flat.php is in the right place, must be somthing else :huh:

 

Regards

Link to comment
Share on other sites

  • 2 weeks later...

No one any idea? :'(

 

The system seems to have a problem with the last step of the instrutions (Ship2Pay, v2.0.1 2006/01/18):

 

*******************************************************************

/catalog/includes/classes/shipping,

replace: / zamien: / vervang: / ersetzen:

old: / stary wpis / oud: / alt:

+/- line 37-40:

--------------------------------------------------------------------

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

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

--------------------------------------------------------------------

new: / nowy wpis: / nieuw: / neu:

--------------------------------------------------------------------

+/- line 48-51:

// ship2pay start

include(DIR_RP_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);

include(DIR_RP_MODULES . 'shipping/' . $include_modules[$i]['file']);

// ship2pay end

********************************************************************

 

 

Editing the code like the instruction says, my shipping.php lokks like this...

 

 

	   for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {
	  $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
	}
  }
}

function quote($method = '', $module = '') {
  global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

  $quotes_array = array();

// ship2pay start
	  include(DIR_RP_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
	  include(DIR_RP_MODULES . 'shipping/' . $include_modules[$i]['file']);
// ship2pay end

 

...what seemd somekind of strange to me, so I tried this...

 

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {
// ship2pay start
	  include(DIR_RP_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
	  include(DIR_RP_MODULES . 'shipping/' . $include_modules[$i]['file']);
// ship2pay end
	  $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
	}
  }
}

 

..so I inserted the modified code directly at the lines where I deleted the old one, instead of inserting at line 48.

 

Now I get a osc-webpage, but it says:

 

Ship 2 Pay

1146 - Table 'ship2pay.php' doesn't exist

 

select count(*) as total from ship2pay.php

 

[TEP STOP]

 

Any ideas? The table is existing in the database - I inserted the ship2pay.sql like the instrution said.

 

Regards

Ivan

Link to comment
Share on other sites

  • 8 months later...
Hello everybody,

 

I'm in trouble after installing ship2pay-module.

 

When I click at the new link in the admin section I get the error massage:

 

ship2pay - "Fatal error: Cannot instantiate non-existent class: flat in /.../shipping.php on line 38"

 

Some kind of class is missing?!

 

So what can I do?

 

Thanks!

 

Ivan

 

 

I am getting this error as well except Mine says

"Fatal error: Cannot instantiate non-existent class: table in /.../shipping.php on line 43"

 

 

Line 43 of that file is:

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...