Bug #30928
Fatal error: Cannot redeclare class tx_advancedsitemaps_tca
| Status: | Resolved | Start date: | 2011-10-14 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Sebastiaan de Jonge | % Done: | 0% |
|
| Category: | Bugs | Spent time: | - | |
| Target version: | Advanced Sitemaps 1.1.3 | |||
| Votes: | 0 |
Description
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:
require_once ($_EXTKEY.'class.tx_advancedsitemaps_tca.php');
This will make sure that the file gets included only once, and thus avoiding the error message/warnings.
History
Updated by Sebastiaan de Jonge over 1 year 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.