Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_function is depricated in main.inc.php #1

Open
jheinitz opened this issue Jan 7, 2020 · 0 comments
Open

create_function is depricated in main.inc.php #1

jheinitz opened this issue Jan 7, 2020 · 0 comments

Comments

@jheinitz
Copy link

jheinitz commented Jan 7, 2020

Hello,

I have read that you're no lnoger developping for Piwigo. However, this should be more like a documentation if someone else faces the issue. When I enter an entry in the guestbook, I receive a message on the top of my gallery page:

Deprecated: Function create_function() is deprecated in /var/www/plugins/comments_blacklist/main.inc.php on line 67

I changed the line in main.inc.php
from:
$blacklist = array_map(create_function('$w', 'return preg_quote($w);'), $blacklist);

to:
$blacklist = array_map(function($w) { return preg_quote($w); }, $blacklist);

This solves the issue for me.

Best regards

Jens

Versions used:
Piwigo 2.10.1
Betriebssystem: Linux
PHP: 7.3.11-1
MySQL: 5.5.5-10.4.11-MariaDB-1:10.4.11
Grafikbibliothek: GD 2.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant