Add the following text in preference
{ "word_wrap": true }
Add the following text in preference
{ "word_wrap": true }
Run following commands to cache credentials
$ git config credential.helper store
$ git push https://github.com/repo.git
Username for ‘https://github.com’:
Password for ‘https://USERNAME@github.com’:
check the session path configured in app/etc/env.php
'session' => [
'save' => 'files',
'save_path' => '/var/php/session/',
],
and make sure save_path has proper permission and ownership
Run the following queries
CREATE USER 'phpcode'@'localhost' IDENTIFIED BY '#####';
GRANT ALL PRIVILEGES ON * . * TO 'pramod'@'localhost';
Make sure you have the following line added in ngin configuration
upstream fastcgi_backend { server unix:/var/run/php/php7.0-fpm.sock; }
Or
upstream fastcgi_backend {
server 127.0.0.1:9000;
}
first check for current session life time
php bin/magento config:show admin/security/session_lifetime
If there is no entry issue the following query
insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'admin/security/session_lifetime', 36000);
If entry is there increase the session life time. It can be done in two ways
UPDATE core_config_data SET value = 86400 WHERE path = 'admin/security/session_lifetime';
OR
Issue the following command from magento root directory
php bin/magento config:set admin/security/session_lifetime 86400
php bin/magento cache:clean
This should solve the problem
Issue the following command
sed -i '1,10539d' FILENAME
Run the following command
php bin/magento sampledata:deploy
test
Magento 2 is strict about the XML configuration.
The code <remove src="css/print.css" media="print" /> in magento2-theme-performance/Magento_Theme/layout/default_head_blocks.xml Generates this error.
If you remove the ‘media’ attribute of print.css this issue is resolved.
Following are the fields you need to set 0 or 1 in core_config_data table to minify css/js files.
dev/js/minify_files - Minify Js
dev/css/minify_files - Minify css