<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I have pmwiki installed on a Synology NAS. Today I upgraded the software to version 5.0 - which has php version 5.5.9 <div><br></div><div>I now get numerous error messages <span class="Apple-tab-span" style="white-space:pre"> </span></div><div><br></div><div><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);">The /e modifier is deprecated, use preg_replace_callback instead in /volume1/web/RefPmWiki/pmwiki.php on line 1663</span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"></span></div><div><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);">Which is the else statement</span></div><div><span style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; background-color: rgb(247, 247, 247);"><span class="Apple-tab-span" style="white-space:pre"> </span></span></div><div><div>if ($p{0} == '/') {</div><div> if(is_callable($r)) $x = preg_replace_callback($p,$r,$x);</div><div> else $x=preg_replace($p,$r,$x);</div><div> }</div></div><div><br></div><div>changing the preg_replace as suggested would make the test irrelevant.</div><div><br></div><div>Any help would be appreciated.</div><div><br></div><div>Kind regards</div><div><br></div><div>David Goudie</div><div><br></div><div><br></div></body></html>