Re: [pmwiki-users] Deprecated: Function create_function() in line 481 of pmwiki.php
On 08/02/2018 16:10, Hans-Jürgen Godau wrote: Thank you for your hints. I finally found the offending places/recipes. One If these recipes are published on the Cookbook you can mention this, and maybe how you fixed it, on their talk pages. (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? This call doesn't raise a warning because the 4th argument is a callable function name, not PHP code to be evaluated in PCCF()/create_function(). In that case Markup_e() just calls Markup(). But for consistency, I'll change it to Markup() for the next version. Thanks, Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Deprecated: Function create_function() in line 481 of pmwiki.php
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, jürgen 2018-02-07 8:30 GMT+01:00 Petko Yotov <5...@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@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Deprecated: Function create_function() in line 481 of pmwiki.php
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@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users