Fatal error: Cannot declare class SemanticMediaWiki

From semantic-mediawiki.org
< Installation‎ | Troubleshooting
Administrator manualInstallationInstallation/TroubleshootingFatal error: Cannot declare class SemanticMediaWiki
PHP Fatal error: Cannot declare class SemanticMediaWiki."1

This issue appears if you run composer install --no-dev from within Semantic MediaWiki's extension directory instead of the from the base directory2 of your MediaWiki installation.

Please follow the installation instructions as outlined to mitigate the issue.

References

  1. ^  Semantic MediaWiki: GitHub issue gh:smw:3984
  2. ^  This is the directory which contains the "LocalSettings.php" file.