Forums / Basic Configuration / Parse time not showing in footer, but queries and query time do

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

Locked

Started by kevad on 28 Sep 2006, 7:13 PM · Views: 4,078

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
28 Sep 2006, 7:13 PM
#1
kevad avatar

kevad

New Zenner

Join Date:
Jul 2005
Location:
NC
Posts:
42
Plugin Contributions:
0

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,

Baby Blurbs - A unique baby boutique!

29 Sep 2006, 12:36 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.

29 Sep 2006, 12:42 AM
#3
kevad avatar

kevad

New Zenner

Join Date:
Jul 2005
Location:
NC
Posts:
42
Plugin Contributions:
0

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

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

Baby Blurbs - A unique baby boutique!

29 Sep 2006, 1:01 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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:```

<?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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.

29 Sep 2006, 1:24 AM
#5
kevad avatar

kevad

New Zenner

Join Date:
Jul 2005
Location:
NC
Posts:
42
Plugin Contributions:
0

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

Thanks Dr. Byte, that did it!

Baby Blurbs - A unique baby boutique!