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.
Hi,
very excited to try out your module. just wanted to report an error after installation. PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jroot.contextual_view_modes' doesn't exist: SELECT nid, vid, context_data FROM {contextual_view_modes} WHERE vid IN(:vids_0); Array ( [:vids_0] => 1 ) in contextual_view_modes_node_load() (line 172 of /Users/jenwolfe/Sites/acquia-drupal/sites/all/modules/contextual_view_modes/contextual_view_modes.module).
Comments
Comment #1
kaizerking CreditAttribution: kaizerking commentedError
The website encountered an unexpected error. Please try again later.
Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'og.contextual_view_modes' doesn't exist: SELECT nid, vid, context_data FROM {contextual_view_modes} WHERE vid IN(:vids_0); Array ( [:vids_0] => 23 ) in contextual_view_modes_node_load() (line 172 of C:\xampp\htdocs\xxxxx\sites\all\modules\contextual_view_modes-a3b8a45\contextual_view_modes.module).
Comment #2
sherakama CreditAttribution: sherakama commentedThanks for the report guys. I'll look into this.
Comment #3
sherakama CreditAttribution: sherakama commentedForgot to include the .install file in the git repo.
I have added it to the project and removed the previous release. I will push up a new release with this fix shortly. In the mean time you may check out the 7.x-1.x branch in order to get the fixes.
Thanks again,
Comment #4
kaizerking CreditAttribution: kaizerking commentedwhich version should we use now?
Alpha or dev?
Comment #5
sherakama CreditAttribution: sherakama commentedThe Dev branch and alpha should be the same now. I was trying to push up an alpha branch instead of the flat 1.0 tag but I havent figured out Drupal's tags/branches and release handling thing 100% yet.
Project has been updated.
Comment #6
g76 CreditAttribution: g76 commentedthank you so much!
Comment #7
kingswoodute CreditAttribution: kingswoodute commentedHi I got the same error - full error message below.
I'm using version 7.x-1.0 and I just installed today.
It's funny that more people haven't installed this module. I would have thought it would have been applied to lots of sites. I personally want to use it so that watermarks for images on nodes are not displayed for authenticated users.
Keep up the good work and thanks heaps.
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mee1127505155586.contextual_view_modes' doesn't exist: SELECT nid, vid, context_data FROM {contextual_view_modes} WHERE vid IN(:vids_0, :vids_1, :vids_2, :vids_3, :vids_4, :vids_5, :vids_6, :vids_7, :vids_8, :vids_9, :vids_10, :vids_11, :vids_12, :vids_13, :vids_14, :vids_15, :vids_16, :vids_17, :vids_18, :vids_19); Array ( [:vids_0] => 19 [:vids_1] => 55 [:vids_2] => 86 [:vids_3] => 91 [:vids_4] => 97 [:vids_5] => 98 [:vids_6] => 103 [:vids_7] => 115 [:vids_8] => 120 [:vids_9] => 123 [:vids_10] => 124 [:vids_11] => 125 [:vids_12] => 126 [:vids_13] => 203 [:vids_14] => 204 [:vids_15] => 208 [:vids_16] => 209 [:vids_17] => 211 [:vids_18] => 238 [:vids_19] => 240 ) in contextual_view_modes_node_load() (line 172 of /home/content/09/8399109/html/sites/all/modules/contextual_view_modes/contextual_view_modes.module).
Comment #8
PedroKTFC CreditAttribution: PedroKTFC commentedI presume you sorted it out by installing the right version?
I too agree I can't understand why it's more widely used (and in fact why it wasn't there already!). Have you seen this thread https://drupal.org/node/1857546? Even better functionality coming soon!
Comment #9
kingswoodute CreditAttribution: kingswoodute commentedHi PedroKTFC,
Thanks very much for your reply. I really appreciate it.
Installed the other version and it works fine and that other thread answered my very next question.
Will subscribe to that because I definitely want to set a default for one of my node content types or be able to bulk-apply the setting to all nodes of a certain content type.
Yeah I can't believe more sites don't differentiate display by user type. I have no doubt there must be heaps of sites that do but they're achieving it by another route like maybe Panels or Organic Groups. Either way, this sort of functionality that can be easily applied to a node content type I think will get picked up once people realise it's available.
Thanks again!
Comment #10
sherakama CreditAttribution: sherakama commentedNew 7.x-1.2 version release should be stable for you now.
Thanks for all the support!
Comment #11
sherakama CreditAttribution: sherakama commented