<div dir="ltr">After a private correspondence with Peter Bowers (which I thought was on this list but apparently was just to his private email and wasn't sent to here):<div><br></div><div>We solved this using the following approaches:</div><div><br></div><div><ol style="font-size:12.8px"><li style="margin-left:15px">Change any Markup whose third argument had a /e to Markup_e (and remove the /e)</li><li style="margin-left:15px">Change any occurrence in the entire text of '$1' or '$2' to \$m[1] or \$m[2]</li></ol><div><span style="font-size:12.8px">And it works now.  Huzzah!</span></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 1, 2016 at 1:22 PM, Alexander Cherry <span dir="ltr"><<a href="mailto:lxndrc@gmail.com" target="_blank">lxndrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">since the author has abandoned the script, and apparently using pmwiki entirely, I'm trying to fix the cookbook recipe called "SlimTableOfContents"</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">As it is written, it is giving that preg_replace_callback error and a diagnostic (action ruleset) gave me this:</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px"><code style="font-size:0.9em;font-family:"Lucida Console","Andale Mono","Courier New",Courier,monospace">toc >nl1 B>><>> ! file: /home/public/confessional/<wbr>cookbook/slimtoc.php, line: 167, pat: /\(:([#\*])?toc:\)(.*)$/se</code></p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">checking line 167 showed me a function using Markup changing Markup to Markup_e gave me yet another error, in another file:</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px"><code style="font-size:0.9em;font-family:"Lucida Console","Andale Mono","Courier New",Courier,monospace">toc >nl1 B>><>> ! file: /home/public/confessional/<wbr>pmwiki.php, line: 1671, pat: /\(:([#\*])?toc:\)(.*)$/se</code></p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">But I can't figure out how to "fix" line 1671 of pmwiki.php  (nor am I sure if it needs fixing, since this error disappears when I remove the include line from the config)</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">If it helps I'm using version 2.2.90</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">---</p><p style="margin-top:1.33em;margin-bottom:0px;color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:14.6667px;line-height:19.5067px">Can anyone give me any guidance?</p></div>
</blockquote></div><br></div>