Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    310
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,673
    Plugin Contributions
    6

    Default 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 ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Oct 2008
    Posts
    310
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,673
    Plugin Contributions
    6

    Default Re: Question about debug error

    Thanks for the update that this is now all fixed by fixing the code to not be commented out ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Google Checkout broken after upgrading
    By wally in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 11 Jul 2010, 07:10 PM
  2. Question about Debug logging error on 1.3.9b
    By Decostyle in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 19 May 2010, 02:06 PM
  3. paypal express broken by installing google checkout
    By sham in forum Addon Payment Modules
    Replies: 1
    Last Post: 13 May 2010, 11:46 PM
  4. Broken Checkout after installing Google Checkout
    By crl in forum Addon Payment Modules
    Replies: 2
    Last Post: 24 Sep 2007, 01:17 PM
  5. Replies: 3
    Last Post: 22 Aug 2007, 03:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •