Friday, April 15, 2016

Flush Cache Command Line Magento2
Enable the cache use this:

php bin/magento cache:enable

Disable the cache use this:

php bin/magento cache:disable

Flush the cache use this:

php bin/magento cache:flush

Clean the cache in the site:

php bin/magento cache:clean
To run single reindexing command

php bin/magento indexer:reindex indexer_name

In magento root directory

php bin/magento indexer:info

In root/bin directory

php magento indexer:reindex

Reindex in magento 

php bin/magento indexer:reindex

Exception printing is disabled by default for security reasons.

Error log record number: 204499362014

Solution:
It's similar to Magento 1, but local.xml.sample is located in pub/errors.

Just rename local.xml.sample to local.xml within pub/errors directory.

Thursday, April 7, 2016

After SUPEE-7405 patch Sales Order Management screen in Magento Backend is blank or the following error is reported in PHP error log:
PHP Parse error: syntax error, unexpected '[' in app/code/core/Mage/Adminhtml/Helper/Sales.php on line 124
SUPEE-7405 is prepared with PHP 5.4 in mind, older PHP versions are incompatible with new language constructions used.
Solution
Change line 124 in app/code/core/Mage/Adminhtml/Helper/Sales.php 
from $links = []; 
to 
$links = array();