When running an installation profile with PHP 5.5 that enables the Taxonomy module the installer fails with the following error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'taxonomy_vocabulary' doesn't exist
I ran the install via "drush si" and it results in the following:
Starting Drupal installation. This takes a few seconds ...
WD registry: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'taxonomy_vocabulary' doesn't exist: SELECT name, machine_name, vid FROM {taxonomy_vocabulary};
Array
(
)
in taxonomy_vocabulary_get_names() (line 991 of modules/taxonomy/taxonomy.module).
WD php: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'taxonomy_vocabulary' doesn't exist: SELECT name, machine_name, vid FROM {taxonomy_vocabulary};
Array
(
)
in taxonomy_vocabulary_get_names() (line 991 of modules/taxonomy/taxonomy.module).
Cannot modify header information - headers already sent by (output started at /root/.composer/vendor/drush/drush/includes/output.inc:38) bootstrap.inc:1217
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'taxonomy_vocabulary' doesn't exist: SELECT name, machine_name, vid FROM {taxonomy_vocabulary}; Array
(
)
in taxonomy_vocabulary_get_names() (line 991 of modules/taxonomy/taxonomy.module).
Drush command terminated abnormally due to an unrecoverable error.
The server is running PHP 5.5.9 on Ubuntu 12.04:
$ php -v
PHP 5.5.9-1+sury.org~precise+1 (cli) (built: Feb 13 2014 15:53:53)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies| Comment | File | Size | Author |
|---|---|---|---|
| #10 | panelizer-n2211313-10.patch | 2.16 KB | damienmckenna |
Comments
Comment #1
damienmckennaComment #2
damienmckennaI tried adding the following to the top of install.php but it made no difference:
Comment #3
damienmckennaAdding the opcache.enable=0 line straight into php.ini (and restarting Apache) made no difference either.
Comment #4
damienmckennaFurther debugging..
I modified taxonomy_vocabulary_get_names() in taxonomy.module to add these at the top of the function:
This removes the arguments passed to each function in the backtrace, avoiding an inane volume of output.
The resulting output was:
Comment #5
damienmckennaMoving this to the Panelizer issue queue as it's the module triggering the error.
Comment #6
damienmckennaMy question is: is CTools at fault for triggering ctools_get_plugins() or is Panelizer at fault for entity_get_info()?
Comment #7
pfrenssenComment #8
pfrenssenThis error is also symptomatic of this problem:
array_keys() expects parameter 1 to be array, null given common.inc:7032I think this is better solved on the Panelizer side, or in core. CTools needs to provide the classes of its plugins to the registry.
Comment #9
travist commentedI ran into a very similar problem, but the issue was with the Feeds module. I assume that this module does something similar, but apparently if you call
entity_get_info()from within actools_get_plugins()has the potential to create a wicked race condition that is hard to debug. The issue below may help.#2223853: Installing taxonomy module after this module causes a fatal.
Comment #10
damienmckennaI write up something similar to https://drupal.org/files/issues/2223853-fix_installing_taxonomy_module-7... from #2223853: Installing taxonomy module after this module causes a fatal.], but it seems to cause more problem than it solves.
Comment #11
damienmckennaComment #12
damienmckennaClosed a duplicate: #2268331: Fatal during installation profile
Comment #13
hefox commented3 modules experiencing this, worth making a ctools or core issue to fix instead?
edit: just saw the core issue, cheers!