Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

output problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
rdalverny
Smarty Rookie


Joined: 03 Oct 2003
Posts: 8

PostPosted: Sun Oct 05, 2003 6:26 pm    Post subject: output problem Reply with quote

Hi,

I have encoutered some problems with Smarty 2.6.0 RC1 : in short, HTTP headers sometimes appear on the rendered web page, at the beginning of the page, plus leading and ending 0's ; sometimes (often, actually) those do not appear.

My problem is : where do this stuff come from, and how can I eliminate it ?

I have checked my code, which is fairly obvious (new, assign, display) ; I have set up caching (ttl of 4 hours), compile_check. Example of HTML code returned :
Code:
<html lang="fr">
  <head>
  <title></title>
  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
  <link href="/style/style.css" media="screen" type="text/css" rel="stylesheet">
</head>
<body>0

HTTP/1.1 200 OK
Date: Fri, 03 Oct 2003 16:17:55 GMT
Server: VHFFS 2.0 / Apache/2.1.0-dev (Unix)
X-Powered-By: PHP/4.2.2
Keep-Alive: timeout=15, max=92
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

1000

<!-- page stuff -->

0

0

</body>
</html>


I have seen this several times over a week of testing, several times a day.
Could this be a bug in RC1 (I just hope so), a misuse of Smarty, a too loaded server case, a misconfigured server case, or something else ?

Moreover (perhaps another class of a problem), when loading a page, my browser sometimes waits to time-out ; when time-out occurs, the page is displayed, but without applying CSS rules which are loaded with a link rel="stylesheet" in my templates ; inline CSS rules are fine. Does someone have any idea this could be solved (apart from putting every rules inline Wink ).

Thanks a lot for any help.

romain.[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP