Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Google Ceckout Install - Fatal Error


2 replies to this topic

#1 simonhornby

  • Community Member
  • 15 posts
  • Real Name:Simon Hornby

Posted 20 November 2011, 10:26

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];
366
367 include_once (DIR_FS_CATALOG .DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $file);
368 include_once ($module_directory . $file);
369
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?

Thanks
Simon
nb both filenames.php are in thier respective directories

#2 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 November 2011, 18:22

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.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#3 simonhornby

  • Community Member
  • 15 posts
  • Real Name:Simon Hornby

Posted 20 November 2011, 23:42

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.

Simon