[SOLVED] Installation failed, reverting ./composer.json and ./composer.lock to their original content. [RuntimeException] Could not delete /sites/default/default.settings.php or default.services.yml

Drupal error Installation failed, reverting ./composer.json and ./composer.lock to their original content. [RuntimeException] Could not delete /sites/default/default.settings.php or default.services.yml

On Drupal 8 or Drupal 9, you might encounter any of the following error messages when running Drush or Composer commands in the command line. For instance, any of these errors can happen while installing a new module via composer, or running drush updb, or any CLI commands:

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

and related, similar errors like:

[RuntimeException]
  Could not delete /sites/default/default.settings.php:

 

How to download and install Drupal 9 Webform Libraries, the easy way

how to download webform module external libraries in drupal 9

Installing the required Webform libraries to your Drupal 9 website can be such a mess, oftentimes messing around with your composer file and causing errors, and rendering your D9 website unusable.

The documentation and different options and ways to do this properly can also be daunting as there does not seem to be a standard way to do this.

Theming and Overriding jQuery UI Accordion CSS in your CMS modules or plugins

Some tips found from jQuery theming https://learn.jquery.com/jquery-ui/theming/

Example in Drupal 9

To override the jQuery UI Accordion module's CSS: 

  1. Declare in your theme's YML library the same CSS file provided by the module: jquery-ui.theme.css
  2. Copy the same CSS from the module
  3. Override, adjust as needed

Drupal 9/8 Views - How to Group Contents categorized by Taxonomy Terms: Series 1

drupal-views-thumbnail

Looking for a solution in working with grouping with Drupal views? Trying to group content items and group according to class or some classifications or in Drupal is called grouping content items by taxonomy terms.

 

How to enable and force website HTTPS redirect from cPanel

cPanel-thumbnail

What is cPanel

cPanel is a control panel that uses an online Linux-based graphical interface (GUI) to simplify website and server management. You can use cPanel to publish websites, manage domains, organize online files, and create email accounts, among other things.

What is HTTPS 

HTTPS (Hypertext Transfer Protocol Secure) is a secure version of the HTTP protocol that encrypts and authenticates data using the SSL/TLS protocol.

How to access and login to your webmail account? What is Webmail?

Our domain-based webmail is easy to use and very accessible. To log in and use your webmail from our accounts, follow the simple steps below:

How to connect by SSH using Putty and Pageant in Windows

How to connect by SSH private key files using Putty and Pageant in Windows

Below example is an easy reference on how to connect via secure shell access with a Siteground account, to date February 2021 (to note the SG client platform has undergone changes and migrations from a cPanel platform to a custom one).

Drupal Groups Module How to create, display a list of related group content nodes in Views

Drupal Groups Module How to create, display a list of related group content nodes in Views

In Drupal 8, we have implemented a membership-type website that will control and display views or lists of contents according to a member's membership group. The Drupal Group module seems to be the most ideal solution https://www.drupal.org/project/group.

Normally, in this scenario, one will set up the group module, content types, permissions, etc. like described below:

Hide / Disable administration menu items from the admin toolbar in Drupal according to roles / user group permissions

Drupal administration menu toolbar

If Drupal's administration toolbar is still showing admin menu items to non-admin users, or are still displayed even if these non-admin users do not have the permissions to such administrative tasks, this article shows how to troubleshoot the issue.

Pages

Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now