itonomy / module-flowbox Goto Github PK
View Code? Open in Web Editor NEWFlowbox integration for Magento2
License: MIT License
Flowbox integration for Magento2
License: MIT License
[InvalidArgumentException]
Could not find a matching version of package itonomy/module-flowbox. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum
-stability (stable).
Edit: translated to English.
Subject: Support Magento without Inventory modules enabled
It's not possible to use the Flowbox module when the Inventory modules are disabled. After adding a flowboxwidget to a page and saving that page, the following error is shown:
[2021-03-05 12:51:58] report.CRITICAL: Error: Cannot instantiate interface Magento\InventoryCatalogApi\Model\GetSkusByProductIdsInterface in /home/john/doe/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
In code vendor/itonomy/module-flowbox/Block/Widget/Flow.php one can see that the following interface is called:
\Magento\InventoryCatalogApi\Model\GetSkusByProductIdsInterface
Could this call be rewritten so to support Magento without Inventory modules enabled. This because I don't have an option to enable those inventory modules in my Magento installation.
Tnx.
Removing line 100 in view/frontend/web/js/flowbox.js
solves my issue.
It seems like even though we set lazyLoad: False
in boolean (settings of your module) we'll be forced to use lazyLoad: True
Could you check it out?
I assume it should be
'lazyload' => (bool) ($this->getData('lazyload') ?: false),
module-flowbox/src/Block/Widget/Flow.php
Line 54 in 00b5a70
Hi,
after having upgraded to the 1.4.3 version of the module, we ran an issue on our product listing pages :
the 3 attributes created with the setup patch https://github.com/Itonomy/module-flowbox/blob/1.4.3/src/Setup/Patch/Data/AddAlternativeProductIdentifierAttributes.php are declared with type "text" and with the attribute "filterable" to "true", and that creates the error below with our Elastic Search integration :
ssh.eu-3.magento.cloud: [2021-09-07 07:02:52] report.CRITICAL: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"magento2_product_56_v168","node":"8EiuKSMCRnuTvSpQUznjDg","reason":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400} {"exception":"[object] (Elasticsearch\\Common\\Exceptions\\BadRequest400Exception(code: 400): {\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"magento2_product_56_v168\",\"node\":\"8EiuKSMCRnuTvSpQUznjDg\",\"reason\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\"}}],\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [ean] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\"}}},\"status\":400} at /app/7t57if6dywbwe/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.