Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    254
    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
    69,402
    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.5]
    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!

  3. #3
    Join Date
    Oct 2008
    Posts
    254
    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
    69,402
    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.5]
    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!

 

 

Similar Threads

  1. Google Analytics addon debug
    By dwkettle in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 5 May 2012, 07:47 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. small question about google checkout for 1.3.8a
    By modwerx in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Feb 2009, 04:09 AM
  4. Question about using Google Checkout
    By markw10 in forum Addon Payment Modules
    Replies: 1
    Last Post: 19 Jul 2008, 12:18 AM
  5. Broken Checkout after installing Google Checkout
    By crl in forum Addon Payment Modules
    Replies: 2
    Last Post: 24 Sep 2007, 01:17 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR