Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.0-rc9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2013 at 08:35 UTC
Updated:
17 Feb 2013 at 18:40 UTC
Im having an error when trying to disable bean without the core block module installed. If I enable core block module I can disable and uninstall bean without error.
WD php: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_site_name.block' doesn't exist: DELETE FROM {block} [error]
WHERE (module = :db_condition_placeholder_0) ; Array
(
[:db_condition_placeholder_0] => bean
)
in bean_disable() (line 235 of .../bean/bean/bean.install).
Cannot modify header information - headers already sent by (output started at .../drush/includes/output.inc:37) bootstrap.inc:1212
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_site_name.block' doesn't exist: DELETE FROM {block}
WHERE (module = :db_condition_placeholder_0) ; Array
(
[:db_condition_placeholder_0] => bean
)
in bean_disable() (line 235 of ../modules/contrib/bean/bean.install).
Comments
Comment #1
indytechcook commentedThis occurs if you don't have the block module enabled.
http://drupal.org/commitlog/commit/22232/9ffe97554708d54a4905ed2eeae1ef9...
Comment #2
core44 commentedThanks you. Is bean dependent on the core block module or not, im confused? Some of the branches have a dependency and some dont.
Comment #3
indytechcook commentedHello core44,
The block module isn't required anymore. It used to be and there was so left over code in the disable that removing records from the block tables. The commit I linked to added a check to make sure the block module was installed before running the code.
The block module is just one possible way to expose beans to placement.
Cheers!