01443: Various Wikitags not working on PHP 7.3

Summary: Various Wikitags not working on PHP 7.3
Created: 2019-09-16 09:44
Status: Closed
Category: PHP Compatibility
Version: 2.2.118
OS: Debian 10/Apache 2.4/PHP 7.3

Description: When upgrading my System to Debian 10 with Apache 2.4 and PHP 7.3 many tags including pretty basic ones like (:nl:), * Lists, html-Chars like  stopped working.

It seams like a problem caused by misinterpreted Newlines. Can this be caused by the new PCRE2?

An example can be seen here: https://www.zenziwerken.de/

Any help appreciated. DanielGross? September 16, 2019, at 09:44 AM

We test and use PmWiki on PHP 7.3 and 7.4, but we may have missed something. Does the latest PmWiki version without any local customization, no recipes, and the default skin, has that problem? If not, enable your recipes one after another and every time test the wiki - it is likely that you will find out which recipe(s) cause this. Look in the Cookbook to install more recent versions of the recipes or if there aren't, tell us and we'll fix these. --Petko September 16, 2019, at 10:01 AM

Thanks for the quick reply. I deactivated the most of the config.php rendering the page totally standard in terms of cookbooks and language. Unfortunately the problem persists. DanielGross? September 16, 2019, at 12:30 AM

This is perplexing, check if pmwiki.php and all files in the scripts/ directory have been correctly and fully copied to the server. Other than that, you appear to have the Subversion pre-release (I see $PmTOC) and not the latest 2.2.118, I wonder if you may have gotten some buggy revision. If you want me to look into the server with a temporary FTP or SSH account (read-write), please contact me at 5ko [snail] 5ko [period] fr (my public SSH key, only if you know what to do with it). --Petko September 16, 2019, at 11:10 AM

Thank you for the help! This was the right hint. First I set up a completely new Wiki. Resulting in a empty but working page. Than I redownloaded 2.2.118 and replaced the pmwiki.php and scripts folder. Now everything is back to normal. Probably I got carried away from the note "Update for PHP 7.4 "string offset with curly braces is deprecated"." in the ChangeLog. Couldn't find the difference between these versions that caused the problem. DanielGross? September 16, 2019, at 13:43 AM