[TYPO3-UG Italy] TYPO3 4.2.0 :: fatal error nelle estensioni

Alessandro Tuveri at at uniud.it
Fri May 2 12:36:24 CEST 2008


Salve, stamattina ho trovato un errore non piu' ammesso in TYPO3  
4.2.0, nelle precedenti tutto funzionava.

L'errore e' il seguente e si verifica in particolari condizioni quando  
una estensione che usa la chiamata:

$over = $this->newsId ? array ('tx_ttnews[tt_news]' => $this->newsId,   
'tx_ttnews[backPid]' => $GLOBALS['TSFE']->id) : 				'';
$theLink = $this->pi_linkTP($label,$over,$cache,$pageUid);

chiamando pertanto pi_linkTP con parametro $over che NON e' un array  
si verifica il segente errore e il rendering della pagina va in halt:

[Fri May 02 11:05:06 2008] [error] [client 151.30.152.197] PHP  
Catchable fatal error:  Argument 2 passed to  
t3lib_div::implodeArrayForUrl() must be an array, string given, called  
in  
/var/www/typo3_src-4.2.0/typo3/sysext/cms/tslib/class.tslib_pibase.php  
on line 307 and defined in  
/var/www/typo3_src-4.2.0/t3lib/class.t3lib_div.php on line 1635,  
referer:  
http://www.xxxx.it/typo3/alt_doc.php?&edit[tt_content][114]=edit&returnUrl=%2Ftypo3%2Fsysext%2Fcms%2Flayout%2Fdb_layout.php%3F%26id%3D75

la soluzione: inserire la stringa Array() come segue:


$over = $this->newsId ? array ('tx_ttnews[tt_news]' => $this->newsId,   
'tx_ttnews[backPid]' => $GLOBALS['TSFE']->id) : 				Array();

Controllate le vs. estensioni; il problema si e' verificato in una  
(mia) estensione non rilasciata ma a quanto pare anche in tt_news

bye


--
ALEX TUVERI
CSIT - UNIV. DI UDINE
--------------------------------------

----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita' di Udine




More information about the TYPO3-UG-italy mailing list