Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PDOException: SELECT COUNT(*) AS expression FROM {block} block WHERE (module = :db_condition_placeholder_6) AND (delta = :db_condition_placeholder_7) AND (status = :db_condition_placeholder_8) - Array ( [:db_condition_placeholder_6] => user [:db_condition_placeholder_7] => online [:db_condition_placeholder_8] => 1 ) SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dp7.block' doesn't exist in system_performance_settings() (line 1306 of E:\phpnow\htdocs\dp7\modules\system\system.admin.inc).
Comment | File | Size | Author |
---|---|---|---|
#15 | issue_427296_v4.patch | 2.86 KB | taz88ny |
#10 | issue_427296_v3.patch | 1.88 KB | taz88ny |
#5 | issue_427296_v2.patch | 1.75 KB | taz88ny |
#4 | issue_427296.patch | 1.46 KB | taz88ny |
Comments
Comment #1
reus CreditAttribution: reus commentedComment #2
taz88ny CreditAttribution: taz88ny commentedComment #3
stewsnoozesubscribe
Comment #4
taz88ny CreditAttribution: taz88ny commentedI added a condition to check if the table exists before attempting to run the query.
Not all modules have to be disabled and uninstalled, only the blocks module needs to be uninstalled to reproduce the error.
Comment #5
taz88ny CreditAttribution: taz88ny commentedIndented the code inside of the condition I added.
Comment #6
taz88ny CreditAttribution: taz88ny commentedComment #7
taz88ny CreditAttribution: taz88ny commentedComment #8
netaustin CreditAttribution: netaustin commentedOtherwise, looks clean and the logic seems right.
Comment #9
netaustin CreditAttribution: netaustin commentedComment #10
taz88ny CreditAttribution: taz88ny commentedComment #11
taz88ny CreditAttribution: taz88ny commentedApplied changes recommended by netaustin.
Comment #12
sharda_ram CreditAttribution: sharda_ram commentedsubscribe
Comment #13
Damien Tournoud CreditAttribution: Damien Tournoud commentedAll the code of system_performance_settings() that relates to the block module should be moved to the block module. More precisely: the block module should implement
hook_form_system_performance_settings_alter()
, and insert its own code inside the form.Comment #14
taz88ny CreditAttribution: taz88ny commentedI've applied the changes recommended by Damien Tournoud. The resulting description for the "caching mode" form on the "admin/settings/performance" page will be slightly different. What was once the second paragraph will now be the third. Let me know if this will be an issue.
Comment #15
taz88ny CreditAttribution: taz88ny commentedComment #16
taz88ny CreditAttribution: taz88ny commentedComment #17
kresimir CreditAttribution: kresimir commentedsubscribe
Comment #18
Damien Tournoud CreditAttribution: Damien Tournoud commentedIt was as simple as that! Perfect, thanks taz88ny!
Comment #19
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Yah. Thanks.