Running out of hair to pull out

Hi folks.

Bit of a project of mine that I have come back to after a couple of years. When these files where burnt to disk this was a running and functioning website. Coming back to it and have everything set but I keep getting an error…

Fatal error : Cannot declare class JsonException, because the name is already in use

Can anyone think what would cause this to happen, this was not an issue the last time this code ran live.

This is a PHP specific issue. The class JsonException has been added in PHP 7.3. See here