PITS /
01510: Deprecated: preg_replace(): Passing null to parameter #3
Summary: Deprecated: preg_replace(): Passing null to parameter #3
Created: 2024-07-31 13:26
Status: Closed, fixed for 2.2.36
Category: Bug
From: ooioo
Assigned:
Priority: 1
Version: 2.3.35
OS: ubuntu 24.03 / PHP 8.3.6
Description: Hi, I recently activated php error log, and I can see at the top of all my wiki pages :
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wikihome/pmwiki.php on line 1504
in pmwiki.php, line 1504 is the last one of :
function XLPage($lang,$p,$nohtml=false) {
global$TimeFmt
,$XLLangs
,$FarmD
,$EnableXLPageScriptLoad
; $page = ReadPage($p, READPAGE_CURRENT); if (!$page) return; $text = preg_replace("/=>\\s*\n/",'=> ',@$page['text']);
I have seen this old issue : https://www.pmwiki.org/wiki/PITS/01478
This message appears also on my local PmWiki group pages.
That must be something in my configuration, but what...
Thanks for PmWiki, it's great !
Pierre ooioo
Thanks for the report, should be fixed for next version. --Petko