[pmwiki-users] preg_replace errors

Patrick R. Michaud pmichaud at pobox.com
Wed Dec 21 15:53:35 CST 2005


On Wed, Dec 21, 2005 at 04:45:53PM -0500, dan_mcclory at goodyear.com wrote:
>    This error occurs when clicking on the "edit" link:
> 
>    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
>    /opt/Lab/users/mtl/web/TechDocumentation/pmwiki-2.1.beta5/pmwiki.php(1023)
>    : regexp code on line 3
>    Fatal error: preg_replace() [function.preg-replace]: Failed evaluating
>    code: CondText($pagename,PSS('if e_preview'),PSS(' !!Preview
>    `Main.HomePage ''''''Page is unsaved'''''' (:e_preview:) ---- ''''''End of
>    preview -- remember to save''''''\\ [[#top | Top ]] ')) in
>    /opt/Lab/users/mtl/web/TechDocumentation/pmwiki-2.1.beta5/pmwiki.php on
>    line 1023

You're correct that the quotes don't appear to be escaped properly,
but I've never actually seen this happen this way.  Do you know
what version of PHP your server is running?

Pm




More information about the pmwiki-users mailing list