[pmwiki-devel] Blank home page

Petko Yotov 5ko at 5ko.fr
Mon Oct 17 01:54:02 PDT 2022


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



More information about the pmwiki-devel mailing list