Fatal error: Cannot redeclare comparePermission() in yii 1.1 after php 8.0 updrade,but this function is declared only once

Fatal error: Cannot redeclare fuctionXYZ() in yii 1.1 after php 8.0 updrade,but this function is declared only once.

Fatal error : Cannot redeclare convertGETtoPOST() (previously declared in /var/www/vhosts/research/test.researchsurvey.nl/application/helpers/common_helper.php:586) in /var/www/vhosts/research/test.researchsurvey.nl/application/helpers/common_helper.php on line 586

It looks like you include this file multiple times.

1 Like