elasticsuite icon indicating copy to clipboard operation
elasticsuite copied to clipboard

Error in Admin menu Elasticsuite > Search Relevance

Open joaofrugis opened this issue 3 years ago • 6 comments

Good morning at all.

I installed ElasticSuite version 2.10.11 in my Magento 2.4.2-p1 and if i try to access the menu in Magento admin Elasticsuite > Search Relevance, the follow error ocurred in my instalation.

image

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/app/vendor/smile/elasticsuite/src/module-elasticsuite-core/etc/adminhtml/elasticsuite_relevance.xml" is invalid:
Element 'section', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 24

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 29

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 31

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 34

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 39

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 41

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 45

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 54

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 56

Element 'section', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 64

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 69

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 71

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 75

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 84

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 92

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 102

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 104

Verify the XML and try again.

Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/app/vendor/smile/elasticsuite/src/module-elasticsuite-core/etc/adminhtml/elasticsuite_relevance.xml" is invalid:
Element 'section', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 24

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 29

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 31```

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 34

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 39

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 41

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 45

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 54

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 56

Element 'section', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 64

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 69

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 71

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 75

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 84

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 92

Element 'group', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 102

Element 'field', attribute 'showInContainer': The attribute 'showInContainer' is not allowed.
Line: 104

Verify the XML and try again.
<pre>#1 Magento\Framework\Config\Reader\Filesystem->read() called at [vendor/magento/framework/Config/Data/Scoped.php:119]
#2 Magento\Framework\Config\Data\Scoped->_loadScopedData() called at [vendor/magento/framework/Config/Data/Scoped.php:97]
#3 Magento\Framework\Config\Data\Scoped->get() called at [vendor/magento/module-config/Model/Config/Structure.php:127]
#4 Magento\Config\Model\Config\Structure->__construct() called at [generated/code/Magento/Config/Model/Config/Structure/Interceptor.php:14]
#5 Magento\Config\Model\Config\Structure\Interceptor->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]
#6 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:108]
#7 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/Factory/Compiled.php:81]
#8 Magento\Framework\ObjectManager\Factory\Compiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#9 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/App/ActionFactory.php:44]
#10 Magento\Framework\App\ActionFactory->create() called at [vendor/magento/framework/App/Router/Base.php:306]
#11 Magento\Framework\App\Router\Base->matchAction() called at [vendor/magento/framework/App/Router/Base.php:167]
#12 Magento\Framework\App\Router\Base->match() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#13 Magento\Backend\App\Router\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#14 Magento\Backend\App\Router\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#15 Magento\Backend\App\Router\Interceptor->___callPlugins() called at [generated/code/Magento/Backend/App/Router/Interceptor.php:23]
#16 Magento\Backend\App\Router\Interceptor->match() called at [vendor/magento/framework/App/FrontController.php:115]
#17 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#18 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#19 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#20 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#21 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#22 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#23 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]
</pre>

Can anyone help me?

thx

joaofrugis avatar Sep 06 '22 12:09 joaofrugis

Hello @joaofrugis,

I was not able to reproduce your issue on my test environment with fresh M2.4.2-p1 EE and ElasticSuite 2.10.11.

Screenshot from 2022-09-06 17-04-08

What version of Magento are you using, CE or EE?

Perhaps, smth was wrong during the installation of the ElasticSuite, so try to re-install it, by running the next commands:

$ composer remove smile/elasticsute
$ bin/magento setup:upgrade
$ composer require smile/elasticsuite ~2.10.0
$ bin/magento setup:upgrade
$ bin/magento indexer:reindex

If you still get your error, try installing an earlier version of ElasticSuite.:

$ composer require smile/elasticsuite=2.10.9 
-or-
$ composer require smile/elasticsuite=2.10.10

BR, Vadym

vahonc avatar Sep 06 '22 14:09 vahonc

vahonc, good morning.

Thx for the reply but seems that doesn't is the right way to solve the problem. I installed an older version (2.10.9) but the problem still appearing.

Do you have another tip?

joaofrugis avatar Sep 08 '22 12:09 joaofrugis

@joaofrugis,

What version of Magento are you using, CE or EE?

Have you installed any third-party modules or themes (e.g. for Magento BO) that could affect this problem?

UPD

What is an output of this command: $ curl -i http://localhost:9200/_cat/plugins

BR, Vadym

vahonc avatar Sep 08 '22 12:09 vahonc

@vahonc,

My Magento is EE edition.

Not installed, just customizations but no 3rd party modules installed.

My output is:

HTTP/1.1 200 OK content-type: text/plain; charset=UTF-8 content-length: 108

elasticsearch.magento2.docker analysis-icu 7.9.3 elasticsearch.magento2.docker analysis-phonetic 7.9.3

BR,

João

joaofrugis avatar Sep 08 '22 12:09 joaofrugis

@vahonc Forgive me, my installation does contain third-party modules.

I will perform an analysis of what may be impacting this error and get back to you.

Thx

joaofrugis avatar Sep 08 '22 17:09 joaofrugis

@joaofrugis According to this xsd schema showInContainer is valid and allowed element. You should check your customizations and maybe the configs of other extensions because there are could be some typo mistakes or smth like that.

BR, Vadym

vahonc avatar Sep 09 '22 07:09 vahonc

This issue was waiting update from the author for too long. Without any update, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

github-actions[bot] avatar Oct 20 '22 13:10 github-actions[bot]