Skip to content

magento2.4

Auto Added by WPeMatico

How to save value entered in custom field in the Source (MSI) form?

In a Magento 2.4.5, I’ve (successfully) added a custom field (opening_mon) to the AdminHtml form for a Source (MSI), using view/adminhtml/ui_component/inventory_source_form.xml. I do see the field in the form. <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”opening_times” sortOrder=”40″> <settings> <label translate=”true”>Opening times</label> <collapsible>true</collapsible>… Read More »How to save value entered in custom field in the Source (MSI) form?

Declaration of Interceptor::execute() must be compatible with Detail::execute():

I’m trying to display a simple page, but still getting this error. Fatal error: Declaration of MacademyBlogControllerPostDetailInterceptor::execute() must be compatible with MacademyBlogControllerPostDetail::execute(): MagentoFrameworkViewResultPage in /var/www/html/generated/code/Macademy/Blog/Controller/Post/Detail/Interceptor.php on line 19 PHP 7.4.30 Magento 2.4.5 <?php declare(strict_types = 1); namespace MacademyBlogControllerPost; use MagentoFrameworkAppActionHttpGetActionInterface;… Read More »Declaration of Interceptor::execute() must be compatible with Detail::execute():

Magento Upgrade from 2.3.6 to 2.4.0

So I am trying to upgrade Magento using composer require magento/product-enterprise-edition=2.4.0 –no-update but facing these issues, as everything is satisfiable but still not updating, please help. Problem 1 – magento/magento-cloud-metapackage 2.3.6 requires magento/product-enterprise-edition >=2.3.6 <2.3.7 -> satisfiable by magento/product-enterprise-edition[2.3.6-p1, 2.3.6]… Read More »Magento Upgrade from 2.3.6 to 2.4.0

Magento 2 opensearch indexing error

I’m using opensearch, when I’m trying to reindex ‘catalogsearch_fulltext’, I’m getting error: {“error”:”no handler found for uri [/khmagento2_product_1_v2/document/_mapping] and method [PUT]”}’ Here is the result of: curl -u admin:admin -i http://localhost:9200/_cluster/health: {“cluster_name”:”khmagento2″,”status”:”yellow”,”timed_out”:false,”number_of_nodes”:1,”number_of_data_nodes”:1,”discovered_master”:true,”discovered_cluster_manager”:true,”active_primary_shards”:14,”active_shards”:14,”relocating_shards”:0,”initializing_shards”:0,”unassigned_shards”:12,”delayed_unassigned_shards”:0,”number_of_pending_tasks”:0,”number_of_in_flight_fetch”:0,”task_max_waiting_in_queue_millis”:0,”active_shards_percent_as_number”:53.84615384615385} in magento configuration: