Fatal error: Cannot declare class Cpdf, because the name is already in use in /Applications/XAMPP/xamppfiles/lib/php/Cpdf.php

@bradymiller

I would like to make report about this similar error message. This started yesterday.

OEMR v5.0.2 (3)
Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-1028-aws x86_64)
PHP 7.2.24-0ubuntu0.18.04.6 (cli)
Apache / 2.4.29 (Ubuntu)
No modifications to the program at all.

 PHP Fatal error:  Cannot use OpenEMR\\Common\\Csrf\\CsrfUtils as CsrfUtils because the name is already in use in /var/www/html/todd/interface/usergroup/user_admin.php on line 553, referer: https://todd.com/interface/main/tabs/main.php?token_main=t44SgYoPZAfP2Y4VVxnDJVGzcEcQDAjNAVSju1V5

Should I run composer update?
It is working again. Don’t know what happened. I removed all the code from the page and put it back a little at a time looking for the offending code. Didn’t find any and ended up with a working page.

1 Like