[TYPO3-Solr] Connection configuration in TSFE is ignored
Florian Rachor
f.rachor at websafari.eu
Mon Nov 8 16:57:07 CET 2010
Hi,
yes I set the necessary constants, I even tried to hardcode the parameters to the connection manager class. Still no luck with version 1.2.2. I managed to get the whole thing working if I revert the extension back to 1.1.0.
If I hardcode the parameters to the connection manager the error within reports disappears, but still no documents get indexed and if I try to open the search input on the frontend the following error shows up in devlog:
1275399922: exception 'tx_solr_NoSolrConnectionFoundException' with message 'Could not find a Solr connection for root page [0] and language [0]. Initial page used was [35]' in /var/syscp/webs/web29/cms/typo3_src-4.4.4/t3lib/class.t3lib_div.php:5251 Stack trace: #0 /var/syscp/webs/web29/cms/typo3_src-4.4.4/t3lib/class.t3lib_div.php(5251): ReflectionClass->newInstanceArgs(Array) #1 /var/syscp/webs/web29/cms/typo3conf/ext/solr/classes/class.tx_solr_connectionmanager.php(112): t3lib_div::makeInstance('tx_solr_NoSolrC...', 'Could not find ...', 1275399922) #2 /var/syscp/webs/web29/cms/typo3conf/ext/solr/classes/class.tx_solr_search.php(53): tx_solr_ConnectionManager->getConnectionByPageId(35, 0) #3 /var/syscp/webs/web29/cms/typo3_src-4.4.4/t3lib/class.t3lib_div.php(5253): tx_solr_Search->__construct() #4 /var/syscp/webs/web29/cms/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_pluginbase.php(154): t3lib_div::makeInstance('tx_solr_Search') #5 /var/syscp/webs/web29/cms/typo3conf/ext/solr/pi_results/class.tx_solr_pi_results.php(202): tx_solr_pluginbase_PluginBase->initializeSearch() #6 /var/syscp/webs/web29/cms/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_pluginbase.php(138): tx_solr_pi_results->initializeSearch() #7 /var/syscp/webs/web29/cms/typo3conf/ext/solr/classes/pluginbase/class.tx_solr_pluginbase_pluginbase.php(77): tx_solr_pluginbase_PluginBase->initialize(Array) #8 [internal function]: tx_solr_pluginbase_PluginBase->main('', Array) #9 /var/syscp/webs/web29/cms/typo3_src-4.4.4/typo3/sysext/cms/tslib/class.tslib_content.php(6721): call_user_func_array(Array, Array) #10 /var/syscp/webs/web29/cms/typo3_src-4.4.4/typo3/sysext/cms/tslib/class.tslib_content.php(803): tslib_cObj->callUserFunction('tx_solr_pi_resu...', Array, '') #11 /var/syscp/webs/web29/cms/typo3_src-4.4.4/typo3/sysext/cms/tslib/class.tslib_fe.php(3263): tslib_cObj->USER(Array) #12 /var/syscp/webs/web29/cms/typo3_src-4.4.4/typo3/sysext/cms/tslib/class.tslib_fe.php(3202): tslib_fe->INTincScript_process(Array) #13 /var/syscp/webs/web29/cms/typo3_src-4.4.4/typo3/sysext/cms/tslib/index_ts.php(464): tslib_fe->INTincScript() #14 /var/syscp/webs/web29/cms/typo3_src-4.4.4/index.php(84): require('/var/syscp/webs...') #15 {main}
The problem seems to lie within what was changed from 1.1 to 1.2, any more ideas where I could look?
Thanks again for your help,
Florian
Am 26.10.2010 um 21:42 schrieb Georg Kuehnberger:
> On 25.10.2010 13:53, Florian Rachor wrote:
>> Hi,
>> I have a little problem with an instance of the T3-Solr extension. The configuration variables are correctly set in the constants (I can see them in the TS-Object-Browser), and the static template is included. Also solr is working and can be accessed over the web interface.
>> Nevertheless the connection to solr cannot be established under report I get the following error: "Failed to establish Solr connection. Scheme parameter is empty"
>
> Did you set the Scheme parameter on Constants?
> AFAIR the Scheme parameter was added recently and IS mandatory.
> For details see:
>
> http://typo3.org/extensions/repository/view/solr/current/info/static%252Fsolr%252Fconstants.txt/
> and
> http://typo3.org/extensions/repository/view/solr/current/info/static%252Fsolr%252Fsetup.txt/
>
> Standard Config in CONSTANTS for tx_solr version 1.2.2 would e.g. now look like:
>
> plugin.tx_solr.solr.scheme = http
> plugin.tx_solr.solr.host = localhost
> plugin.tx_solr.solr.port = 8080
> plugin.tx_solr.solr.path = /solr/
>
> hth, regards Georg
> _______________________________________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
--
Dipl.-Kfm. Florian Rachor
T +43 463 99 29 63, M +43 660 68 46 647
f.rachor at websafari.eu, www.websafari.eu
Kardinalplatz 1, 9020 Klagenfurt
More information about the TYPO3-project-solr
mailing list