[pmwiki-users] Fwd: MarkupExtensions throwing 500 error on DropCaps
Patrick R. Michaud
pmichaud at pobox.com
Tue Mar 20 19:26:12 CDT 2007
On Tue, Mar 20, 2007 at 07:21:50PM -0400, the Other michael wrote:
> and if disable the drop-caps, everything is happy again
>
> $MarkupExtensions['A;'] = false;
> @#$*@#*&)*
>
> I don't have a dedicated server, so I have no access to error
> messages. Anybody have any ideas?
It looks to me as though the drop-caps pattern has the potential
for an infinite recursion in it, or at least a very deep one.
By any chance is your server running PHP 5.2.0 or later?
PHP 5.2.0 introduced a number of changes to PCRE regular
expression handling. Perhaps your service provider upgraded
PHP recently.
Anyway, in the recipe, try changing lines 321-322 (or thereabouts) from
Markup('A;','block','/^([[:upper:]]);(([^;&]*(&[^;]+;)*)*);(.*)$/',
'<:block><p class=\'drop\'>$1<span class=\'smallcaps\'>$2</span>$5</p>');
to
Markup('A;','block','/^([[:upper:]]);((?:&\\w+;|[^;])*);(.*)$/',
'<:block><p class=\'drop\'>$1<span class=\'smallcaps\'>$2</span>$3</p>');
and see if that fixes the problem.
Pm
> ---------- Forwarded message ----------
> From: the Other michael <xraysmalevich at gmail.com>
> Date: Mar 20, 2007 4:57 PM
> Subject: MarkupExtensions throwing 500 error on DropCaps
> To: pmwiki-users at pmichaud.com
>
>
> Have I corrupted my installation, or has something changed on my
> server? there are more bizarre behaviors today....
>
> http://www.pmichaud.com/wiki/Cookbook/MarkupExtensions
>
> is working, but throwing "Error 500 - Internal server error" on pages
> with the D;rop caps markup;
>
> Other extensions are rendering just fine, such as footnotes:
> http://www.xradiograph.com/wrottings/PrantedMutter/SloughOfDespond
>
>
> disabling the extension allows the pages to come back; adding D;rop
> caps; to another page generates the same error.
>
> I added the CategoryIndex recipe
> http://article.gmane.org/gmane.comp.web.wiki.pmwiki.user/29487/match=list+categories
> today, but disabling that makes no difference.
>
> the markup was working yesterday..... nothing else installed since
> Friday. I've disabled other extensions, but none seems to have any
> interfering effect.
>
> flummoxed....
>
> --
> -the Other michael
>
> --
> -the Other michael
> http://www.xradiograph.com/interference
> http://www.xradiograph.com/wrottings
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list