[pmwiki-users] Deprecated: Function create_function() in line 481 of pmwiki.php

Hans-Jürgen Godau juergen at godau-witten.de
Thu Feb 8 09:10:18 CST 2018

Thank you for your hints. I finally found the offending places/recipes. One
(possible) hint: I undefined the Markup_e definition in pmwiki.php to get
the stack-trace. Otherwise I would have missed one call...

Is it correct that there is still a call to Markup_e in scripts/vardoc.php?

Best regards,

2018-02-07 8:30 GMT+01:00 Petko Yotov <5ko at 5ko.fr>:

> 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 rid
>> 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:
>   http://www.pmwiki.org/wiki/PmWiki/Functions#PCCF
>   http://www.pmwiki.org/wiki/PmWiki/Functions#PPRE
>   http://www.pmwiki.org/wiki/PmWiki/CustomMarkup
>   http://www.pmwiki.org/wiki/PmWiki/CustomPagelistSortOrder
> If this is insufficient or appears too complex, I will offer assistance
> for updating recipes and skins for PHP 7.2.
> Petko
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20180208/810e418e/attachment.html>

More information about the pmwiki-users mailing list