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.
Base table or view not found: 1146 Table 'odddrupal.system' doesn't exist: SELECT name FROM system WHERE type = 'module' AND name <> 'tadaa' ORDER BY name ASC; Array ( ) in tadaa_module_configuration_form()
This happened for me on a site where the table prefixes has been changed. Of course the table can't be found, since the query that's passed to db_query()
hasn't encapsulated the table names.
We need to make sure that every database table is incapsulated within { and }, as they should be, according to Drupal's documentation.
Comment | File | Size | Author |
---|---|---|---|
#4 | tadaa-encapsulate-query-2353257-3-D7.patch | 788 bytes | bhide.nishad |
#1 | tadaa-encapsulate-query-2353257-1-D7.patch | 704 bytes | bhide.nishad |
Comments
Comment #1
bhide.nishad CreditAttribution: bhide.nishad commentedEncapsulated query in db_select instead of {} or db_query.
Comment #2
bhide.nishad CreditAttribution: bhide.nishad commentedComment #3
bhide.nishad CreditAttribution: bhide.nishad commentedComment #4
bhide.nishad CreditAttribution: bhide.nishad commentedEncapsulated query in db_select instead of {} or db_query.
Adding patch with correct diff.