[pmwiki-users] Deprecated: Function create_function() in line 481 of pmwiki.php
5ko at 5ko.fr
Wed Feb 7 01:30:09 CST 2018
On 05/02/2018 14:00, Hans-Jürgen Godau wrote:
> the info on pmwiki.org/Troubleshooting says, the warning should be gone
> with the latest release.
> But even after upgrading to 2.2.107 I still get
> this warning, caused by the Function PCCF in pmwiki.php. How can I get
> of it without setting error_reporting to ~E_DEPRECATED?
Unless an addon, skin, recipe or local customization calls the functions
PCCF(), Markup_e()/PPRA() with evaluated code, create_function(),
PPRE(), or create a custom pagelist sort orders the old way, indeed the
warning should be gone.
If I have missed such a call from the PmWiki core, I'll fix it
immediately - more information on what steps you did will help me
experience the warning myself and fix it.
If the PmWiki core does not raise a warning, see if the addons, skins,
recipes you use have a more recent PHP7.2-compatible version. You can
disable them all and re-enable them one after another to see which
one(s) trigger the warning.
I recently rewrote the documentation about making addons work with PHP
7.2 (and earlier), see the pages:
If this is insufficient or appears too complex, I will offer assistance
for updating recipes and skins for PHP 7.2.
More information about the pmwiki-users