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.
Code:
[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
Code:
<?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:
Re: Question about debug error
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 ...
Re: Question about debug error
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:
Re: Question about debug error
Thanks for the update that this is now all fixed by fixing the code to not be commented out ... :smile: