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.
User warning: Table 'db_drupal.advagg_files' doesn't exist query: SELECT * FROM advagg_files in _db_query() (line 148 of /var/www/virtual/peterbowey.com.au/includes/database.mysqli.inc)
Comment | File | Size | Author |
---|---|---|---|
#11 | advagg-1163160-11.patch | 2.32 KB | mikeytown2 |
#5 | advagg-1163160-5.patch | 462 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThat code runs when the module is disabled.
Now the interesting thing is in hook_install I create the db tables.
So my question is how did you test this? Was hook_install not ran when the module was enabled?
module_enable() only runs hook_enable(); drupal_install_modules() will run _drupal_install_module() which runs hook_install()
Comment #2
Peter Bowey CreditAttribution: Peter Bowey commented# Steps used:
Disabled all 4 [advagg] modules; then used Drupal GUI module [uninstall] to [DB] clear the four (4) advagg modules.
Then, because if the above [user warning], I then manually search and delete the MySQL database for advagg 'bits'. I usually find 5 (I delete all 5)
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedOn install I create the advagg_files table. In the disable function I run this database query
SELECT * FROM advagg_files
. This query doesn't run on uninstall.admin/build/modules/uninstall is how I uninstall a module; and if you use this, all the advagg tables will be destroyed via advagg_uninstall.
This the module?
http://drupal.org/project/gui
I don't see how to use this for the administration of your site.
Comment #4
Peter Bowey CreditAttribution: Peter Bowey commentedNo, I just meant the Drupal 'GUI' interface (web) - as apposed to say a 'command' line TUI!
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedSo what your telling me is after uninstalling the advagg module these database tables still exist
advagg_bundles
advagg_files
cache_advagg
cache_advagg_bundle_reuse
cache_advagg_files_data
This I can not repo.
Uninstalling multiple advagg modules at the same time will cause the error you reported though. This should fix it & it has been committed.
Comment #6
Peter Bowey CreditAttribution: Peter Bowey commentedI will test and report!
Not sure how this will paste - as code (from phpMyAdmin):
After normal drupal disable + uninstall, I goto the DB...
1) Search 'advagg' all -> drupal DB
and....
Comment #7
Peter Bowey CreditAttribution: Peter Bowey commentedHere is a 'better' DB dump of the above:
Comment #8
Peter Bowey CreditAttribution: Peter Bowey commentedKeep in mind that I have memcache enabled at two levels; PHP Core + Drupal
Comment #9
Peter Bowey CreditAttribution: Peter Bowey commentedTo #8
Actually, come to think of it, it is three levels of memcache..:
Linux Daemon 'memcache', then PHP core 'memcache', and finally the Drupal 'memcache'
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commentedThe 3 cache_flush_cache tables get variable_set in the cache_get function. There appears to be no API for removing these from the variables table through the cache api. Looks like your using the latest memcache with this patch applied #1155006-10: Invalid argument supplied for foreach() . I don't see a clean way of removing these variables other than running this query
DELETE FROM variable WHERE name LIKE 'cache_flush_cache_advagg%'
.The other 4 can be removed in those modules uninstall hooks. I'll search around for any other variable_del's I might have missed.
Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch has been committed.
Comment #13
paulgemini CreditAttribution: paulgemini commentedI'm still having this problem. Uninstalled Advag and then reinstalled it and I'm getting that error.
Are you saying I should delete that cache tables?
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commented@paulgemini
Which table do you get the error on? advagg_files or cache_advagg_*?
Comment #15
mikeytown2 CreditAttribution: mikeytown2 commentedMoving this back to closed @paulgemini has not replied to this thread.