unexpected T_FUNCTION in pagebs.fop2buttons.php on line 468
Hello
I have Elastix 2.5 and I upgraded fop2 from version 2.25 to 2.31.29, after change some config files I have the extensions panel running again , but the page /fop2/admin/pagebs.fop2buttons.php is not loading and I can't edit the buttons.
The apache log says this:
PHP Parse error: syntax error, unexpected T_FUNCTION in /var/www/html/fop2/admin/pagebs.fop2buttons.php on line 468, referer: https://adomain.com/fop2/admin/pagebs.fop2groups.php
Comments
Hello
Same problem here. Could you solve it?
Regards,
I'ts a problem with the php version. preg_replace_callback doesn't support inline undeclared callback
Solved, trying to touch the minimal code :
Go to fop2/admin/pagebs.fop2buttons.php and in line 468 replace with this:
Then at the end of the file put this:
Eloi, It worked perfectly.
Thanks&Regards