Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete 500 error #91

Open
MustardOnPizza opened this issue Aug 30, 2019 · 2 comments
Open

Autocomplete 500 error #91

MustardOnPizza opened this issue Aug 30, 2019 · 2 comments

Comments

@MustardOnPizza
Copy link

Q A
Bug report? yes

In Pimcore 6 I'm getting a 500 error when a request is made to /lucene-search I'm following the "frontend implementation" guide as written in this repositry but it doesn't work.

When I check the logs I get the following error:

[2019-08-30 14:24:10] php.INFO: User Deprecated: Auto-injection of the container for "LuceneSearchBundle\Controller\AutoCompleteController" is deprecated since Symfony 4.2. Configure it as a service instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Auto-injection of the container for \"LuceneSearchBundle\\Controller\\AutoCompleteController\" is deprecated since Symfony 4.2. Configure it as a service instead. at /var/www/html/pimcore/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php:64)"} []

[2019-08-30 14:24:10] php.INFO: User Deprecated: Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Calling the \"Symfony\\Component\\EventDispatcher\\EventDispatcherInterface::dispatch()\" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead. at /var/www/html/pimcore/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:148)"} []

[2019-08-30 14:24:10] doctrine.DEBUG: SELECT id,            (CASE WHEN expire IS NULL OR expire > ? THEN data ELSE NULL END) as data             FROM cache WHERE id IN (?) [1567139050,["system_cache_write_lock"]] []

[2019-08-30 14:24:10] doctrine.DEBUG: SELECT id,            (CASE WHEN expire IS NULL OR expire > ? THEN data ELSE NULL END) as data             FROM cache WHERE id IN (?) [1567139050,["system_cache_write_lock"]] []

[2019-08-30 14:24:10] php.CRITICAL: Argument 2 passed to LuceneSearchBundle\Helper\LuceneHelper::wildcardFindTerms() must be an instance of Zend_Search_Lucene_Interface, null given, called in /var/www/html/pimcore/vendor/dachcom-digital/lucene-search/src/LuceneSearchBundle/Controller/AutoCompleteController.php on line 20 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Argument 2 passed to LuceneSearchBundle\\Helper\\LuceneHelper::wildcardFindTerms() must be an instance of Zend_Search_Lucene_Interface, null given, called in /var/www/html/pimcore/vendor/dachcom-digital/lucene-search/src/LuceneSearchBundle/Controller/AutoCompleteController.php on line 20 at /var/www/html/pimcore/vendor/dachcom-digital/lucene-search/src/LuceneSearchBundle/Helper/LuceneHelper.php:46)"} []

To be brutally honest I'm not 100% sure what I'm reading here.

@eskju
Copy link

eskju commented Aug 3, 2020

@MustardOnPizza have you been able to solve this issue? I ran into the same problem :/

Edit: After some hours of debugging and testing I figured out it was related to a Pimcore issue. Disabling/enabling the plugin solved the issue.

@christoshrousis
Copy link

I ended up writing my own search from scratch hahaha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants