I have a problem previewing all nodes attributed to a group . However i can post the node successfully .
This problem seems to occurs with as all of my other OG related modules are disabled.

* warning: Invalid argument supplied for foreach() in /modules/node/node.module on line 521.
* warning: implode() [function.implode]: Invalid arguments passed in /modules/node/node.module on line 525.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /includes/database.mysql.inc on line 172.

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

perhaps clear caches under admin/settings/performance? anyone else see this? this could happen if you have custom themeing. maybe use garland theme to check this out.

christefano’s picture

I'm having the same problem and have just started looking into it. #278982 and #278983 have been marked as duplicates.

christefano’s picture

Priority: Normal » Critical

This is a strange problem. Following the OG 5.x-7.3 update, the default views provided by OG are indeed missing from the Views admin listing on a site I maintain. I haven't seen any changes made to OG (og.install, og.module, og_views.inc, etc.) in the last week that would cause this.

In the duplicate issues linked to above, others have reported "fixing" this by disabling attachments and comments on their group-enabled content types. This not only doesn't make sense to me, it also didn't work when I tried it. :) Neither did switching themes, clearing caches or burning incense.

Here's the SQL error I get (on Drupal 5.7, MySQL 5.0.32 and PHP 5.2.0-8).

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= '') AND (.og_type = '') ORDER BY node_title ASC, node_title ASC LIMIT 0, 50' at line 1 query: SELECT DISTINCT(node.nid), node.title AS node_title, node.changed AS node_changed, users.name AS users_name, users.uid AS users_uid, og.count AS og_count, og_uid.mail_type AS og_uid_mail_type, og_uid.managelink AS og_uid_managelink FROM node node INNER JOIN users users ON node.uid = users.uid WHERE (node.status = '1') AND (.currentuidsimple = '') AND (.og_type = '') ORDER BY node_title ASC, node_title ASC LIMIT 0, 50 in /var/www/includes/database.mysql.inc on line 172.
christefano’s picture

Title: Problem previewing all nodes attributed to a group » OG Views filters are missing

After revisiting this, I realized that disabling comments and attachments on OG-enabled content types actually does make a river of news show up when viewing a group with posts in it. The default views (og_search, og/all, etc.) are still missing, however, from the Views admin listing and OG configuration form.

dugh’s picture

It was a bug with the global redirect module. Update global redirect and the organic groups views should reappear.

christefano’s picture

Title: OG Views filters are missing » OG Views filters are missing with Global Redirect 1.3 installed
Project: Organic groups » Global Redirect
Version: 5.x-7.3 » 5.x-1.3-1
Component: og.module » Code
Status: Postponed (maintainer needs more info) » Closed (duplicate)

This is indeed a problem with Global Redirect. That explains why I couldn't find a problem in OG...

This is marked as a duplicate of #279530.