CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #5620

Deprecated function t3lib_div::GPvar()

Added by Claudio Strizzolo over 4 years ago. Updated over 3 years ago.

Status:Resolved Start date:2009-12-04
Priority:Should have Due date:
Assignee:Alex Kellner % Done:

0%

Category:-
Target version:-
Votes: 0

Description

After upgrading to Typo3 4.3.0, a number of warnings are appended to a log file (typo3conf/deprecation_XXXXXXXX.log), because a deprecated function is used in wt_gallery:

03-12-09 14:39: t3lib_div::GPvar() - since TYPO3 3.6 - Use t3lib_div::_GP instead (ALWAYS delivers a value with un-escaped values!) - require#80 // tslib_fe->INTincScript#448 // tslib_fe->INTincScript_process#3175 // tslib_cObj->USER#3236 // tslib_cObj->callUserFunction#789 // call_user_func_array#6626 // tx_wtgallery_pi1->main# // t3lib_div::GPvar#93 // t3lib_div::logDeprecatedFunction#359 (class.t3lib_div.php#358)

Actually this is not a bug, however deprecated functions should be removed from code, I guess.

History

Updated by Alex Kellner over 4 years ago

  • Status changed from New to Accepted
  • Assignee set to Alex Kellner

Updated by Alex Kellner over 4 years ago

  • Status changed from Accepted to Resolved

Resolved in 3.1.6

Updated by Claudio Strizzolo over 4 years ago

Alex Kellner wrote:

Resolved in 3.1.6

Unfortunately the warning message is still there, even in the new release:

08-01-10 09:17: t3lib_div::GPvar() - since TYPO3 3.6 - Use t3lib_div::_GP instead (ALWAYS delivers a value with un-escaped values!) - require#80 // tslib_fe->INTincScript#448 // tslib_fe->INTincScript_process#3175 // tslib_cObj->USER#3236 // tslib_cObj->callUserFunction#789 // call_user_func_array#6626 // tx_wtgallery_pi1->main# // tx_wtgallery_pi1->check#65 // t3lib_div::GPvar#166 // t3lib_div::logDeprecatedFunction#359 (class.t3lib_div.php#358)

The pi1 code still includes some calls to GPvar:

./pi1/class.tx_wtgallery_pi1.php: if (t3lib_div::GPvar('type') != 3135) $this->content .= $this->div->check4errors($this->conf['main.']['path'], 'Picture path not set - set in flexform or in constants'); // check for picture path
./pi1/class.tx_wtgallery_pi1.php: if (t3lib_div::GPvar('type') != 3135) $this->content .= $this->div->check4errors($this->conf['main.']['mode'], 'Mode not set - set mode in flexform or in constants'); // check for mode
./pi1/class.tx_wtgallery_pi1.php: if (t3lib_div::GPvar('type') != 3135) $this->content .= $this->div->check4errors($this->piVars['category'], 'No valid picture path', 2, 1); // check for correct path

Updated by Alex Kellner over 4 years ago

  • Status changed from Resolved to Accepted

sorry - overlooked

Updated by Alex Kellner almost 4 years ago

  • Status changed from Accepted to Resolved

Resolved in 3.1.7

Also available in: Atom PDF