Andrew Fletcher published: 17 May 2022 1 minute read
How do you rebuild node access permissions using CLI?
To rebuild permissions from the command-line using Drush:
drush php-eval 'node_access_rebuild();'
Or using Drupal Console:
drupal node:access:rebuild
Related articles
Andrew Fletcher
•
05 Apr 2024
Drupal 9 to 10 upgrade an example of the actual steps taken
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written earlier... Upgrading Drupal 9 to Drupal 10. However, the point of difference is this article works through the actual action steps of the upgrade.Planning and testing is critical for the Drupal to version 10 process to...
Andrew Fletcher
•
03 Apr 2024
Using Drush to run SQL commands
To run a SQL command using Drush, use the following sql-query commanddrush sql-query "COMMAND"As an example, in the following I will remove all of the records in the Watchdog. Delete from watchdogTo empty (clear) the watchdog table, which contains Drupal's log messages, using the above noted...
Andrew Fletcher
•
12 Mar 2024
Drush open_basedir restriction error
Drush open_basedir restriction errorPHP Warning: include(): open_basedir restriction in effect. File(/usr/share/drush/includes/startup.inc) is not within the allowed path(s): (/var/www/vhosts/{domain}/:/tmp/) in /usr/share/drush/drush on line 113
PHP Warning: ...