Magento 1 Invalid Form Key

magento 1 login error

When login to Magento 1 Admin area, i get an error Invalid Form Key. Please refresh the page. This is because the value of web/cookie/cookie_domain set wrong. This should be the current domain name. MariaDB [goipshop]> select * from core_config_data where path like ‘web/cookie/cookie_domain’; +———–+———+———-+————————–+————–+ | config_id | scope | scope_id | path | value … Read more

Magento 2 Unable to proceed: the maintenance mode is enabled

Magento

When i visit a Magento 2 site, i get error 1 exception(s): Exception #0 (Exception): Unable to proceed: the maintenance mode is enabled. Exception #0 (Exception): Unable to proceed: the maintenance mode is enabled. #1 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#000000003459ecdd0000000028ca744b#) called at [index.php:39] To fix this, login to the server using SSH, run following command. php bin/magento maintenance:disable This … Read more

Install Elasticsearch 7 on Ubuntu for Magento 2.3

To install Elasticsearch, add the key Install apt-transport-https Add apt repository install elasticsearch with apt Set elasticsearch to start on boot Elasticsearch can be started and stopped as follows: Verify Elasticsearch is running with or with if it fails to start, you can debug it with Official install instructions at https://www.elastic.co/guide/en/elasticsearch/reference/8.3/deb.html See elasticsearch

Enable memcached on Magento 2 in Plesk Server

memcached telnet

To install memcached, run apt install php-memcached apt install build-essential apt install autoconf automake gcc libmemcached-dev libhashkit-dev pkg-config plesk-php*-dev zlib1g-dev Enable memcached php module /opt/plesk/php/7.3/bin/pecl install memcached This is for PHP 7.3, change the path to pecl for your version of PHP. Activate memcached echo “extension=memcached.so” > /opt/plesk/php/7.3/etc/php.d/memcached.ini Update php handler plesk bin php_handler –reread … Read more

Magento 2 list enabled modules

To list Modules in Magento 2, run php bin/magento module:status Example [markt-24@server public_html]$ php bin/magento module:status List of enabled modules: Magento_AdminAnalytics Magento_Store Magento_AdobeIms Magento_AdobeImsApi Magento_AdobeStockAdminUi Magento_MediaGallery Magento_AdobeStockAssetApi Magento_AdobeStockClient Magento_AdobeStockClientApi Magento_AdobeStockImage Magento_Directory Magento_AdobeStockImageApi Magento_AdvancedPricingImportExport Magento_Theme Magento_Amqp Magento_AmqpStore Magento_Config Magento_Backend Magento_Authorization Magento_Search Magento_Backup Magento_Eav Magento_Variable Magento_BundleImportExport Magento_CacheInvalidate Magento_Customer Magento_AdminNotification Magento_Indexer Magento_Security Magento_GraphQl Magento_EavGraphQl Magento_Cms Magento_CatalogImportExport Magento_Catalog Magento_CatalogInventory … Read more

Magento Change URL

Magento

Magento store website URL in table core_config_data. This is the same for Magento 1 and Magento 2. To see the current URL, in phpMyAdmin or MySQL command line, run Normally this shows 2 entries. If it shows more than 2 entries, it is because you have more store configured in your Magento installation. In such … Read more

Install Elasticsearch 6 on Debian for Magento

To install Elasticsearch for Magento on Debian, install Java 1.8 and apt-transport-https apt install -y openjdk-8-jdk-headless apt install -y apt-transport-https Add key wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add – Add repository echo “deb https://artifacts.elastic.co/packages/6.x/apt stable main” | tee -a /etc/apt/sources.list.d/elastic-6.x.list Install Elasticsearch apt update apt install -y elasticsearch Enable and start Elasticsearch systemctl enable … Read more

Magento 1 Command Line Tool

Magento

Magento 2 comes with command line tool to manage magento installation. This help you to do many tasks like clearning cache, install extension easier. Magento 1 CLI is available from https://github.com/netz98/n98-magerun To install Magento 1 command line tool, go to Magento install folder and run wget https://files.magerun.net/n98-magerun.phar chmod +x ./n98-magerun.phar Now you will be able … Read more

Enable SSL in Magento 1.9

To enable SSL in Magento, go to System > Configuration Click on “Web” link on left menu. On this page, set Auto-redirect to Base URL to No. Under “Unsecure” option, change the URL to use HTTPS. Under “Secure” option, set “https” for Base URL. Set “Yes” for both “Use Secure URLs in Frontend” and “Use … Read more

Change Magento 1.9 admin URL

To change Magento admin URL, login to Magento Admin area. Go to System > Configuration On next page, from side menu, click on Admin menu. On next page Use Custom Admin Path = Yes Custom Admin Path = okadmin Replace “okadmin” with whatever folder name you need for your magento admin area. Click “Save Config” … Read more

Clean Magento session folder

On a VPS hosting Magento 1.9 disk was getting full. On checking, found var/session folder taking too much disk space. Disk usage was 34 GB. This folder is used to store PHP session files. You can delete them. I created a cronjob to delete the session files that are older. mkdir /usr/serverok/ vi /usr/serverok/clean-session Add … Read more