[TYPO3] corrupted t3lib?

Krystian Szymukowicz t33kRE.MO.VE. at RE.MO.VE.prolabium.com
Fri Nov 23 10:03:10 CET 2007


Cate & Peter wrote:
> 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??
> 

It seems like maybe wrong configuration of new_author_rel. I am not 
sure. Try to uninstall new_author_rel - clear the cache - and see if the 
errors show again.

--
Krystian


More information about the TYPO3-english mailing list