Viewing 1 to 10 of 82 items
Archive | Experience RSS feed for this section

HTACCESS – Redirecting a web directory to another directory

Redirecting within the same domain Using htaccess in your root level of your web server, how you redirect one page to another is: RewriteRule ^url-string-to-redirect$ [R=301,L] Or Redirect 301 /path/to-old-url To redirect the contents of a whole directory to another use the below: RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L] To redirect the contents of  Full Article…


Magento 2 – How to fix Exception SessionHandler

The Issue You may face the following exception during the Magento 2 installation: 12345 exception ‘Exception’ with message ‘Warning: SessionHandler::read(): open(..) failed: No such file or directory (2) ../magento2/lib/internal/Magento/Framework/Session/SaveHandler.php on line 74’ in ../magento2/lib/internal/Magento/Framework/App/ErrorHandler.php:67 The error occurs only in older code versions. To be more exact, you won’t see this exception working with versions from September 29,  Full Article…


Magento 2 – Reindex Error: Index is locked by another reindex process. Skipping.

Problem During full reindex in CLI (Command Line Interface, SSH), Magento returns error message like “index is locked by another reindex process. Skipping.” Reason Error is possible if the previous reindex process wasn’t completed successfully. There are a few possible reasons for this issue: Fatal PHP error during reindexing Mysql Error (like timeout) Memory limit  Full Article…


Magento – Delete Empty Null Attribute Options

By default, if you enter attribute options in the back end, you can’t add an empty option to the attribute. Maybe these empty options were added via a custom script. Here is the custom script that helps you to remove the empty options of the attributes 1.Create store_root/shell/empty.php file with code snippet: 2.Run this PHP script to  Full Article…


Ubuntu – Laptop’s touchpad doesn’t work

In this tip, we will see a solution that will fix a non-working laptop’s touchpad. The problem often occurs after upgrading your Ubuntu distribution to Ubuntu 16. Solution Open the terminal and run these commands: sudo apt update sudo apt install xserver-xorg-input-synaptics or sudo apt install –reinstall xserver-xorg-input-synaptics Then reboot your laptop: sudo reboot Hope  Full Article…


Magento – Get the last order ID

There are many ways to get the last order ID in Magento, here is the detail:  1. From the checkout session.   $lastOrderId = Mage::getSingleton(‘checkout/session’) ->getLastRealOrderId(); $orderId = Mage::getModel(‘sales/order’) ->loadByIncrementId($lastOrderId) ->getEntityId(); This solution will not work in case you want to get the last order ID in the backend. 2. From the model. $orders =  Full Article…