Fatal error: Cannot redeclare class tx_advancedsitemaps_tca
We can see the following error message when cache is cleared:
Fatal error: Cannot redeclare class tx_advancedsitemaps_tca in typo3conf/ext/advanced_sitemaps/tca.php on line 316
This happens due to the declaration of the class tx_advancedsitemaps_tca within the TCA.php file.
Instead we must declare the class in a separate file and include this file as follows:
This will make sure that the file gets included only once, and thus avoiding the error message/warnings.
#1 Updated by Sebastiaan de Jonge over 8 years ago
- Category set to Bugs
- Status changed from New to Resolved
- Assignee set to Sebastiaan de Jonge
- Priority changed from Should have to Must have
- Target version set to Advanced Sitemaps 1.1.3
This has already been fixed within the trunk version. No change required. Will be fixed upon next release.