<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I'm seeing two errors in pmwiki.php (on the webpage display) that are apparently related to PHP 7.2. I recently upgraded to the latter on my server (on which I also run WordPress).</div><div><br></div><div>These are:</div><div><br></div><div>1.</div><div><br></div><div>1a. Error message (quotes added):</div><div><br></div><div>"
<b>Deprecated</b>:  Function create_function() is deprecated in <b>/misc/32/000/115/128/8/user/web/<a href="http://donosborn.org/pmwiki/pmwiki.php">donosborn.org/pmwiki/pmwiki.php</a></b> on line <b>497</b>"</div><div><br></div><div>1b. Line 497:</div><div><br></div><div> $fn = create_function($args, $code);</div><div><br></div><div>1c. Possible fixes:</div><div><br></div><div>Not finding anything on PmWiki.org.</div><div><br></div><div>WordPress.org support has a fix for this (I found this page by chance in a web search; my WP installation has no issues): <a href="https://wordpress.org/support/topic/fix-for-create_function-deprecated-in-php-7-2/">https://wordpress.org/support/topic/fix-for-create_function-deprecated-in-php-7-2/</a>  Might this fix be adapted to line 497 in pmwiki.php?</div><div><br></div><div>2.</div><div><br></div><div>2a. Error message
(quotes added): <br></div><div><br></div><div>"
<b>Warning</b>:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in <b>/misc/32/000/115/128/8/user/web/<a href="http://donosborn.org/pmwiki/pmwiki.php">donosborn.org/pmwiki/pmwiki.php</a></b> on line <b>1790</b>

"</div><div><br></div><div>2b. Lines 1789-1790: <br></div><div><br></div><div>        if (is_callable($r)) $x = preg_replace_callback($p,$r,$x);<br>        else $x=preg_replace($p,$r,$x);<br><br></div><div>2c.
 Possible fixes: <br></div><div><br></div><div>To a layman, it looks like the two lines in pmwiki.php are designed to respond to different versions of PHP. Should I just clip off line 1790 or do something else?</div><div><br></div><div><br></div><div>Thank you in advance for any help or ideas on this.</div><div><br></div><div>Don Osborn<br></div><div><br></div><div><br></div></div></div></div></div>