<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2900.5969" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>PHP Version 5.3.3<BR><BR>pmwiki-2.2.27<BR><BR><BR><BR>When
tried to use this recipe <BR>(<A
href="">http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus</A>) error pop
up.<BR><BR>Exact steps that lead to the error:<BR>1) Download markupexprplus.php
into 'cookbook' folder<BR>2) Add to
config.php<BR>include_once("$FarmD/cookbook/markupexprplus.php");<BR>3) Open
path pmwiki.php?n=Site.LocalTemplates?action=edit in web browser and <BR>add
this (admin password was requested):<BR><BR>(:if
false:)<BR>[[#threecol]]<BR>(:template first {=$Group}:)<BR>!![[{=$Group}/]]
{(setq grouppagecount 0)}<BR>(:table width=100%:)<BR>(:cellnr
width=30%:)<BR>(:template each:)<BR>[[{=$Group}/{=$Name}]] {(setq grouppagecount
(add {$grouppagecount} 1))}<BR>(:if2 equal {(mod {$grouppagecount} 3)} 0
:)<BR>(:cellnr width=30%:)<BR>(:else2:)<BR>(:cell
width=30%:)<BR>(:if2end:)<BR>(:template last
{=$Group}:)<BR>(:tableend:)<BR>[[#threecolend]]<BR>(:ifend:)<BR><BR><BR>After
clicking 'save', this errors pop up:<BR><BR>Warning: Division by zero in
<BR>J:\home\wiki\www\pmwiki\cookbook\markupexprplus.php(139) : eval()'d code on
<BR>line 1<BR><BR>Warning: Cannot modify header information - headers already
sent by (output <BR>started at
J:\home\wiki\www\pmwiki\cookbook\markupexprplus.php(139) : <BR>eval()'d code:1)
in J:\home\wiki\www\pmwiki\pmwiki.php on line 1130<BR><BR><BR><BR>Any ideas as
to how to fix it would be appreciated. <BR></BODY></HTML>