Hello,
I have a new error that does not allow me to view the contents of the Wiki folder:
Php 8192: 30/04/20 10:59:22 am preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead /var/www/html/sgs/bin/lib/pmwiki/pmwiki.php 1502
Now, the line 1502 is inside the function MarkupToHTML:
...
[line 1486] function MarkupToHTML($pagename, $text, $opt = NULL) {
# convert wiki markup text to HTML output
global $MarkupRules, $MarkupFrame, $MarkupFrameBase, $WikiWordCount,
$K0, $K1, $RedoMarkupLine;
StopWatch('MarkupToHTML begin');
array_unshift($MarkupFrame, array_merge($MarkupFrameBase, (array)$opt));
$MarkupFrame[0]['wwcount'] = $WikiWordCount;
foreach((array)$text as $l)
$lines[] = $MarkupFrame[0]['escape'] ? PVSE($l) : $l;
$lines[] = '(:closeall:)';
$out = '';
while (count($lines)>0) {
$x = array_shift($lines);
$RedoMarkupLine=0;
$markrules = BuildMarkupRules();
foreach($markrules as $p=>$r) {
[line 1502] if ($p{0} == '/') $x=preg_replace($p,$r,$x);
#
# if ($p{0} == '/') $x=preg_replace_callback(
# $p,
# function($m) {return $r;},
# $x);
elseif (strstr($x,$p)!==false) $x=eval($r);
if (isset($php_errormsg))
{ echo "ERROR: pat=$p $php_errormsg"; unset($php_errormsg); }
if ($RedoMarkupLine) { $lines=array_merge((array)$x,$lines); continue 2; }
}
if ($x>'') $out .= "$x\n";
}
foreach((array)(@$MarkupFrame[0]['posteval']) as $v) eval($v);
array_shift($MarkupFrame);
StopWatch('MarkupToHTML end');
return $out;
}
...
I tried to modified the line 1502 with a new block (lines 1503->1507), ma do not work.
Any suggestions?
Grazie
Massimo
--
You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-groupwa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simple-groupware/6d1c08e8-0114-4756-85e8-97d3fb0233ba%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-groupwa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simple-groupware/1a82535d-7620-4770-a77b-4b8ca262b2ab%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-groupwa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simple-groupware/cd277ac6-14f2-41e9-b907-9ad738c3a0fb%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-groupwa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simple-groupware/943f529d-c169-46a9-a9e9-97e0fe72d453n%40googlegroups.com.