[pmwiki-users] Problems with AttachDelete Cookbook after upgrade to PHP 8.2
Petko Yotov
5ko at 5ko.fr
Thu Aug 7 11:31:07 PDT 2025
On 07/08/2025 20:21, Reiner Buehl wrote:
> after upgrading to PHP 8.2, I get the following error from the latest
> available version of the AttachDelete cookbook (0.08 - KK):
>
> PHP Fatal error: Array and string offset access syntax with curly
> braces is no longer supported in
> /var/www/pmwiki-2.4.6/cookbook/attachdel.php on line 121
>
> Is there a way to fix this?
Yes, replace curly braces with square brackets in expressions indicating
a numbered character in a string:
$file{0}
with
$file[0]
Petko
More information about the pmwiki-users
mailing list