Project

General

Profile

Actions

Bug #42930

closed

No class named tx_indexedsearch_tslib_fe_hook

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

Status:
Closed
Priority:
Must 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

When activating Indexed_Search and adding a Search form to the template, you get the following error:

TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction |No class named tx_indexedsearch_tslib_fe_hook|
Fatal error: Call to a member function hook_indexContent() on a non-object in /var/www/share/typo3_src-6.0/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php on line 3365

I'm testing typo3 v6 from git.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #42932: Call to userFunc tx_indexedsearch->main cause uncaught exceptionClosed2012-11-13

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

Actions
Actions #1

Updated by Marcos Fadul over 11 years ago

After deleting the indexing configuration the following exception happened.

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: ?>

Actions #2

Updated by Patrick Broens over 11 years ago

  • Status changed from New to Accepted
  • Target version set to 6.0.0

I can reproduce this behaviour.

Actions #3

Updated by Marcos Fadul over 11 years ago

BTW: I solve it with a simple
"if (!empty($inSW)) {"

in the function getSearchWords(...
(TYPO3\CMS\IndexedSearch\Controller\SearchFormController)

Probably is not the best solution, but time effective...

Best regards..

Actions #4

Updated by Gerrit Code Review over 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16640

Actions #5

Updated by Helmut Hummel over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF