Project

General

Profile

Actions

Bug #61254

closed

parseUserFuncArguments getting no single arguments to user_functions in conditions

Added by Michael Finkenthei about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2014-08-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Example: installed version 1.0.0 of extension rgnewsimg, Typo3 6.2.4 on PHP 5.4.31 (ubuntu 12.4)

@includeLibs.rgnewsimg = EXT:rgnewsimg/condition.php
[userFunc = user_rgnewsimg(0)]

...
[global]
[userFunc = user_rgnewsimg(1)]
...
[global]
@

Typoscript code:
@includeLibs.rgnewsimg = EXT:rgnewsimg/condition.php
[userFunc = user_rgnewsimg(0)]

...
[global]
[userFunc = user_rgnewsimg(1)]
...
[global]
@
as per extension manual, which is working fine with prior versions of Typo3 up to 6.1.7 .

Frontend Result is an Exception:
11 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "Missing argument 1 for user_rgnewsimg()", "/httpdocs/typo3conf/ext/rgnewsimg/condition.php", 31, array)
10 user_rgnewsimg()
9 call_user_func_array("user_rgnewsimg", array)
8 TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher::evaluateConditionCommon("userFunc", "user_rgnewsimg(0)")
...

Workaround:

Typoscript code:
@includeLibs.rgnewsimg = EXT:rgnewsimg/condition.php
[userFunc = user_rgnewsimg(0,0)]

...
[global]
[userFunc = user_rgnewsimg(1,1)]
...
[global]
@

does work, so if more than one argument is given, only the 2nd and following are delivered to the user_function.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #61256: parseUserFuncArguments getting no single arguments to user_functions in conditions Closed2014-08-28

Actions
Actions

Also available in: Atom PDF