Форумы / Cotonti / Core Labs / Archive / XTemplate 2.0

Brand new minimalistic implementation

tensh
#14132 13.07.2009 16:56
In case of very old plugins like "contactus" (which don't containg tags nor even templates), the following error appears during installation:

Warning: mb_strpos() [function.mb-strpos]: Offset not contained in string in /home/sth/site/system/xtemplate.class.php on line 85
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 27132033 bytes) in /home/sth/site/system/xtemplate.class.php on line 287

Edit:

Hmm, the same happens in other plugins... now I'm not that sure what might be the cause. Other plugin parts? Or something with ajax?

Edit2:

Xtemplate sometimes acts unstable... like it displays the beginning of page.tpl like this:
<!-<div class="mboxHD"><a href="news/">News</a>
It's because it doesn't accept foreign letters in ANSI coding as well.
Also, BOM-removing code doesn't work, header.tpl with BOM mark is not loaded at all.
UTF-8 tpls without BOM are displayed correctly. The same with ANSI coded tpl without special letters.
Отредактировано: tensh (13.07.2009 18:49, 15 лет назад)