[TYPO3-dev] Typo3 4.2 Cache Bug?

Peter Russ peter.russ at 4many.net
Tue Apr 29 16:02:40 CEST 2008


--- Original Nachricht ---
Absender:   Klaus Hinum
Datum:       28.04.2008 15:12:
> Hi group,
> 
> I just stumbled upon an error (or missing feature ;)) of the page cache 
> in typo3 4.2. It looks like the cache writing is aborted when it comes 
> to special chars (or html entities).
> 
> In my pageteaser extension (self made) i read the abstract field (which 
> also contain some html entities like <b>) of subpages. In our foreign 
> language sections (pl, it, es, ...) the cached output of the page ends 
> somewhere at a special char. The uncached preview shows without any 
> error message or problem.
> For example:
> 
> simple page (the cached output):
> 
> <html>...<body>...<p>abctract with special char:
> 
> simple page (uncached):
> 
> <html>...<body>...<p>abctract with special char:á</p><p> ... </body></html>
> 
> Database, and page are all set to UTF-8 and the special chars are 
> displayed correctly. The plugins worked with 4.1.5 and below and also 
> work in english (where there are no special chars). Perhaps it is also a 
> phenomenon with the substr() function that is used on the abstract field 
> to shorten it.
> 
> Can I somehow see if there was an error in writing the page cache? This 
> phenomenon happenes on my live server and on the local server. 
> Furthermore, i could sort the problem with encoding the abstract with 
> (htmlspecialchars and removing the html entities).
> 
> Greetings
> Klaus

We figured out on other circumstances weird problems with the cache. 
After analysing that it figured out that these were caused due to a 
problem with [SYS][setDBinit] in install.
As we fixed that everything worked as expected.

Perhaps that helps.

Regs. Peter.

-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
XING: http://www.xing.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list