Recover Mysql-5.7 Database From Old Folder Data.

Today is 5 Sep 2021, Unfortunately, I came across a problem with a Linux server on AWS. OS system dies, I was not able to connect to it anymore. Several websites are running on it. Oh my god! So firstly, I stopped the old EC2 instance and create a new one with lasted Instance bases…

Duplicate orders with same Quote Id

This problem is so hard to detect a cause. This one #25222 is one of a cause to make multiple duplicated orders. And Amazon Pay as well, I can’t recall exactly.But generally, for somewhat reason is that the function Magento\Quote\Model\QuoteManagement::submitQuote is called on twice or even more. So my solution is to make a hook/plugin on the…

TinyMCE Can’t add tags into tag a

— Update …. It’s here¬†https://github.com/betagento/Editor I changed the schema validation to html5, by default is html5-strict. In the Class Betagento\Editor\Model\WysiwygConfig, use can add more TinyMCE settings if you want. [see https://www.tiny.cloud/docs-4x/] Issue is that I tried to add tag <span> and <i> to tag </a>, but it does not work. This is solution to resolve…

M2 – Uncaught TypeError: Cannot read property ‘items’ of undefined – /Magento_Checkout/js/model/totals.js

A bug story: I faced an issue on a checkout that the JS error happen when selecting a shipping method. I tried to check in some extension mixins javascript files but did not found anything wrong. When I check if it has an error in XHR ajax calls. Then I found https://x-x-x.com/rest/dk/V1/guest-carts/xxx–xxx/shipping-information Problem is: total…

Customer data can’t be found in Local Storage of a browser

Link an issue: https://github.com/magento/magento2/issues/14912 I came across this issue on my customer website. I added a downloadable product ( which needs to be login to checkout), then I logged into, but when I clicked on the checkout button in cart sidebar, it gave me authentication popup. Due to customer data on Local Storage is not…