I'm running Drupal 5.7. I have multiple sites running under one installation. Forums used to work.

"Post new forum topic" does not display the forums for selecting the parent forum. The Subject text
box is followed by the Body text box.

I'm also having problems with og_forum -- "Invalid argument supplied for foreach() og_forum on line 1141" (see my post at http://drupal.org/node/279189). I currently have og_forum disabled. I think the problems are related.

I have three sites that run under under the same software installation as this site and the
forums look fine on those sites. I have NOT enabled og_forum on those sites.

Each site has its own database. I think something got messed up in my database. I've upgraded og and og_forum a few times, downgraded og_forum, and didn't install ACL and forum_access until recently (see my notes below).

On my test site, I tried uninstalling og_forum and got an error message.
"There was an error removing the OG Forum database tables or variables.
The selected modules have been uninstalled."
The og_term table was deleted from the database but the og_forum module was not deleted.
The forums for groups were still active in the site.
I removed the og_forum module and reinstalled it. But that didn't fix the problem.
It did recreate the og_forum table, but the values in the table are different.

Here is a summary of changes I've made since April 2007:

April 2007
I think I had og_forum 1.3 with Drupal 5.1

July 2007
We had a problem with no forum to select from.
I found http://drupal.org/node/141325
My posts are at the end of that page (#9, #11).
July 3: 5.x-2.x-dev, 2007-Jul-02,
README.txt now says: ,v 1.5.2.1.2.1 2007/07/02 16:03:34
The problem is fixed. Forums work OK.

Aug 18
Upgraded OG Forum 5.x-2.x-dev (2007-Jul-05) to 5.x-2.x-dev (2007-Aug-15)

October 17
A forum topic was created. (I think it was the last good one...)

November 2
Upgraded to og_forum-5.x-2.1 -- my notes don't indicate why. Looks like I went back to 2.1 from 2.x-dev

January 5, 2008: Upgraded og from 5.x-4.1 to 5.x-4.4 (2007-Dec-28)
When creating a new forum topic, not as admin, get
warning: Invalid argument supplied for foreach() in /home/drupal2/public_html/sites/all/modules/og_forum/og_forum.module on line 748.

January 7
We were running MySQL 4 and og_forum-5.x-2.1 needs MySQL 5
Put og_forum back to 1.3 (from 2.1).
Going back to old version of og_forum brought back the problem -- when you're in forums and you create a new topic, the parent selection list is empty. You have to go to "Create Content" to create a new topic.

April 26
We are now running MySQL 5. Upgraded Drupal to 5.7, og_forum 2.1

June 26
Get an og_forum error with "Categories" instead of parent forum.

July 3
Found post http://drupal.org/node/175957, "forum_access_node_form() modifies structure of $form['taxonomy'][...]['#options']"
There's a patch for forum_access at http://drupal.org/files/issues/forum_access_array_structure.patch.txt
This was associated with og forum 5.x-1.7, September 2007.

July 4
Downloaded and installed forum_access and ACL.
Same problems.

July 5
Downloaded og_forum-5.x-2.x-dev
added to og module:
/***********OG_FORUM NEEDS THE NEXT IF CLAUSE*********************************/
if ($required && $form_id == 'forum_node_form' && module_exists('og_forum')) {
$simple = TRUE;
}
/***********END OG_FORUM CHANGES**********************************************/

Get:
warning: Invalid argument supplied for foreach() in /sites/all/modules/og_forum/og_forum.module on line 1141.

July 6
Posted "Invalid argument supplied for foreach() og_forum on line 1141" at http://drupal.org/node/279189

July 7
og_forum is disabled.
Forum is not working properly -- no ability to select parent topic.
Sites that run under this installation that have not had og_forum enabled are OK.

July 9
uninstalled og_forum
"There was an error removing the OG Forum database tables or variables."
"The selected modules have been uninstalled."
Post new forum topic, there still is no Forums dropdown to chose from.
The forums for groups are still active in the site.
og_term table was removed from the database

July 10
removed og_forum
installed og_forum-5.x-2.x-dev.tar.gz
Problems are the same.

Comments

hallman’s picture

I found the problem. On all my sites that had problems, the table vocabulary_node_types was messed up. In most cases it was empty. In one case, the image row was there but the forum row was not. I inserted values in vocabulary_node_types and my sites are working again. I'm not going to try to figure out what emptied the table.

Judy Hallman