In attempting to install the APC module in a Drupal 7.14 multisite environment, I encountered the following error message when attempting to access actual Drupal nodes after what appeared to be a successful and problem free install of the APC module:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dotnet-tactix.trigger_assignments' doesn't exist: SELECT ta.aid, a.type, a.label FROM {trigger_assignments} ta LEFT JOIN {actions} a ON ta.aid = a.aid WHERE ta.hook = :hook ORDER BY ta.weight; Array ( [:hook] => node_view ) in trigger_get_assigned_actions() (line 171 of /var/www/vhosts/fintactix.net/httpdocs/modules/trigger/trigger.module).
The following code was placed in the settings.php file:
/**
* Add APC Caching.
*/
$conf['cache_backends'] = array('sites/all/modules/contrib/apc/drupal_apc_cache.inc');
$conf['cache_default_class'] = 'DrupalAPCCache';
//$conf['apc_show_debug'] = TRUE; // Remove the slashes to use debug mode.
I've also confirmed the APC module code is available in the sites/all/modules/contrib folder.
Removing the APC code from the settings. php file and updating the file on my host server eliminates the error message and the site functions normally. I've tested and retested this to confirm.
Please let me know any additional information you need to investigate this, or whether you feel I should be looking in a different direction given the information presented. Thanks!
Comments
Comment #1
sharifudinrizal commentedSubscribing..
Comment #2
R.Muilwijk commentedComment #3
twistor commentedI'm guessing this is happening during a re-install.
If you drop the database and re-install, apc isn't aware of this and thinks lots of modules are still enabled.
There are a few options:
The last option would work, but it complicates the code for a one-time thing.
Comment #4
avpadernoThis issue has not seen activity in over 10 years. I am therefore closing this issue to clean up the issue queue.
Feel free to re-open and update this issue if you feel this issue is still relevant and of importance.