How to install the magento 2.4 on Ubuntu 20.04
Step 1: Install Nginx HTTP Server To install Nginx on Ubuntu, run the commands below: sudo apt update sudo apt install nginx After installing Nginx, the commands below can be…
Step 1: Install Nginx HTTP Server To install Nginx on Ubuntu, run the commands below: sudo apt update sudo apt install nginx After installing Nginx, the commands below can be…
Recently I had to deploy one newly build Magento 2 site to its server for which there was no info what has been installed or what is the infrastructure (the…
Find: public function unserialize($string) { $result = json_decode($string, true); if (json_last_error() !== JSON_ERROR_NONE) { throw new \InvalidArgumentException('Unable to unserialize value.'); } return $result; } replace by: public function unserialize($string) {…
1) (in database: UPDATE setup_module SET schema_version=’1.0.0′, data_version=’1.0.0.’ WHERE module=’Amasty_Base’;) 2) bin/magento setup:upgrade 3) rm -rf var/generation/* && bin/magento setip:di:compile 4) rm -rf pub/static/* var/view_preprocessed/* && bin/magento setup:static-content:deploy zh_Hant_HK en_US…
Overwrite to: app/design/frontend/{your theme}/{theme name}/Magento_Checkout/web/js/action/select-payment-method.js New: define([ '../model/quote' ], function (quote) { 'use strict'; return function (paymentMethod) { /*if (paymentMethod) { paymentMethod.__disableTmpl = { title: true }; }*/ quote.paymentMethod(paymentMethod); };…
step 1 sudo systemctl restart elasticsearch php bin/magento indexer:reindex php bin/magento cache:flush step 2 check the product page if error use the this command line rm -rf var/cache/*…
dump the old database data mysqldump -u root -p database_name > backup.sql; dump the new database data mysqldump -u root -p database_name > backup.sql; create the new database and input…
請在命令行中運行以下命令: php bin/magento indexer:status 如果其中一個索引是“Processing”,那麼轉到MySQL數據庫並轉到indexer_state表。您會注意到其中一個值為“Working”,其餘值為“Valid” 將工作設置為無效並再次重新編制索引。執行此操作的最佳方法是運行以下查詢: update magento.indexer_state set status=’invalid’ where status =’working’
Step 1: Install Apache2 PHP and Required Extensions Step 1.1 Install Apache2 Server The Apache HTTP Server, called Apache, it is free and open-source cross-platform web server software. Apache is…