You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in combination with Solr extension scheduler task (Argument #1 ($site) must be of type ApacheSolrForTypo3\Solr\Domain\Site\Site, null given)
#4
Open
localhorst opened this issue
Nov 29, 2024
· 4 comments
Hello, we are getting fatal errors on the command line when both these extensions are installed:
apache-solr-for-typo3/solr
werkraummedia/abtest
The error occurs when starting the solr indexing scheduler task from command line. It seems that the FrontendController must not be modified to initalize Solr index service (getInitializedIndexService). The error does not occur if the task is started manually from the backend.
foo@bar-web:/var/www/html$ vendor/bin/typo3 scheduler:run --task=5
Uncaught TYPO3 Exception ApacheSolrForTypo3\Solr\Task\IndexQueueWorkerTask::getInitializedIndexService(): Argument #1 ($site) must be of type ApacheSolrForTypo3\Solr\Domain\Site\Site, null given, called in /var/www/html/htdocs/typo3conf/ext/solr/Classes/Task/IndexQueueWorkerTask.php on line 75
thrown in file /var/www/html/htdocs/typo3conf/ext/solr/Classes/Task/IndexQueueWorkerTask.php
in line 207
Unfortunately, no more info about this error was logged. But I was able to determine the culprit with Xdebug.
I created a pull request for this error here. #3
It works on our machines (DDEV/nginx and Production+Staging on Apache2, both PHP 8.1)
I guess the AB-Test hook is not needed in the CLI anyway.
Probably it can be disabled for the backend as well.
The text was updated successfully, but these errors were encountered:
localhorst
changed the title
Fatal error in combination with Solr extension scheduler task (Argument #1 ($site) must be of type ApacheSolrForTypo3\Solr\Domain\Site\Site, null given)
Exception in combination with Solr extension scheduler task (Argument #1 ($site) must be of type ApacheSolrForTypo3\Solr\Domain\Site\Site, null given)
Nov 29, 2024
Hello, we are getting fatal errors on the command line when both these extensions are installed:
The error occurs when starting the solr indexing scheduler task from command line. It seems that the FrontendController must not be modified to initalize Solr index service (getInitializedIndexService). The error does not occur if the task is started manually from the backend.
Unfortunately, no more info about this error was logged. But I was able to determine the culprit with Xdebug.
I created a pull request for this error here.
#3
It works on our machines (DDEV/nginx and Production+Staging on Apache2, both PHP 8.1)
I guess the AB-Test hook is not needed in the CLI anyway.
Probably it can be disabled for the backend as well.
The text was updated successfully, but these errors were encountered: