Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Location
    NC
    Posts
    47
    Plugin Contributions
    0

    Default Parse time not showing in footer, but queries and query time do

    I've enabled the "Display the page parse time" feature from within admin>configuration>logging, but for some reason it's only showing a dash in the footer of my page for parse time. However, the number of queries and query time show up just fine. Here's an example:

    Parse Time: - Number of Queries: 230 - Query Time: 0.045555980972291

    Any idea how I can get it to show the actual parse time?

    Thanks,

  2. #2
    Join Date
    Jan 2004
    Posts
    58,258
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Parse time not showing in footer, but queries and query time do

    What version of Zen Cart?
    What addons/contributions/mods have you installed?
    What template is your site based on?
    What customizations have you made to your footer?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2005
    Location
    NC
    Posts
    47
    Plugin Contributions
    0

    Default Re: Parse time not showing in footer, but queries and query time do

    Version: ZenCart 1.3.5
    Addons: Image Handler2
    Template: Custom version done by our designer. I assume based on the default template.
    Footer changes: Again, custom. However, I copied and pasted the following config lines into the tpl_main_page.php

    Code:
    <?php
      if (DISPLAY_PAGE_PARSE_TIME == 'true') {
    ?>
    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo
     $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
    <?php
      }
    ?>
    Was there something else I missed in the original tpl_main_page.php file? (The site is the same as in my signature, if you want to see firsthand)

    Thanks,

  4. #4
    Join Date
    Jan 2004
    Posts
    58,258
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Parse time not showing in footer, but queries and query time do

    If you removed this from your template, you will not have the footer actions running properly, and thus will display no information:
    Code:
    <?php
     /**
      * prepares and displays footer output
      *
      */
      require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2005
    Location
    NC
    Posts
    47
    Plugin Contributions
    0

    Default Re: Parse time not showing in footer, but queries and query time do

    Thanks Dr. Byte, that did it!

 

 

Similar Threads

  1. Queries Overloading Server
    By kaos in forum General Questions
    Replies: 16
    Last Post: 15 Jun 2006, 04:31 AM

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
  •