[pmwiki-users] MarkupExprPlus installation error

adm admolot at gmail.com
Tue Jul 12 05:04:59 CDT 2011


PHP Version 5.3.3

pmwiki-2.2.27



When tried to use this recipe 
(http://www.pmwiki.org/wiki/Cookbook/MarkupExprPlus) error pop up.

Exact steps that lead to the error:
1) Download markupexprplus.php into 'cookbook' folder
2) Add to config.php
include_once("$FarmD/cookbook/markupexprplus.php");
3) Open path pmwiki.php?n=Site.LocalTemplates?action=edit in web browser and 
add this (admin password was requested):

(:if false:)
[[#threecol]]
(:template first {=$Group}:)
!![[{=$Group}/]] {(setq grouppagecount 0)}
(:table width=100%:)
(:cellnr width=30%:)
(:template each:)
[[{=$Group}/{=$Name}]] {(setq grouppagecount (add {$grouppagecount} 1))}
(:if2 equal {(mod {$grouppagecount} 3)} 0 :)
(:cellnr width=30%:)
(:else2:)
(:cell width=30%:)
(:if2end:)
(:template last {=$Group}:)
(:tableend:)
[[#threecolend]]
(:ifend:)


After clicking 'save', this errors pop up:

Warning: Division by zero in 
J:\home\wiki\www\pmwiki\cookbook\markupexprplus.php(139) : eval()'d code on 
line 1

Warning: Cannot modify header information - headers already sent by (output 
started at J:\home\wiki\www\pmwiki\cookbook\markupexprplus.php(139) : 
eval()'d code:1) in J:\home\wiki\www\pmwiki\pmwiki.php on line 1130



Any ideas as to how to fix it would be appreciated. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110712/5cfe2096/attachment.html>


More information about the pmwiki-users mailing list