[TYPO3-Solr] tslib_cObj exception in __construct function

Andrei Boris andrei.boris.cmm at gmail.com
Tue Nov 17 18:07:29 CET 2015


Hi there,

I just updated a TYPO3 installation working on 6.1.7 to 6.2.15.
After upgrading solr to 3.0.2 from 2.8.3, I got the following exception:

#1: PHP Catchable Fatal Error:
Argument 1 passed to Tx_Solr_Template::__construct() must be an instance of
tslib_cObj, instance of
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer given, called in
/var/www/common/typo3_src-6.2.15/typo3/sysext/core/Classes/Utility/GeneralUtility.php
on line 4443 and defined in /var/www/vhost/
cmm.qc.ca/typo3conf/ext/solr/Classes/Template.php line 61

This sounds very similar to the problem already described by Jan Slusarczyk
here:
http://lists.typo3.org/pipermail/typo3-project-solr/2014-December/002706.html
and here:
http://lists.typo3.org/pipermail/typo3-project-solr/2015-June/002876.html

There's no error if the cache is disabled or if the user is logged in BE as
Jan, quite rightly, has noted.

I'm on php PHP 5.5.9-1ubuntu4.13 and ubuntu 14.04.3 LTS.

Regards
Andrei


More information about the TYPO3-project-solr mailing list