[TYPO3] TYPO3 4.2.0 and pi_linkT (t3lib_div::implodeArrayForUrl)
Alessandro Tuveri
at at uniud.it
Fri May 9 14:14:43 CEST 2008
Hi Folks
I don't know why but sometimes using TYPO3 v4.2.0 occurs an error like this:
PHP Catchable fatal error: Arugment 2 passed to
telib_div::implodeArrayForUrl() (etc....)
I investigated and discovered that within:
typo3/sysext/cms/tslib/class.tslib_pibase.php
on line 307
this is the listing:
function pi_linkTP($str,$urlParameters=array(),$cache=0,$altPageId=0) {
$conf=array();
$conf['useCacheHash'] = $this->pi_USER_INT_obj ? 0 : $cache;
$conf['no_cache'] = $this->pi_USER_INT_obj ? 0 : !$cache;
$conf['parameter'] = $altPageId ? $altPageId :
($this->pi_tmpPageId ? $this->pi_tmpPageId : $GLOBALS['TSFE']->id);
$conf['additionalParams'] =
$this->conf['parent.']['addParams'].t3lib_div::implodeArrayForUrl('',$urlParameters,'',1).$this->pi_moreParams;
there is a call to:
t3lib_div::implodeArrayForUrl(...)
where adding this few lines (before the call above):
if($urlParameters == NULL) {
$urlParameters = Array();
}
you can solve the problems. I don't know if TYPO3 was modified or if
PHP 5.2.x can't understand that the parameter passed as:
NULL
is misinterpreted as a normal variable.
Any comments or ideas?!?
Thank you
--
ALEX TUVERI
CSIT - UNIV. DI UDINE
--------------------------------------
----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita' di Udine
More information about the TYPO3-english
mailing list