magento2.2

Recently DELETE and PUT API of default magento 2 was not working, are these the permission issue?

我的梦境 提交于 2021-01-29 11:29:05
问题 I call API through Postman. API - PUT rest/V1/customers/144 was not working , It was successfully work on my Local but not on test environment, After some time I came to know that all PUT and DELETE APIs are not working. Ii displays Error 404:Not found. <!doctype html><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>Error 404: Not Found</title> <base href="http://shoppingtest.eduqfix.com/pub/errors/default/" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled

谁说胖子不能爱 提交于 2020-05-17 08:07:20
问题 Get continuously this error in var/reports file. I tried below link solution but still it not fixed. Can anyone please help me for this as it goes on critical now. MISCONF Redis is configured to save RDB snapshots 回答1: I have written this same answer here. Posting it here as well TL;DR Your redis is not secure. Use redis.conf from this link to secure it long answer: This is possibly due to an unsecured redis-server instance. The default redis image in a docker container is unsecured. I was

Why is my Magento2 di.xml not having any effect?

筅森魡賤 提交于 2019-12-24 15:56:45
问题 I've overridden \Magento\Checkout\Block\Cart\Item\Renderer and when I add this to the end of config in /app/etc/di.xml the override works. <preference for="Magento\Checkout\Block\Cart\Item\Renderer" type="Tls\Module\Block\Cart\Item\Renderer" /> However, when I try to use /app/code/Tls/Module/etc/di.xml there is no effect. This is the contents of my di.xml (though I've tried many things) <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Magento2 :Configurable product: Get swatch attributes in list.phtml takes too much time

邮差的信 提交于 2019-12-14 03:08:55
问题 Preconditions Magento CE 2.2.0 PHP 7.0.23-1 Database migrated from 1.9.2 to 2.2.0 Checked with different instances and various versions. Configured highest possible server configuration. -We have one 'classicrings' category, there are only 12 configurable products. Each configurable product containing minimum 1100 simple products, some of them have more than 1500 simple products and total more than 13k products (including with configurable and simple variations) under one 'classicrings'

Magento 2 - Get Customer Address Id through Shipping Address at Checkout Session

梦想的初衷 提交于 2019-12-11 17:36:48
问题 I'm having trouble with getting customer address Id as it returns a null value. This is what I have tried: $checkout = $this->_sessionCheckout->getQuote(); if ($checkout) { $shippingAddress = $checkout->getShippingAddress(); if ($shippingAddress) { $addressId = $shippingAddress->getCustomerAddressId(); $this->_logger->log(100, print_r('address Id: ' . $addressId , true)); //Returns null /** @var \Magento\Customer\Api\Data\AddressInterface $address */ $address = $this->_addressRepository-

Magento reindexing CLI command after set variable PATH : 'php' is not recognized as an internal or external command, operable command or batch file

心已入冬 提交于 2019-12-11 07:57:58
问题 I'm new in Magento. I install magento2 just few days ago and now i want to do reindexing. But there is no option of reindex in Index Management page. So i used CLI with below code: php bin\magento indexer:reindex Output: 'php' is not recognized as an internal or external command, operable program or batch file. All of the answer of this question suggest to set environment path variable but the variable path is already set Link of screenshot : http://prntscr.com/mc0j95 Please help me to solve

Magento 2 Label translation showing braces

删除回忆录丶 提交于 2019-12-11 03:35:17
问题 Labels showing multiple translations between double curly-braces. I have this problem both on the front and backend of Magento 2. This is what I've tried so far: Cleared and flushed the cache re-deployed static content Updated Magento 2.2.5 to 2.2.6 Please look at the pictures for more info Magento 2 Frontend Magento 2 Backend Any ideas? Solution It's not a pretty fix but I've restored both js-translation.json files at the static frontend and backup folder. 回答1: Are you sure you have all php