How to get list of users using Drush cli

Please try to use one of the following

drush users:list
drush user-list
drush uinf $(drush sqlq "SELECT GROUP_CONCAT(name) FROM users_field_data")
drush uinf $(drush sqlq "SELECT GROUP_CONCAT(uid) FROM users")
drush uinf $(drush sqlq "SELECT GROUP_CONCAT(name) FROM users")

Don’t forget about mysql prefix if any

cat sites/default/settings.php
Read the rest

Drupal 7 Content Encoding Error

Append into settings.php

$conf = array(
'cache' => '0',
'preprocess_css' => '0',
'preprocess_js' => '0',
'block_cache' => '0',
'page_compression' => '0',
);

Then start investigation which one is cause of the error

Source: https://drupal.stackexchange.com/questions/78764/content-encoding-error-after-enabling-cache-aggregation-and-compression

 … Read the rest

How to install multiple Drush versions on the account

It requires a lot of resources, so double check if you have enough

The latest dev version to drush/ folder:

mkdir drush
cd drush
curl -sS https://getcomposer.org/installer | php
./composer.phar require drush/drush:dev-master
cd
echo "alias drush='~/drush/vendor/bin/drush'" >> .bashrc
source .bashrc

Drush 9 version

mkdir drush9
cd drush9
curl -sS https://getcomposer.org/installer
Read the rest

Drupal 8 index.php file

<?php
/**
@file
The PHP page that serves all page requests on a Drupal installation.
*
All Drupal code is released under the GNU General Public License.
See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
*/
use Drupal\Core\DrupalKernel;
use Symfony\Component\HttpFoundation\Request;
$autoloader = require_once 'autoload.php';
Read the rest

Drupal HTTPRL error

Error: Your system or network configuration does not allow Drupal to access web pages. This could be due to your webserver configuration or PHP settings.

Fix:

admin/config/development/httprl

https://DOMAINNAME.COM/admin/config/development/httprl

IP Address to send all self server requests to -1 to use hostname instead of IP address… Read the rest

How to install Drupal Console

If you don't have Drush and Composer installed yet, please do it firstly click here

cd
mkdir drupalconsole
cd drupalconsole
curl https://drupalconsole.com/installer -L -o drupal.phar
chmod +x drupal.phar
echo "alias drupal='~/drupalconsole/drupal.phar'" >> ~/.bashrc
source .bashrc

Navigate into your site root where you have Drupal installed

cd /home/$USER/public_html
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader --sort-packages

Check how its working:

drupal site:status
drupal about

Useful URLs:

https://docs.drupalconsole.com/en/getting/composer.htmlRead the rest