[pmwiki-users] Problem with install in new system - PHP 7 ?
Krait, Philippe
Philippe.Krait at thalesgroup.com.au
Mon Feb 29 05:30:56 CST 2016
Hi everyone,
I have run into a strange problem. I am moving my server to the latest version of Arch Linux. PmWiki always worked fine, but this time, when I try to access the site, I get a Server Error 500.
Looking at the Apache log, I have the following error:
[Mon Feb 29 12:17:55.953427 2016] [:error] [pid 1095] [client 60.225.91.106:47124<http://60.225.91.106:47124>] PHP Parse error: syntax error, unexpected '$m' (T_VARIABLE), expecting identifier (T_STRING) in /home/philippe/Dropbox/Chaos/pmwiki/pmwiki.php(466) : run
time-created function on line 1
And, looking at the code, it's in a function that I don't understand at all:
function PCCF($code, $template = 'default', $args = '$m') {
global $CallbackFnTemplates, $CallbackFunctions;
if (!isset($CallbackFnTemplates[$template]))
Abort("No \$CallbackFnTemplates[$template]).");
$code = sprintf($CallbackFnTemplates[$template], $code);
if (!isset($CallbackFunctions[$code])) {
$fn = create_function($args, $code);
if ($fn) $CallbackFunctions[$code] = $fn;
else StopWatch("Failed to create callback function: ".PHSC($code));
}
return $CallbackFunctions[$code];
By the way, this is with the latest version of PmWiki, 2.2.84 actually, in the previous version that I had, I had the same error on line 461 instead of 466).
I must also say that the php setup has changed a lot since my previous installation of Arch Linux. It is now using something called php7_module, instead of php5. I have tried to look at the differences, but honestly I am stumped, the code above is really too tough for me...
Thanks in advance,
Philippe
This message contains OPEN information that is not sensitive and can be freely accessed by people both inside and outside of the Thales Group
This email was classified by Krait, Philippe on Monday, 29 February 2016 10:30:56 PM
-------------------------------------------------------------------------
DISCLAIMER: This e-mail transmission and any documents, files and
previous e-mail messages attached to it are private and confidential.
They may contain proprietary or copyright material or information that
is subject to legal professional privilege. They are for the use of
the intended recipient only. Any unauthorised viewing, use, disclosure,
copying, alteration, storage or distribution of, or reliance on, this
message is strictly prohibited. No part may be reproduced, adapted or
transmitted without the written permission of the owner. If you have
received this transmission in error, or are not an authorised recipient,
please immediately notify the sender by return email, delete this
message and all copies from your e-mail system, and destroy any printed
copies. Receipt by anyone other than the intended recipient should not
be deemed a waiver of any privilege or protection. Thales Australia
does not warrant or represent that this e-mail or any documents, files
and previous e-mail messages attached are error or virus free.
-------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20160229/12300b00/attachment.html>
More information about the pmwiki-users
mailing list