problem about organic-groups-Collection of common programming errors


  • Drupguy
    views organic-groups content
    I recently upgraded to OG version 7.x-2.3 as part of the security bug fix for OG. Unfortunately, as was indicated, it certainly wasn’t backwards compatible with the version of OG I already had installed, and it messed up my groups big-time. After going back and re-calibrating things (a fresh install isn’t an option), I’ve got it almost back to where it was previous to the upgrade except for one major problem: the Views integration is causing a huge issue, maybe because it doesn’t seem to have been upgraded along with the rest of OG.Since I was getting the error message “call to undefined function og_get_group()” after the upgrade, I searched and fo

  • Antonello
    organic-groups
    In OG 7.x-2.x you can assign roles to group members and you can override roles for a specific group. I am trying to create a view of all admin members. I am filtering the view with PHP.Option #1: Use $roles = og_get_user_r

  • kiamlaluno
    organic-groups
    I have the Organic Groups module working in my site, but

  • Chapabu
    users organic-groups
    How can I ch

  • Wandering Digital
    drupal organic-groups
    We are trying to use Drupal’s rules module to automatically change the Organic Groups member roles of group members when they

  • Sean Cunningham
    views organic-groups entity-reference
    Apologies if this question has already been answered. I’m developing an emergency notification site using Drupal 7 and Organic Groups and currently it’s building-driven — i.e., the buildings are the groups which have users connected to them. They can add notes, photos, etc. and all works well.Now it seems that it would be better to have an event-driven system. Admins could create an event (such as a hurricane) and then assign those buildings that are in the path of the event. I’ve tried creating a new Event content type and using the Entity Reference module, linking the Building list to the Event. However, when it comes time to create a View to display the information I’m running into the following error message when I build the view relationship using Entity Reference: Referenced Entity: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘og_membership.field_affected_buildings_target_id’ in ‘on clause’Here is my exported view (note that it doesn’t have any fields yet but it does have the broken relationship):$view = new view(); $view->name = ‘event_list’; $view->description = ‘Displays all emergency events with affected buildings.’; $view->tag = ‘default’; $view->base_table = ‘node’; $view->human_name = ‘Event List Test’; $view->core = 7; $view->api_version = ‘3.0’; $view-

  • RebDev
    organic-groups forum advanced-forum
    Error:The website encountered an unexpected error. Please try again later.PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column’node.entity_id’ in ‘where clause’: SELECT node.nid AS entity_id,node.vid AS revision_id, node.type AS bundle, :entity_type ASentity_type FROM {node} node WHERE (node.nid =:db_condition_placeholder_0) AND(( ( EXISTS (SELECT na.nid AS nid FROM{node_access} n

  • dan2k3k4
    7 organic-groups
    I had OG working fine except I wasn’t able to upload images to be displayed (but to still keep the File field for PDF uploads as private to just the group).However I’ve gone through and removed the CKEditor module as people suggested to use WYSIWYG with CKEditor (

  • Owen Blacker
    drupal organic-groups
    I’ve taken over a Drupal website. I’m trying to update the og module. It is currently version 1. I tried to upgrade it to the latest version but when I ran update.php it failed. So I thought I’d just try updating it to version 1.4. However, when I did this I then got the following errors when I ran update.php:# user warning: Table ‘og_ancestry’ already exists query: CREATE TABLE og_ancestry ( nid int(11) NOT NULL, group_nid int(11) NOT NULL, is_public int(1) NULL, KEY (nid), KEY (group_nid) ) /*!40100 DEFAULT CHARACTER SET utf8 */; in /homepages/0/d309344694/htdocs/openup6/sites/default/modules/ogr/og.install on line 218. # user warning: Unknown column ‘is_public’ in ‘field list’ query: INSERT INTO og_ancestry (nid, group_nid, is_public) SELECT nid, gid, is_public FROM og_migrate in /homepages/0/d309344694/htdocs/openup6/sites/default/modules/ogr/og.install on line 239. # warning: array_merge() [function.array-merge]: Argument #2 is not an array in /homepages/0/d309344694/ht

Originally posted 2013-11-09 21:06:12.