Hello world!
-
iotrasnet
ParticipantHi,
We investigated the issue properly and found that changing the whole server to PHP 7.x was not the real fix.
The forum is running phpBB 3.3.15 on PHP 8.3. The 500 error when clicking the delete “X” was caused by a PHP 8+ fatal
ValueErrorin phpBB’s language system:forum/phpbb/language/language.php:372
vsprintf(): The arguments array must contain 1 items, 0 givenThe broken path was the delete confirmation template:
confirm_delete_body.htmlIt was calling the Romanian language keys without passing a numeric argument, while the Romanian language file had pluralized strings with
%1$dplaceholders:DELETE_POST_PERMANENTLY
DELETE_TOPIC_PERMANENTLYOn PHP 7 this likely behaved as a warning, but on PHP 8.3 it becomes fatal.
We fixed it by correcting the Romanian language strings so they no longer require
%1$din that delete confirmation context, then cleared the phpBB cache. The delete button now works without downgrading PHP.So the issue was not “PHP 8 cannot run the forum”, but a PHP 8 compatibility problem in the language/template handling. You may want to update the theme/language pack so it is fully PHP 8 compatible.
iotrasnet
Participant😀
iotrasnet
Participantanyone ?
