Jump to content
Sign in to follow this  

Google Ceckout Install - Fatal Error

Recommended Posts

Hi All,

I have installed Google Checkout v 1.5 into my highly modifed store.

Unfortunately I am getting the following error messgage:-


"Fatal error: Cannot intantiate non-existant class:filenames

in .../googlecheckout/gcheckout.php on line 371"


Here's The code from a few lines before the troublesome bit...


362 $module_info = array();

363 $module_info_enabled = array();

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

365 $file = $directory_array[$i];


367 include_once (DIR_FS_CATALOG .DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $file);

368 include_once ($module_directory . $file);


370 $class = substr($file, 0, strrpos($file, '.'));

371 $module = new $class;


I have made a temporary fix by commenting out line 370 and a '}' further down the page.


Does anybody know where the "non-existant class:filenames" Should be?




nb both filenames.php are in thier respective directories

Share this post

Link to post
Share on other sites

This error means that you have uploaded a copy of filenames.php to the includes/modules/ directory. The osCommerce code thinks that everything in that directory is a module and tries to access the module code. Delete that file and the error will go away.




See my profile for a list of my addons and ways to get support.

Share this post

Link to post
Share on other sites

Hi Jim, Thanks for that. Filenames.php was actually in the modules/shipping folder!!! God's only knows how I managed that one!!!


But Cheers, The shopping cart is now showing the Google Checkout button minus my bodge.


It even works - orders are getting thorugh to Google.


Next problem... /googlecheckout/responsehandler.php not returning order details to the site.... ho hum, here we go again.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this