Nepherim / Blix

Port of the Blix skin to the PmWiki platform.
2 stars 1 forks source link

Not compatible with newer versions of PHP? #1

Open dhowe opened 9 years ago

dhowe commented 9 years ago

When I apply this skin to a working pmwiki installation with PHP5.6, I get the following error:

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Library/WebServer/Documents/pmwiki/pmwiki.php on line 1676

The pmwiki documentation says that the following about the line #:

"This is caused by a change in PHP version 5.5 for the preg_replace() function. PmWiki no longer relies on the deprecated feature since version 2.2.56 (it is recommended to upgrade to the latest version) but many recipes do. Note that even if the warning points to a line in pmwiki.php, the problem comes from a local configuration or recipe."

dhowe commented 9 years ago

The following markup rules appear to be incompatible with PHP5.5 and above:

nosearch         directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 47, pat: /\(:nosearch:\)/ei
nofooter         directives       B>>>=            
noheader         directives       B>>>=            
spacewikiwords   directives       B>>>=            
linkwikiwords    directives       B>>>=            
description      directives       B>>>=            
notitle          directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 50, pat: /\(:notitle:\)/ei
keywords         directives       B>>>=            
title            directives       B>>>=            
messages         directives       B>>>=            
comment          directives       B>>>=            
linebreaks       directives       B>>>=            
notitlegroup     directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 49, pat: /\(:notitlegroup:\)/ei
noleft           directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 39, pat: /\(:noleft:\)/ei
noright          directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 41, pat: /\(:noright:\)/ei
notabs           directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 45, pat: /\(:notabs:\)/ei
pagelist         directives       B>>>=            
noaction         directives       B>>>=            ! file: /Library/WebServer/Documents/cms3/pub/skins/blix/skin.php, line: 43, pat: /\(:noaction:\)/ei

[!] Markup rules possibly incompatible with PHP 5.5 or newer.
    Please contact the recipe maintainer for update
    or see www.pmwiki.org/wiki/PmWiki/CustomMarkup
Nepherim commented 8 years ago

Now fixed.