Author |
Message |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Mon Sep 25, 2017 8:09 am Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
Ahhhh, I see what you were getting at now. OK, yes, that makes sense. The sitemap routine I am running runs off the template_redirect () action hook which I chose precisely because there is supposed t ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sun Sep 24, 2017 6:24 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
I updated my post, it was definitely not a Smarty problem, so there is no need to try the buffer clean thing you suggested, right?
I want to get to the bottom of it. And no, it's not cleaning, it's c ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sun Sep 24, 2017 4:50 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
Can you please try this:
while(ob_get_level() > 0)
{
ob_end_clean();
}
$smarty->display('sitemap.tpl', $matches[1]);
die;
…with your ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sun Sep 24, 2017 3:30 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
If you mean http://php.net/header function, you can't output content using it.
I didn't express myself very well, what I meant was using header to set the headers and then echoing the content, some ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sun Sep 24, 2017 12:14 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
I am outputting the contents of the template directly using a headers() directive That's EXACTLY how the <head/> tag is inserted.
Adds a <head/> tag in the middle of my output..? Have y ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sun Sep 24, 2017 10:46 am Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
Thanks for the thoughts, I will investigate further and report what I found.
I don't THINK it's Wordpress because I am outputting the contents of the template directly using a headers() directive a ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sat Sep 23, 2017 8:21 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
Can you find the compiled version of this template?
The compiled template has a lot of actual PHP in it, and you may be able to determine if <head/> is appearing there, and where it may be ge ... |
Topic: XML (sitemap) bug [RESOLVED - not Smarty problem] |
markowe
Replies: 15
Views: 13330
|
Forum: General Posted: Sat Sep 23, 2017 3:34 pm Subject: XML (sitemap) bug [RESOLVED - not Smarty problem] |
NOT A SMARTY PROBLEM, SEE BELOW
I have this code:
{!if $IsIndex !}<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemap ... |
Topic: include file = ... is adding unwanted <p> tags!? |
markowe
Replies: 3
Views: 5291
|
Forum: General Posted: Wed Apr 10, 2013 9:30 am Subject: include file = ... is adding unwanted <p> tags!? |
I suspect that other CSS definitions do add the <p> </p> tags.
It can't be a Smarty problem.
Thanks - do you have any ideas what CSS definitions might do this? I can only think of &quo ... |
Topic: include file = ... is adding unwanted <p> tags!? |
markowe
Replies: 3
Views: 5291
|
Forum: General Posted: Fri Apr 05, 2013 7:33 pm Subject: include file = ... is adding unwanted <p> tags!? |
I have a template which includes inline CSS generated by a "sub-template" - most easily explained like this:
<style type = "text/css">{!include file = "main.css. ... |
Topic: Compile path is too long for Windows/IIS environment? |
markowe
Replies: 6
Views: 17830
|
Forum: Installation and Setup Posted: Sun Nov 11, 2012 8:22 pm Subject: Compile path is too long for Windows/IIS environment? |
"C_HostingSpaces_username_website_com_wwwroot_wp_content_plugins_pluginname_templates_Default_black_" of the filename must have been generated by a compile_id.
With Smarty2 a compile_id ... |
Topic: Compile path is too long for Windows/IIS environment? |
markowe
Replies: 6
Views: 17830
|
Forum: Installation and Setup Posted: Sat Nov 10, 2012 9:56 pm Subject: Compile path is too long for Windows/IIS environment? |
What does make the filename so long? Do you use a compile_id?
Please provide an example of the filename.
The filename is created by Smarty AFAIK, i.e the path is supplied by me via $smarty->set ... |
Topic: Compile path is too long for Windows/IIS environment? |
markowe
Replies: 6
Views: 17830
|
Forum: Installation and Setup Posted: Sat Nov 10, 2012 2:50 pm Subject: Compile path is too long for Windows/IIS environment? |
Hi, I have an issue with a customer setup running Smarty on PHP/Windows/IIS. This is pretty rare, but I have to try to fix the problem. Smarty is throwing this error:
Fatal error: Uncaught exce ... |
Topic: So wait, how do I cache the output of dynamic pages? |
markowe
Replies: 10
Views: 12852
|
Forum: General Posted: Tue Apr 05, 2011 6:29 pm Subject: So wait, how do I cache the output of dynamic pages? |
This sounds strange. If you call a page with a new cache_id Smarty does not touch existing cache files with other cache_id's.
Hmm, I didn't figure it out, but I worked around the problem by activat ... |
Topic: So wait, how do I cache the output of dynamic pages? |
markowe
Replies: 10
Views: 12852
|
Forum: General Posted: Mon Apr 04, 2011 12:19 pm Subject: So wait, how do I cache the output of dynamic pages? |
Thanks for this reply, I only saw it MUCH later for some reason. This $cache_id wasn't mentioned in the main section on caching so I think that is how I failed to stumble on it.
But I have an issue ... |
|