Skip to content

magento man

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:

Catalog Search returns 450 error

Magento Version: 2.4.3 Search Query: https://siteurl/catalogsearch/result/?q=sku The search query works well but sometimes for certain product it returns 450 error. Is there any solution? Please let me know. Thanks.

New to Magento phtml code doesn’t show

I’ve been trying to add phtml to my custom theme but it doesn’t show for example <block class=”MagentoCatalogBlockProductView” name=”product_view_custom_block” before=”-” template=”Magento_Catalog::product/view/custom_block.phtml”/> path for xml is <theme_name><theme>Magento_Cataloglayoutcatalog_category_view.xml path is <theme_name><theme>Magento_Catalogproductviewcustom_block.phtml the template=”” what should I put inside the double quotes? Did… Read More »New to Magento phtml code doesn’t show

Customer address not save programatically in magento 2

I tried to create and save customer address for a registered, logged user. My code in controller is like below. $addresss = $objectManager->get(‘MagentoCustomerModelAddressFactory’); $address = $addresss->create(); $address->setCustomerId(3) ->setFirstname(“FirstName”) ->setLastname(‘LastName’) ->setCountryId(“AE”) ->setPostcode(“10000”) ->setCity(‘Panoi’) ->setTelephone(“074983118”) ->setFax(“443456789”) ->setCompany(“Company”) ->setStreet(“Street”) ->setIsDefaultBilling(‘1’) ->setIsDefaultShipping(‘1’) ->setSaveInAddressBook(‘1’); try{… Read More »Customer address not save programatically in magento 2