mollie / Shopware6

50 stars 53 forks source link

Mollie subscription missing ES-indexer for administration #670

Closed niklaswolf closed 3 months ago

niklaswolf commented 10 months ago

If you enable Elasticsearch/Opensearch for the administration, the search in the dasboard/homepage of the admin is broken. This is caused by a missing ES-indexer for the entity mollie_subscription here:

\Shopware\Elasticsearch\Admin\AdminSearchRegistry::getIndexer

To enable ES for admin:

ADMIN_OPENSEARCH_URL="XYZ"
SHOPWARE_ADMIN_ES_ENABLED=1
SHOPWARE_ADMIN_ES_REFRESH_INDICES=1
SHOPWARE_ADMIN_ES_INDEX_PREFIX=sw-admin
Full callstack here Noticed exception 'Shopware\Elasticsearch\Exception\ElasticsearchIndexingException' with message 'Following errors occurred while indexing: ' in vendor/shopware/elasticsearch/Admin/AdminSearchRegistry.php:175 in Shopware\Elasticsearch\Admin\AdminSearchRegistry::getIndexer called at vendor/shopware/elasticsearch/Admin/AdminSearcher.php (51) in Shopware\Elasticsearch\Admin\AdminSearcher::search called at vendor/shopware/elasticsearch/Admin/AdminSearchController.php (47) in Shopware\Elasticsearch\Admin\AdminSearchController::elastic called at vendor/symfony/http-kernel/HttpKernel.php (181) in Symfony\Component\HttpKernel\HttpKernel::handleRaw called at vendor/symfony/http-kernel/HttpKernel.php (76) in Symfony\Component\HttpKernel\HttpKernel::handle called at vendor/symfony/http-kernel/Kernel.php (197) in Symfony\Component\HttpKernel\Kernel::handle called at vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php (86) in Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle called at vendor/symfony/http-kernel/HttpCache/HttpCache.php (473) in Symfony\Component\HttpKernel\HttpCache\HttpCache::forward called at vendor/symfony/http-kernel/HttpCache/HttpCache.php (273) in Symfony\Component\HttpKernel\HttpCache\HttpCache::pass called at vendor/symfony/http-kernel/HttpCache/HttpCache.php (287) in Symfony\Component\HttpKernel\HttpCache\HttpCache::invalidate called at vendor/symfony/http-kernel/HttpCache/HttpCache.php (210) in Symfony\Component\HttpKernel\HttpCache\HttpCache::handle called at vendor/shopware/core/HttpKernel.php (143) in Shopware\Core\HttpKernel::doHandle called at vendor/shopware/core/HttpKernel.php (65) in Shopware\Core\HttpKernel::handle called at public/index.php (71) in Symfony\Component\HttpKernel\HttpKernelInterface@anonymous in Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner::run called at vendor/autoload_runtime.php (29) in require_once called at public/index.php (14)
bojandavkov commented 3 months ago

Does the vendor plan to fix this? this is still an issue while searching in the admin. @BlackScorp

BlackScorp commented 3 months ago

@bojandavkov @niklaswolf yes iam currently working on it. in newest shopware version it works, it seems like shopware catches the error. have to check 6.5 and 6.4

BlackScorp commented 3 months ago

@bojandavkov @niklaswolf i merged the changes,can you download the ZIP file from this action when its done https://github.com/mollie/Shopware6/actions/runs/9808095159

and then try out on your setups?

bojandavkov commented 3 months ago

@BlackScorp How can i download the ZIP file from the action?