Closed (fixed)
Project:
OG Forum
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2007 at 14:04 UTC
Updated:
12 Nov 2007 at 22:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
rconstantine commentedFirst, it sounds like you didn't SETUP regular forums before installing og_forum. Is that correct? Did you see the note on the project page telling you to do so? This is the most common error users make.
Second, you should be using the dev version of this module just like the project page says. So start over with the og_forum installation. Hopefully you can by simply disabling AND uninstalling og_forum. Maybe uninstall core forum module as well. Then install forum, set it up per the handbook (I think someone also posted instructions in another issue here), and then install og_forum. You can test regular forums before installing og_forum by creating a forum container and a forum. Delete them after you install og_forum.
As for forum topics in menus - forum topics are nodes, so they will never appear in a menu unless you do a custom menu item.
As for the 'Group forum' link missing from the group context menu, that should solve itself when you install and setup everything correctly.
Comment #2
shmatty29 commentedHi
Thanks for the reply.
I have un-installed the forum and og_forum module, and re-installed them (og_forum 5.x-2 dev) and set the core forum back up accordingly using forum instructions from the post. I have not yet enabled the og_forum.
Upon setting up the core forum, I set up a container and a forum all worked fine.
I then deleted the container leaving the forum category section empty.
I have now enabled the og_forum.
I then logged in as group manger and the create forum and group links are both displayed.
Upon clicking the group forums link the group forum section is empty as expected.
Upon clicking the create forum link I get the following error.
warning: Invalid argument supplied for foreach() in public_html/modules/og_forum/og_forum.module on line 702.
warning: Invalid argument supplied for foreach() in public_html/modules/og_forum/og_forum.module on line 702.
Any Ideas???
Thanks, Matt
Comment #3
rconstantine commentedI noticed one problem. You said:
, but it should not be empty. The error messages you got were probably due to there being no container and no forum for the group in question. If you go to admin/og/og_forum, you will notice a button labeled 'Update old groups'. I assume the group in which you were investigating was a preexisting group. You need to click this button. Then it looks like everything will be well.
Since I obviously haven't gotten around to updating the README that I inherited, I'd appreciate it if you could list all steps you took, including URLs, buttons pressed, etc. so I can cut and paste them into the README.
Comment #4
shmatty29 commentedHi
Here is an update on what i have done.
1. Disabled OG_Forum module via administer/modules
2. Disabled forum module administer/modules
3. Un-installed forum module and made sure the table had been dropped from the data base.
4. Reinstalled the forum module and enabled the module via administer/modules
5. Located forum setting in administer/forum, clicked add container and then added a forum in the container. Both have been added successfully.
6. Now clicking create content/forum topic/ and have created a topic in the forum that i just set up successfully.
7. I am now deleting the forum and the container. Both where successfully deleted.
8. Enabled OG_forum via administer/modules. The module OG_Forum has been successfully created
9. Located OG_forum settings via admister/Organic Groups Forums, clicked link.
10. Clicked the button update old groups - results are 0 groups had forums created, The configuration options have been saved. There are three existing groups in the website.
11. Logout as supper user (using fire fox)
12. Logged as a group manager using (i.e.6)
13. Located my group
14. Both create Forum topic and Group forums links are viable.
15. Clicked Group forums link, site shows a forum container with no posts. please view attached image Group forumsHi
Here is an update on what i have done.
1. Disabled OG_Forum module via administer/modules
2. Disabled forum module administer/modules
3. Un-installed forum module and made sure the table had been dropped from the data base.
4. Reinstalled the forum module and enabled the module via administer/modules
5. Located forum setting in administer/forum, clicked add container and then added a forum in the container. Both have been added successfully.
6. Now clicking create content/forum topic/ and have created a topic in the forum that i just set up successfully.
7. I am now deleting the forum and the container. Both where successfully deleted.
8. Enabled OG_forum via administer/modules. The module OG_Forum has been successfully created
9. Located OG_forum settings via administer/Organic Groups Forums, clicked link.
10. Clicked the button update old groups - results are 0 groups had forums created, The configuration options have been saved. There are three existing groups in the website.
11. Logout as supper user (using fire fox)
12. Logged as a group manager using (i.e.6)
13. Located my group
14. Both create Forum topic and Group forums links are viable.
15. Clicked Group forums link, site shows a forum container with no posts. please view attached image Group_forums.jpg label 1.
16. Clicked Create Forum topic. The editing page appears but with an empty drop down box in the Forums categorise. Please view Group_forums.jpg label 2.
So it would appear that the reinstalling the forum and og_forum has removed the original error.
warning: Invalid argument supplied for foreach() in public_html/modules/og_forum/og_forum.module on line 702.
warning: Invalid argument supplied for foreach() in public_html/modules/og_forum/og_forum.module on line 702.
However the group manager is now unable to post into group forums. I have checked and double checked the access control area and the only way to prevent this is to enable access control on administer forum for group manager which will allow the group managers to control all the forum topics and posts, which is not good.
Any ideas???
thanks, matt
Comment #5
shmatty29 commentedSorry ignore the first 15 lines
Thanks, Matt
Comment #6
rconstantine commentedLooks like item 10 shows a bug. If you have 3 groups existing, you should have 3 forums created at that step. I'll see if I can find something that tells me why that didn't work for you. There may have been a previous issue on this that I thought I fixed. It may be a case where the original issue poster never got back to me to let me know if the fix actually worked or not. So you poke around in the issue queue here (probably 'closed' issues), and I'll check the existing code.
Comment #7
shmatty29 commentedThanks, for the replay
I will have a good look around today.
Thanks, Matt
Comment #8
shmatty29 commentedHi, I think I have an idea where the problem is accruing.
I have created a new post as it involves 3 different modules
http://drupal.org/node/186163
Thank, matt
Comment #9
rconstantine commentedI checked out your other post. I'm using the same modules without problems. In fact, I have two installations. The problem with this module has to be in the forum creation. Pressing that retroactive button should have created forums for each organic group. I'm looking at the code for that now...
The code looks right to me. I have used the button myself before. The function responsible is "og_forum_retroactively_apply", so check it out. Get into your database (phpmyadmin) and try running the queries from that function manually. Something you can try which will let you know that this button is a problem is:
1) go into the standard 'categories' admin page
2) see whether there are forum containers for each forum or not
3a) if so, go to step 4
3b) if not, add a container for each forum manually, using the name of the forum as the name of the container
4) see if the forum containers have at least one forum in them
5a) if so, the problem is not in the button and the button wasn't needed in the first place most likely
5b) if not, create at least one forum for each new container that you made
6) try posting to the new forums, first as site admin, then as group owner, then as subscribed user
Then report back here.
Comment #10
shmatty29 commentedHi
Ok I tried the list you provided with out any success, however I have managed to get it working.
This is what I did, I un-installed all the module in the drupal system, except core obversely, set-up a new MySQL database on the same local host, reload a clean config file to the drupal site, set the drupal site up as if it was a new site. Once the site was running I reinstalled all the module/themes ect in accordance to there set-up instructions and Hey Presto its all working perfectly.
So what I my do is examine the old database and compare it to the new one to see what the differences are and where they accrue.
thanks for all your help
Matt
Comment #11
rconstantine commentedThat's bizarre. Let us know. Marking as fixed since you got it working.
Comment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.