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

indytechcook’s picture

Status: Active » Fixed

This occurs if you don't have the block module enabled.

http://drupal.org/commitlog/commit/22232/9ffe97554708d54a4905ed2eeae1ef9...

core44’s picture

Thanks you. Is bean dependent on the core block module or not, im confused? Some of the branches have a dependency and some dont.

indytechcook’s picture

Hello 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!

Status: Fixed » Closed (fixed)

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