Drupal 5.1x. Everythings working beautifully, but...

I have just enabled OG and required views and view rss modules. Have tried to figure out what it wants to configure OG to show up when clicking the Groups link. It directs to http://www.xxxxdomain.com/og (true domain name removed for security here), but returns a Page not found.

Greatest confusion is correctly setting up required Organic groups configuration with section Group home page / Presentation style / Group home page node types: *

--------------------
Pick a View for your group home page. Only Views whose names start with og_ghp_ are eligible. The View determines the layout of your home page. You may alter the presentation using usual the usual Views themeing techniques. Also see the Theme section of the OG README file.
--------------------

Readme file says:

THEMES
------------------
You may wish to stylize nodes which have properties assigned by this module.
--- public vs. private posts are denoted by $node->og_public
--- group assignments (if any) are to be found in $node->og_groups. this is an array of nids. the group names are in $node->og_groups_names.
--- you may wish to omit the node author and time if we are showing a group home page. also consider not showing node links for these nodes since they just add clutter.
--- provided in this package are two template files for the phptemplate engine. One stylizes group nodes as suggested above and the other stylizes all other nodes as suggested above. These can be starting points for your customization of look and feel of the central area of the group home page. you may also investigate themeing of Views for more techniques.
-------------------

Okay, so now I'm feeling just a little stupid cause I don't get what it expect me to do to make the page display with Groups link is clicked. I've deleted and reinstalled, disabled and enabled, but nothing seems to work. What am I missing? Thanks.

Comments

pwolanin’s picture

"Page not found" sounds unusual- but maybe something isn't setup right.

There are a lot of settings for the OG module- you have to pick a group node type (usually you need to make the new type first) among other things. Probably you'll need to spend a half hour or hour to understand what all the settings do.

---
Work: BioRAFT

drupalgirl’s picture

Thanks for your kind reply.

Well...at this point I can't figure out if it wants me to make a custom view for OG home page or what. No matter what I do clicking on the "Groups" link in navigation still renders a page with the theme header, footer, no right or left theme columns, "Page not found" (no Group Directory) in Content section and parsed directly underneath are rendered 2 other content node titles.

Shouldn't OG module already have a default home page view? I believe I followed all the rules.
~ Group Access "Enabled",
~ Group Details set to appear in directory,
~ Group Home Page selected "group"

In presentation section it tells me:
Pick a View for your group home page. Only Views whose names start with >>>> og_ghp_ <<<<< are eligible. The View determines the layout of your home page. You may alter the presentation using the usual Views themeing techniques. Also see the Theme section of the OG README file I READ IT. IT DOESN'T MAKE SENSE..

THEN
Required. Select the node types which act as group home pages. Usually, you will want to create a simple node type called group for this purpose. DID THAT

What I did.
~ I set up content type named "group" with machine readable type named "og_ghp_home",
~ Then went to "Add Group tab" to created a test group,
~ Input "Title field label" and description for test group.

Created test Content in "groups" . Get errors having something to do with Views. For example: Posting content to a group ... the View tab prints this error in the pink block

* warning: Invalid argument supplied for foreach() in /home/domain/public_html/drupaldir/modules/views/views_query.inc on line 81.
* warning: Invalid argument supplied for foreach() in /home/domain/public_html/drupaldir/modules/views/views_query.inc on line 16.
* warning: Invalid argument supplied for foreach() in /home/domain/public_html/drupaldir/modules/views/views_query.inc on line 189.
* warning: Invalid argument supplied for foreach() in /home/domain/public_html/drupaldir/modules/views/views_rss.module on line 55.

Logical to test Views module
I attempt to add a view to no avail because Views / Add action renders completely blank page. When in the "Administer Views" clicking on "Add" tab goes to http://www.domain.com/?q=admin/build/views/add ... renders a blank page no header or anything. The "List" tab says "No views have currently been defined."

Does anyone have a clue what I'm missing? Thanks.

pwolanin’s picture

The node type name you choose "og_ghp_home" could be the problem. This is the name of the default view- I think you misunderstood the settings page. Try changing the machine-readable name of the node type to "group".

---
Work: BioRAFT

drupalgirl’s picture

Thanks. I did that too. Changed machine-readable name to "group". I don't know how that's supposed to make a difference. Nothing changed. The Groups Home page URL still parses in Content body (middle column) "Page not found". Logo header table and footer is there, but still no left and right columns.

No matter what I do in groups configuration, Group Home page directory list will not parse to create a complete groups home page at http://www.domain.com/?q=og. The theme template is there, but no directory of the 3 test groups I've created.

I still believe the problem lies with Views since Views and Views CSS are mandatory modules. Managing Views module to add a view in Views tab linked to http://www.domain.com/?q=admin/build/views/add still yields a completely blank page. I cannot create a view without access to that feature. I have disabled OG module, removed all Views modules and re-installed them. I have updated the database with update.php with no errors in the log. However, nothing changes with Views module.

If this could only be resolved...HELP ANYBODY!!!

petrescs’s picture

Took a while to figure out error cause (I get exactly same errors as you) but not yet sure how to continue.

Seems the new OG (5.x-2.2) has NO default view (like river of news or similar, as before), but instead it relies on custom views (it mention these views should start with og_ghp_*).

So I have created a custom view named og_ghp_view1 (teaser list) and after I have saved it, it appears in admin/og/og (Presentation Style section) as a checkbox. If I select this view and save the settings, I don't get those nasty "missing argument" errors any longer, and my groups display some content (based on my custom view).

Again, am not sure this is the proper way to do it - as far as I can see, my current view module does NOT display anything related to OG so I cannot really create a view to select a particular group related posts unfortunately.

As far as I can see, there is a og_views.inc module in /modules/og folder, which is referenced in og.module. Maybe this was supposed to create some default views for OG to use? I wish I can get an answer here too.
My current modules are the latest (og-5.x-2.2 and views-5.x-1.5 on drupal 5.1). Already run update.php twice after upgrading each module (none was installed for the first time, but actually upgraded from og-5.x-1.x-dev and views-5.x-1.4-2rc1). Had no errors while upgrading.

drupalgirl’s picture

That's interesting. I use Views 5.x-1.5 and Organic groups 5.x-2.2 too. If I could just create a custom view that might do the trick, but I get a blank page clicking ADD link. I'm stuck. Hope developers are fast at work on this issue with a fix.

Organic groups is buggy with Views module, but I love Drupal otherwise.

W A I T I N G...

pwolanin’s picture

Did you check the issue queues for these two modules (especialy OG)?

http://drupal.org/project/issues/og

looks like an issue is posted here: http://drupal.org/node/129599

by petrescs

---
Work: BioRAFT

drupalgirl’s picture

Thanks. My issue posetd yesterday with the same line number errors. That should do the trick.

http://drupal.org/node/129915

obrith’s picture

I get the same "page not found" issue. I cant seem to get the "groups" link in the menu to do anything but resolve to a "page not found" with no menus or blocks. I tried making a new og_ghp_* and am still having no luck. I see all of the default OG views, including og_ghp_ron but still get nothing.

I am able to create and go to groups directly, but the main OG page simply refuses to work.

stephencarr’s picture

I am also getting the same problem. I love the flexibility of Drupal and I really appreciate all the work people have put into it, but the problem is a lot of instructions are very hard to follow. You have to almost speak Drupal to understand, a new language has been invented that speaks in nodes, types, views etc. None of this is helpful when you don't speak Drupal and are trying to follow along step by step on a fresh install with little prior Drupal knowledge.

This is my sticking point, og_ghp_ron is the default view for Groups, and yet it is not associated with a page url like the other OG views are. All it needs to be associated with "og" but you can't edit it.

og_ghp_ron | | OG: Group home page - River of news. | Default | | No Page View | Enabled

aschiwi’s picture

I get a "page not found" too :-(
No other errors, just that one.
Any fixes/ideas/solutions yet?

aschiwi’s picture

in admin/views i found the view "og" with url og/all and that does show a page with all groups. is that the same for you guys?

now then (not sure why) the link groups was gone from my navigation so i created a new menu navigation link called groups with path og/all and that works for me (except one of the groups doesnt wanna show up for some reason no matter how often i save the setting to "list in groups directory"...)

pcdonohue’s picture

If you add the all or my view you can override the system default view and change the url to "og" so that either the all groups or my groups view shows. The previous menu item disappears, probably because it had a path that was set to "og" also. This doesn't seem like great out of the box functionality, but perhaps I'm just confused about the changes from 4.7 to 5.x

Instead of doing the above though, you can also disable the Groups menu item and add your own menu item to point to og/all or og/my depending on your preference.

I'm totally confused as to what the /og/ path is supposed to show (i.e. drupalsite.com/og/), is it intended to show my groups, all groups, only the groups I'm not subscribed to? Is it not supposed to show anything and the groups menu was left in by accident?

As far as I can tell (which isn't far) og_ghp_ron is used to style the group page itself (e.g. the page for group Foo) rather than providing a listing of groups.

P

brophis’s picture

I'm having the same problem and I managed to fix the link as described by pcdonohue above, at least what he said in the second part of the message, not fully sure what he means by what he said in the first paragraph. I created a new custom link that points to og/all and it shows the group list page.
However there are then two links within the content on that page, the "Groups" tab link, and the "My Groups" tab link. So I'm back to square one as the "Groups" link still points to og and i get page not found. Before I go searching through the module code to find the problem I've come up with a quick fix that seems to work for me at least.

I created a folder called og in my root directory (www.domain.com/og/) and in this i put an index.php with the following redirect script:

header( 'Location: http:\/www.domain.com/og/all' ) ;

(Change http:\/ to http:// - post wasn't posting properly with the link in)

I have clean URLs on by the way. I know this is not an ideal fix but it may help some people out for now

pcdonohue’s picture

Hmm, I guess my last post was a bit on the unintelligible side.

I was referring to something stephencarr posted

This is my sticking point, og_ghp_ron is the default view for Groups, and yet it is not associated with a page url like the other OG views are. All it needs to be associated with "og" but you can't edit it.

You can "edit" a system default view by overriding it. You do this by clicking add under the Actions column on the Views admin page. In that new view you've created you can change any of the settings of the view, including the url. So what I was suggesting was that you could override the "og" or "og_my" view and change the url to "og" from "og/all" or "og/my" respectively, depending on what you wanted. My guess is that the groups menu items should point to "all".

By overriding og and changing "og/all" to "og" I was able get almost everything to work. What wasn't working was the tabs that would now show up on the "/og/" page, for some reason I was getting two tabs with the name "Groups" and the links on both of them were wrong (pointed to the root of my drupal installation). So I just turned them off in the overridden og view, by unchecking the Provide Menu option in the Menu subsection of the Page section of the view.

Kind of easier to do than it is to describe...

Any ways, this seems like a bug to me, but maybe I'm just confused.

P

max.beatty’s picture

I had the same problem - all my 'Groups' links all over my site pointed to '?q=og' and that page did not exist. I checked my views and 'og' was set to 'og/all' so then I thought, what if I just redirected requests for this missing 'og' page to the working 'og/all' page. Here's what to do:

Administer >> Site building >> URL Aliases >> Add Alias

Existing system path = og

New path = og/all

fixed everything across the site

Enjoy,
Max

cycas’s picture

I think it's a bug too. There seems no logical reason for the default behaviour producing an error.

Hey ho, at least it's fixable. Module looks really nifty otherwise.

vibrannt’s picture

Define your roles then

- Go to Admin/Site Building/Views
- Click "Add" on the "Og" view
- In the access secion you will see all of the roles that you defined as checkboxes. Check all the boxes off that you want to have access to groups.

This should make the link work.

prokopton’s picture

I tired URL alias, that didn't work.

I tried moving Views and OG folders to the drupal_root/modules directory. That didn't work.

I tried allowing anonymous and authenticated users access. That didn't work.

prokopton’s picture

I tried what brophis suggested and it seems to work.

The domain is (example) http://test.mydomain.com

created folder in http://test.mydomain.com/og

created "index.php" and put it in og folder. Content of "index.php" is:

header( 'Location: /og/all' ) ;

My settings are probably different than yours...

chuckienorton’s picture

What Brophis suggested worked for me also, and took 90seconds!

Thanks!

jasonhendry’s picture

I've had the same problem reported here, the Page Not Found error after intially installing the organic groups module.

For your average homebrew site builder, I thought the page redirection was an over-engineered solution to a problem that should not be there in the first place. Similarly the URL alias is an after the fact fixup to the missing view.

hierographix solution seemed the leat intrusive, easiest solution to implement and worked as explained.

thanks,
loungeroom.

bsonnich’s picture

max.beaty, This worked for me. Thanks!

kingandy’s picture

Do you recall if you had the Comment module disabled when you first encountered this error? It seems to be required for the feed views.

--Andy
Developing Drupal websites for Livelink New Media

++Andy

misty3’s picture

subscribed.

Ideally organic groups should have a simpler approach like orkut communities or phpfox groups

User :

- selects a category and creates a group under this
- uploads a group icon or logo
- by default gets a group forum and group album, totally unrelated to the site forum or album,
- and a group calendar to mark events.
- able to choose related communities which shows up in a side or footer block with "view more" if
things exceed n number of groups

Main or the super site admin

- is able to create categories and delete any group or any content in any group.

prokopton’s picture

Sub.

socialnicheguru’s picture

The interface does not allow me to specify another option for the homepage like a panel if I use og_panels

--
Creating an activelyOUT community of LGBT professionals

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.