<div dir="ltr">Thank you for the instructions. I found the problem (the phpinc recipe), fixed it in my installation, and submitted a patch to the author. Would it perhaps be a good idea to put these instructions somewhere on the wiki so that others can benefit from them as well?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 16, 2014 at 2:25 AM, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wolfgang Faust writes:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
« HTML content follows »<div class=""><br>
<br>
<br>
<br>
My PmWiki installation is outputting a lot of error messages like the following:<br>
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/wolf-new/public_html/<u></u>pmwiki/pmwiki.php on line 1662<br>
This error was supposedly fixed in version 2.2.56; I'm running the latest (2.2.61). I presume that this error message is the result of some customization I have, but I don't know enough about the internals of PmWiki to find out what. How do I track down what is causing this error?<br>

</div></blockquote>
<br>
First, double-check you have updated all core files, pmwiki.php and all files in the scripts/ directory.<br>
<br>
See also if in your cookbook and pub/skins directories you have the latest recipes and skins that were published by their maintainers on <a href="http://pmwiki.org/wiki/Cookbook" target="_blank">pmwiki.org/wiki/Cookbook</a>.<br>

<br>
Next, in config.php disable all recipes: included files from the cookbook directory, or a custom skin, or any line starting with "Markup(". You can insert # at the beginning of a line to disable it.<br>
<br>
Then test the wiki: if you have disabled everything, the warning message should disappear.<br>
<br>
Next, re-enable your customizations one after another, each time testing the wiki. If at some point the warnings re-appear, you'll know that the customization you just enabled is not compatible with PHP 5.5.<br>
<br>
You can contact the authors of the broken recipes and (kindly) ask them to update their recipes for PHP 5.5 - recent PmWiki versions add new helper functions which make it easy. See <a href="http://pmwiki.org/CustomMarkup" target="_blank">http://pmwiki.org/CustomMarkup</a> .<br>

<br>
If you cannot have the recipes fixed by their authors, tell us and we'll try to fix them.<br>
<br>
Note that many hosting providers allow you to run different versions of PHP. See the documentation of your hosting plan to learn how to enable a PHP version earlier than 5.5.<br>
<br>
Finally, it is possible to suppress these warnings in PHP 5.5, by setting this line at the beginning of config.php:<br>
<br>
 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);<br>
<br>
This will work, but should be a temporary solution, left only until your recipes are fixed.<br>
<br>
Petko<br>
<br>
<br>
______________________________<u></u>_________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/<u></u>mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>This message has been encoded in 128ROT13 for security. If you are unable to view it, please consult an optometrist.
</div>