Skip to main content

GNU/Linux

The following module is missing from the file system

As you know, Drupal 7.50 introduced the above message for the respective errors that it detects. Drupal provides a page that deals with the problem, namely https://www.drupal.org/node/2487215.

I had to deal with this problem, and although I disabled and un-uninstall the offending module, I run the sql query (drush sql-query "DELETE from system where name = '%old_module1%' AND type = 'module';"), and, in general checked everything that I had to check, the problem persisted.

Renaming / Re-using Drupal modules

So, you have already build a cool module that does a whole bunch of cool stuff. This module has been deployed in production, for a specific customer of yours, and the naming convention of the module follows a pattern related to that specific customer. For example, let's suppose that you have named the module "foo".

Now, you want the functionality that this module provides in a different project. The problem, though, is that you cannot use the same name. You have to change it. You want to name it "bar".

Debian 8, Python3.5 and pip3.5

A mini tutorial on this kind of setup, since Debian 8 currently comes with Python3.4.

In order to manage to compile and install pip3.5 along with the Python3.5, from source, you must install some other stuff first. For pip3.5 specifically, you need libssl-dev.
Overall, you need to install all the following packages.

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev;

How to install Drush 8 (for Drupal 8) in a shared hosting environment

Since Drush does not run as a daemon, it is very easy to install it in your shared hosting account.

First of all, uninstall Drush 7 if you have it installed. Removing the .drush folder is enough.

Then download latest stable release using the code below:

wget http://files.drush.org/drush.phar;

Test your install:

php drush.phar core-status;

Make it executable.

chmod +x drush.phar;

Rename to 'drush' instead of 'php drush.phar':

mv drush.phar drush;