gturri / nspages

Plugin for dokuwiki - Display tables of content
http://www.dokuwiki.org/plugin:nspages
GNU General Public License v2.0
25 stars 24 forks source link

Fatal error - deprecated PHP syntax in printerNice.php on line 97 #119

Closed SabineSW closed 3 years ago

SabineSW commented 3 years ago

Hi,

after an upgrade of PHP from 8.0.9 to 8.0.11 dokuwiki (hogfahter) displays blank pages.

In /var/log/apache2/error.log: Got error 'PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /data/httpd/wiki/lib/plugins/nspages/printers/printerNice.php on line 97'

In the private function _uniord($c) the curly braces {} should be replaced with square brackets [].

nspages is not the only plugin affected...

gturri commented 3 years ago

Thanks for this detailed bug report. I'll try to take the time to apply, test, and release the fix in the next few days.

Le dim. 17 oct. 2021 à 10:13, SabineSW @.***> a écrit :

Hi,

after an upgrade of PHP from 8.0.9 to 8.0.11 dokuwiki (hogfahter) displays blank pages.

In /var/log/apache2/error.log: Got error 'PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /data/httpd/wiki/lib/plugins/nspages/printers/printerNice.php on line 97'

In the private function _uniord($c) the curly braces {} should be replaced with square brackets [].

nspages is not the only plugin affected...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gturri/nspages/issues/119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLK6JO54NUMFE2KQ72WMLUHKATBANCNFSM5GERKSTA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SabineSW commented 3 years ago

Thank you!