[pmwiki-devel] undefined array in $FmtPV[$var]

V.Krishn vkrishn4 at gmail.com
Thu Jan 19 07:31:04 PST 2023


ERROR:
2023/01/19 19:59:41 [error] 25181#25181: *904 FastCGI sent in stderr: 
"PHP message:
PHP Warning:  Undefined array key "qnp" in 
/tmp/pmwiki/2.2.145/pmwiki.php(1005) : eval()'d code on line 1PHP message:
PHP Warning:  Undefined array key "qn" in 
/tmp/pmwiki/2.2.145/pmwiki.php(1005) : eval()'d code on line 1" while 
reading response header from upstream,

TEST-BED:
Pmwiki Version: 2.2.145
Server: nginx-1.22.0
Php: php-fpm-8.0.19
Os: AlpineLinux(v3.16)

NOTE:
Above error is from "function PageVar()" and can currently be suppressed 
by changing the line from (not quite sure about it though),

if (@$FmtPV[$var]) return eval("return ({$FmtPV[$var]});");
TO
if (@$FmtPV[$var]) return @eval("return ({$FmtPV[$var]});");

Same issue with PmWiki-2.3.13 (line 1193).
Still trying to figure out if error can be fixed from my code.

Any suggestion appreciated.

-- 
Regards,
V.Krishn



More information about the pmwiki-devel mailing list