Topic on Project:Support desk

PHP Fatal error: Cannot declare class SemanticScribunto, because the name is already in use inSemanticScribunto/SemanticScribunto.php on line 15

3
203.185.197.46 (talkcontribs)

I ran composer to update my Wiki and I seem to have broken it as all pages are showing a 500 error.

I checked my error logs and can see the following.

PHP Fatal error:  Cannot declare class SemanticScribunto, because the name is already in use in /extensions/SemanticScribunto/SemanticScribunto.php on line 15


Any ideas what could have cause this? I tried to remove references to SemanticScribunto in the LocalSettings.php file but it didnt help

MarkAHershberger (talkcontribs)

Did you upgrade the SemanticScribunto extension? It looks like you should have v 2.1.0 installed.

110.174.65.206 (talkcontribs)

Thanks for your help Mark, I did have 2.1.0 installed. I feel like something went wrong when I ran a composer update. If anyone else has this problem I managed to fix it by removing the composer lock file and entire Vendor folder then re running update via composer again.

Reply to "PHP Fatal error: Cannot declare class SemanticScribunto, because the name is already in use inSemanticScribunto/SemanticScribunto.php on line 15"