The Commerce Addressbook module refuses to install, but does not generate any UI error messages or log messages in dblog.

TO REPRODUCE:
Starting from a clean drupal 7.51 installation, with the latest versions of required dependency modules installed, sequentially install drupal commerce modules via the modules UI page.

Install Drupal Commerce modules until the requirements for Commerce Addressbook are installed.

Check the box to enable - Commerce Addressbook.

The system remains busy momentarily and then refreshes the module pages.

The Commerce Addressbook module enabled checkbox is no longer checked and the module is not enabled.

The top of the page does not display error messages or notifications of any kind.

The Commerce Addressbook simply refuses to install and does not provide any feedback whatsoever regarding the reason.

The failed Commerce Addressbook installation does NOT produce any log messages either.

---

I have an online sandbox website setup where this problem can be duplicated.

Comments

sprite created an issue. See original summary.

sprite’s picture

A screencast video of the installation failure behavior described above is available in the following avi video file available for download:

http://www.nettix.net/drupal-7.51-commerce-addressbook-install-failure.avi

A complete .zip file copies of the mysql database and the file system of the installation are also available for delivery to anyone who wishes to reproduce this problem in a sandbox/testing website installation.

jsacksick’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Closed (duplicate)

I couldn't replicate this issue, I successfully installed it on different servers.
Marking this issue as duplicate of #2821319: all drupal commerce contrib modules fail to install.

sprite’s picture

Priority: Normal » Critical
Status: Closed (duplicate) » Active

I have found the hack workaround for the Drupal Commerce "contributed" module installation problem.

It is apparently a bug that has existed in Drupal Core for years without being fixed.

For additional information, read the following Drupal bug reports:

Drupal Bug Report - Drupal Core - Commerce Contrib Module group names with brackets (parentheses) cause problems
https://www.drupal.org/node/2665152

Drupal Bug Report - Drupal Commerce - Commerce modules get disabled randomly
https://www.drupal.org/node/2448461

The hack workaround for this serious Drupal code bug, a bug that would surely stump the average Drupal user, is that every single .info module configuration file associated with every module wherein the "package" name uses parentheses, square brackets, or braces, to name the module group (called a "package") must be edited to remove the parentheses, brackets, braces, or whatever, from its "package name".

For example, if the package line in a module's *.info file contains the text"

package = Commerce (contrib)

that line must be changed to read:

package = Commerce contrib

This *.info file modification hack must be performed on every module where the problem occurs. There are dozens of them.

This problem in Drupal Core has apparently been known for years, but nobody involved in core has bothered to fix it.

For anyone who would like to see the problem in action and to see it duplicated for themselves, I have a sandboxing site at:

http://d7.nettix.net

to which I can provide an admin login by private message so that Drupal module maintainer can observe and replicate this problem. I can restore that sandbox site's original state from backup in a matter minutes afterward, so anyone interested need not worry about any changes made to it. It is just there for diagnosing this sort of problem.

bojanz’s picture

Priority: Critical » Normal
Status: Active » Fixed

Closing, since this is not a Commerce or a Commerce Addressbook bug, it's an incompatibility between Drupal core and Suhosin.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.