Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: indytechcook commentedThis occurs if you don't have the block module enabled.
http://drupal.org/commitlog/commit/22232/9ffe97554708d54a4905ed2eeae1ef9...
Comment #2
core44 CreditAttribution: 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 CreditAttribution: 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!