Project

General

Profile

Actions

Bug #42932

closed

Call to userFunc tx_indexedsearch->main cause uncaught exception

Added by Marcos Fadul over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2012-11-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Uncaught TYPO3 Exception
#1: PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Frontend\ContentObject\AbstractContentObject::__construct() must be an instance of TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer, none given, called in /var/www/share/typo3_src-6.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4157 and defined in /var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/AbstractContentObject.php line 48 (More information)

TYPO3\CMS\Core\Error\Exception thrown in file
/var/www/share/typo3_src-6.0/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 110.

13 TYPO3\CMS\Core\Error\ErrorHandler::handleError(4096, "Argument 1 passed to TYPO3\CMS\Frontend\ContentObj…tility/GeneralUtility.php on line 4157 and defined", "/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/AbstractContentObject.php", 48, array)

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/AbstractContentObject.php:
00046: * @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj
00047: */
00048: public function __construct(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj) {
00049: $this->cObj = $cObj;
00050: $this->fileFactory = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance();

12 TYPO3\CMS\Frontend\ContentObject\AbstractContentObject::__construct()

/var/www/share/typo3_src-6.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php:
04155: } else {
04156: $fullyQualifiedClassName = '\\' . $finalClassName;
04157: $instance = new $fullyQualifiedClassName();
04158: }
04159: // Create alias if not present

11 TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("TYPO3\CMS\Frontend\ContentObject\SearchResultContentObject")

/var/www/share/typo3_src-6.0/typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php:
00410: $sWordArray = array(array('sword' => trim($inSW), 'oper' => 'AND'));
00411: } else {
00412: $search = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\SearchResultContentObject');
00413: $search->default_operator = $defOp == 1 ? 'OR' : 'AND';
00414: $search->operator_translate_table = $this->operator_translate_table;

10 TYPO3\CMS\IndexedSearch\Controller\SearchFormController::getSearchWords(0)

/var/www/share/typo3_src-6.0/typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php:
00377: }
00378: // This gets the search-words into the $sWArr:
00379: $this->sWArr = $this->getSearchWords($this->piVars['defOp']);
00380: }
00381:

9 TYPO3\CMS\IndexedSearch\Controller\SearchFormController::initialize()

/var/www/share/typo3_src-6.0/typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php:
00167: $this->pi_setPiVarDefaults();
00168: // Initialize:
00169: $this->initialize();
00170: // Do search:
00171: // If there were any search words entered...

8 TYPO3\CMS\IndexedSearch\Controller\SearchFormController::main("", array)
7 call_user_func_array(array, array)

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:
06371: $content,
06372: $conf
06373: ));
06374: } else {
06375: $GLOBALS['TT']->setTSlogMessage('Method "' . $parts1 . '" did not exist in class "' . $parts0 . '"', 3);

6 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::callUserFunction("tx_indexedsearch->main", array, "")

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php:
00053: }
00054: $this->cObj->includeLibs($conf);
00055: $tempContent = $this->cObj->callUserFunction($conf['userFunc'], $conf, '');
00056: if ($this->cObj->doConvertToUserIntObject) {
00057: $this->cObj->doConvertToUserIntObject = FALSE;

5 TYPO3\CMS\Frontend\ContentObject\UserContentObject::render(array)

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:
00894: return $this->getContentObject('USER_INT')->render($conf);
00895: } else {
00896: return $this->getContentObject('USER')->render($conf);
00897: }
00898: }

4 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::USER

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
03462: break;
03463: case 'FUNC':
03464: $incContent = $INTiS_cObj->USER;
03465: break;
03466: case 'POSTUSERFUNC':

3 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript_process(array)

/var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
03402: $INTiS_config = $this->config['INTincScript'];
03403: $this->INTincScript_includeLibs($INTiS_config);
03404: $this->INTincScript_process($INTiS_config);
03405: // Check if there were new items added to INTincScript during the previous execution:
03406: $INTiS_config = array_diff_assoc($this->config['INTincScript'], $INTiS_config);

2 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript()

/var/www/share/typo3_src-6.0/typo3/sysext/cms/tslib/index_ts.php:
00219: if ($TSFE->isINTincScript()) {
00220: $TT->push('Non-cached objects', '');
00221: $TSFE->INTincScript();
00222: $TT->pull();
00223: }

1 require("/var/www/share/typo3_src-6.0/typo3/sysext/cms/tslib/index_ts.php")

/var/www/share/typo3_src-6.0/index.php:
00040: \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->baseSetup('');
00041:
00042: require(PATH_tslib . 'index_ts.php');
00043: ?>


Files

TYPO3-exception.jpg (460 KB) TYPO3-exception.jpg Exception screenshot Stefan Reichelt, 2012-11-15 18:04

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #42806: Fix SEARCHRESULT content objectClosed2012-11-08

Actions
Related to TYPO3 Core - Bug #42930: No class named tx_indexedsearch_tslib_fe_hookClosed2012-11-13

Actions
Has duplicate TYPO3 Core - Bug #42874: Fatal Error on search in v6.0rc1 introduction packageClosed2012-11-12

Actions
Actions

Also available in: Atom PDF