Page 1 of 1
[SOLVED] Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 11:28 am
by kochiro
After the last content block in my templates I am seeing something that looks like a random comment block which is outputting numbers. I can't tell where this is coming from.
Here are the items:
The problem with this is that whatever is generating it is also outputting an extra < before the comment which shows up on the page output.
I have no idea what might be causing this and the extra < is only showing up on 6 of the pages, not all. I have gone through all the extra content that I created and haven't been able to find anything that would be causing this. I also have no idea what to search on to find out if this has been covered before so please forgive me if it is a known issue.
Any insight would be greatly appreciated.
Thanks,
Jay
Re: Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 11:56 am
by RonnyK
Jay,
these are defaultly shown in the source.
They mean....
Time taken / # queries processed / Mem used / Max mem. used.
The extra < is not caused by this AFAIK....
You could suppress this 4 numbers from being posted in the source, as the parameter could be set in the config.php to suppress this.
Ronny
Re: Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 12:25 pm
by kochiro
Ronny, yes they are definitely in the source. I was thinking it looked something like counts and was going to use it as a vector to try to find out where the extra < might be coming from.
I don't see a setting in the config for it, is it something that I have to add?
Thanks,
Jay
Re: Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 1:17 pm
by RonnyK
The 4 are shown by default, to NOT show it, you can set....
$config['hide_performance_info']
in the config.php.
Ronny
Re: Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 3:25 pm
by kochiro
Thanks and you were right that the extra > wasn't caused by that code, I'm still at a loss as to where it might possibly be coming from though.
I've sent you a PM with the contents of my template for the ongoing investigation to the reported problems with the Print module in 1.6.5 and you can see there that the last thing is a call to my footer UDT and then my closing body and html tags. The footer code ends with a closing javascript tag for Google Analytics so there is something that is inserting a > between the footer and the closing body tag.
To further complicate matters it is only happening on some pages that use this template, not all of them. I have compared the pages and the only difference is the text that is on the page itself which only has minor formatting such as h3 and p tags on it.
Any other ideas on where I could look?
Thanks,
Jay
Re: [SOLVED] Numeric strings appearing in a comment
Posted: Tue Sep 15, 2009 7:25 pm
by kochiro
The resolution to this was that in my template I had {content} and then in my page content there were instances of . I removed the tags from the template and changed the empty tags in the content to double
tags and that resolved it. I'm not sure which of the two changes actually caused the fix because the error was somewhat random in that some pages with empty tags didn't have the extra > but doing both fixed all pages.