[pmwiki-devel] Blank home page

1 view
Skip to first unread message

Simon

unread,
Oct 17, 2022, 4:21:45 AM10/17/22
to PmWiki Devel Mailing List
I've just been notified that https://ttc.org.nz/pmwiki/pmwiki.php displays a page with no content (but does show the skin), but that, say  Tararua Tramping Club | Tararua Tramping Club (ttc.org.nz) (the default) works just fine.

I've no idea if this happened recently or a while ago, as my bookmarks generally include the full path. I did do the latest upgrade recently.

A quick look at trouble shooting suggests the character sets, but I'm not sure thats this issue.
I am seeing this error
[17-Oct-2022 08:17:47 UTC] PHP Warning:  preg_replace_callback(): Compilation failed: invalid range in character class at offset 256 in /home/ttcorgnz/public_html/pmwiki/pmwiki.php on line 2183
Any thoughts would be most welcome

ngā mihi

Simon

Petko Yotov

unread,
Oct 17, 2022, 4:54:49 AM10/17/22
to Simon, PmWiki Devel Mailing List
A character class range in a regular expression is something in brackets
like [A-Z]. An invalid character class may look like [Z-A], while in the
code page the "Z" character is not before but after the "A" character.
Usually it is not that obvious, but it would be in brackets with a dash
between the wrong characters.

If you want to match an actual dash (minus) rather than identify a
character range, you need to place it first or last thing, like:
[-AZ] or [AZ-]

To track the error about the character class range, see this question on
the page Troubleshooting:

"How to track errors and know if they come from the PmWiki core or from
a local configuration or addon/recipe?"

https://www.pmwiki.org/wiki/PmWiki/Troubleshooting

I would also check the $MakePageNamePatterns array and generally all
locally configured core variables that contain "Patterns".

Petko

--
If you upgrade : https://www.pmwiki.org/Upgrades


On 17/10/2022 10:20, Simon wrote:
> I've just been notified that https://ttc.org.nz/pmwiki/pmwiki.php
> displays a page with no content (but does show the skin), but that,
> say Tararua Tramping Club | Tararua Tramping Club (ttc.org.nz) [1]
> (the default) works just fine.
>
> I've no idea if this happened recently or a while ago, as my bookmarks
> generally include the full path. I did do the latest upgrade recently.
>
> A quick look at trouble shooting suggests the character sets, but I'm
> not sure thats this issue.
> I am seeing this error
> [17-Oct-2022 08:17:47 UTC] PHP Warning: preg_replace_callback():
> Compilation failed: invalid range in character class at offset 256 in
> /home/ttcorgnz/public_html/pmwiki/pmwiki.php on line 2183

_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
Reply all
Reply to author
Forward
0 new messages