[TYPO3] corrupted t3lib?
Cate & Peter
catepeter at optusnet.com.au
Fri Nov 23 09:47:24 CET 2007
Hi Krystian - thanks so much for responding so quickly...
>
> just delete both temp_CACHED* files in typo3conf/ and thats all - cache
> is cleared.
>
> If after clearing the cache manually the problem will still exist then
> check the line in temp_CACHED_ where the problem was.
>
> In you case it was:
> /home/deafhub/public_html/typo3conf/temp_CACHED_ps94bc_ext_tables.php on
> line 2774
>
> Try to figure out what is bad in that line and what extension possibly
> is making this error.
>
> Then go to typo3conf/localconf.php
> find $TYPO3_CONF_VARS['EXT']['extList']
> and remove from this list the extension that is making problems.
>
> Clear the cache again manually.
>
[Cate wrote:]
Thanks for that help Krystian.
Deleting the files didn't help - around that place in
/home/deafhub/public_html/typo3conf/temp_CACHED_ps94bc_ext_tables.php on
> line 2774 is TCA settings for the extension "News Author Relations"
(Extkey: news_author_rel)
tt_news, which is what I suspected. From line 2754 - 2779
t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news',$tempColumns,1);
t3lib_extMgm::addStaticFile($_EXTKEY,'static/','tt_news author relation');
if ($confArr['replace_author_field'] < 3) {
$fieldToReplace = 'author';
switch ($confArr['replace_author_field']) {
case '1': // 1 = REPLACE author field
$author = 'tx_newsauthorrel_author';
break;
case '2': // 2 = add new field at the end of
the FIRST tab of the tt_news editform
$author = 'no_auto_pb,tx_newsauthorrel_author';
$fieldToReplace = 'no_auto_pb';
break;
default: // 0 = DO NOT replace author field, add new
field before
$author = 'tx_newsauthorrel_author,author';
break;
}
// overwrite TCA "types" from tt_news with the new author
field ******** this is where my problem is .. after the "foreach"...
$tmpTypes = $GLOBALS['TCA']['tt_news']['types'];
foreach(array_keys($tmpTypes) as $k) {
$GLOBALS['TCA']['tt_news']['types'][$k] = Array('showitem'
=> ereg_replace($fieldToReplace,$author,$tmpTypes[$k]['showitem']));
}
} else { // 3 = add new field at the end of the LAST tab of the
tt_news editform
t3lib_extMgm::addToAllTCAtypes('tt_news','tx_newsauthorrel_author;;;;1-1-1')
;
}
So is the problem tt_news, or new_author_rel??
Cate
More information about the TYPO3-english
mailing list