Forums / General Questions / Question about debug error (broken by google checkout addon)

Question about debug error (broken by google checkout addon)

Locked

Started by kenichi on 12 Aug 2010, 5:43 AM · Views: 1,848

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Aug 2010, 5:43 AM
#1
kenichi avatar

kenichi

Zen Follower

Join Date:
Oct 2008
Posts:
252
Plugin Contributions:
0

Question about debug error (broken by google checkout addon)

I've been getting this error for a really long time but never thought anything of it since there's never any problems and I don't use downloads.

[11-Aug-2010 13:37:25] PHP Fatal error:  Call to a member function RecordCount() on a non-object in /includes/templates/template_default/templates/tpl_modules_downloads.php on line 19

That line looks like

<?php
// download is available
  if ($downloads->RecordCount() > 0) {
?>

I compared it to a fresh file and it's exactly the same.
How do I fix this? :blink:

12 Aug 2010, 3:12 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Question about debug error (broken by google checkout addon)

This is a rather odd error to get as the file:
/includes/modules/downloads.php

calls the file:
/includes/templates/template_default/templates/tpl_modules_downloads.php

Could you check both files on the server to ensure that they are the current versions?

Also check if you have an override file for:
/includes/modules/downloads.php

which would be in your templates and overrides directory:
/includes/modules/your_template_dir/downloads.php

also check the file:
/includes/templates/template_default/templates/tpl_account_history_info_default.php

which calls the file:
/includes/templates/template_default/templates/tpl_modules_downloads.php

Then test your site and see if the error is generated when you go to the Account History ... or just from the checkout_success page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Aug 2010, 6:07 PM
#3
kenichi avatar

kenichi

Zen Follower

Join Date:
Oct 2008
Posts:
252
Plugin Contributions:
0

Re: Question about debug error (broken by google checkout addon)

Thank you,

a section in includes/modules/downloads.php was all commented out, probably by a bad ftp from implementing google checkout.

It looks good now :smile:

12 Aug 2010, 6:53 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Question about debug error (broken by google checkout addon)

Thanks for the update that this is now all fixed by fixing the code to not be commented out ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!