I have created a container with three forums under it. I have posted successfully to the forums, and those forums show up in the 'Active Forum Topics' block which I assigned to the left hand panel, but, if a user or a member clicks on the forum link in my main navigation menu, a new page appears with the headings thus: Forums - Post A New Topic. Topic - Replies - Created - Last reply. Sadly none of the forums I have written appears in the list. Why is that?

Please don't quote code at me, I'm a newbie not a programmer. Thanks.

Comments

vm’s picture

not enough information.

Are you using any contrib modules ? specifically the category.module from the downloads area ?

Are you using any other taxonomy type modules ?

have you tried turning modules off to diagnose a possible conflict with another module ?

Engineer-1’s picture

The only modules I have installed other than the standard installation are the poormanscron and widgeditor. I haven't used taxonomy nor installed other taxonomy modules. In Administer/Modules Taxonomy is ticked, with no throttle, and it appears to be greyed out so it can't be unticked. In Administer/Categories the following is displayed: Forum - Forum topic- edit vocabulary - list terms -add terms. I haven't touched these at all and I'm a bit confused as to the difference and purpose of Categories and taxonomy, as I note some other posters to the forums are. Lets assume a default installation, what do I need to do to make the forums show up on the forums page? I'd assumed that it would happen on its own but apparently not. I've read the thread here http://drupal.org/node/84180 and all the sub threads but to be frank, the problem seems to affect different users in different ways there, and there must be about four different suggestions to the cause and as many mods to try to beat it, and the posts all seem to refer to version 4 rather than the one I have which is 5. I got a headache plowing through all the possibilities and scenarios, and none of them seemed to be specific to the problem I have particularly. If I knew what I was doing it would help but I just can't get my head around Categories and Taxonomy!!! :-)

vm’s picture

The first thing you need to do to get your head around taxonomy and categories is understand they are the same thing. Taxonomy = the science or technique of classification. Thus by organizing your data in a vocabulary with terms you are classifying them. This can be viewed as adding them into "categories". Add to this , the contributed module called "categorey".module and it adds another layer of confusion. You aren't using it, therefore we don't need to speak about the possibilities of this contributed module creating static.

Now to get back to your original problem.
When you started your forum ? did you delete the default forum vocabulary ?

The only post you have to read , which includes the fix is http://drupal.org/node/84180#comment-160894 in the thread you linked to.

Engineer-1’s picture

I'm taking another look at that thread now, before my head explodes!!! ;-)

cog.rusty’s picture

When you log in as user #1 and you go to http://example.com/?q=forum, do you see any forums and forum posts there? Do they disappear only when you are a non-admin or a visitor, or do they never show up?

Also: When you go to Categories and hover over your Forums vocabulary, what is its ID? Is it 1?
If so, do you see the forum posts when you go to http://example.com/?q=taxonomy/term/1 as an admin and as a non-admin?

Engineer-1’s picture

Eek!

When I log in as a user I see the same things as when I log in as Admin and the same things when I just view the sysytem as a non-member, that being no forums or topics displayed in the main content pane, just the headings where they should appear as described earlier. However, in the left hand panel I have the 'active forum topics' block which shows that indeed there have been posts. Funny it appears in this block and not in the content pane. So the answer to your first question is that there seems to be no difference, and the non appearance of my forum topics in the resulting content pane (when the Forums link is clicked in the left hand navigation menu) is common at all levels.

When I go to Categories, as Admin, I see the following:

Name Type Operations
Forums Forum topic edit vocabulary list terms add terms

'Forums' and 'Forum Topic' are not hyperlinked, but 'edit vocabulary', 'list items' and 'add terms' are hyperlinked, and hovering over them produces the following result:

http://www.example.com/?q=taxonomy/term/2

Is this what you mean?

Also does this mean anything to you? http://www.example.com/admin/content/taxonomy/edit/vocabulary/2

I think I'm out of my depth with the forums. The rest of the system is pretty intuitive and easy to suss out.

vm’s picture

have you tried the fix in the comment ?

and as cog.rusty asked, do you see anything at all when you go to yoursite.com/taxonomy/term/1 ?

Engineer-1’s picture

Which fix is this? I've read so many things now and tried a few but to no avail. In the other thread about orphaned forums, I did all that was suggested. I set up the php script and ran it in a page, it told me the ID was 2.

I then followed this advice in the same thread:
------------------------

Next, if this number is NOT = 0 (theoretically, if it's equal to zero then Drupal will create it. See _forum_get_vid() function in forum.module). Then this is the number my Forums navigation vid needs to be. So, I create a Forums vocabulary (administer>>categories>>add vocabulary):
name = Forums
no description
no help
types = forum topic
hiearchy = single
required = checked

Save the new vocabulary.

-------------------------

Then, and I was not happy about this because I know sweet nothing about MySQL admin, I followed the second stage and tried to follow this:
-------------------------
Edit the vocabulary and vocabulary_node_types tables.
vocabulary table:
a. Change the vid to the number you get from _forum_get_vid() above.
b. Change the module field to "forum".
vocabulary_node_types:
a. Change the vid to the same number you edited into vocabulary table above.
-------------------------

But there was no need to edit these values as they already had the numbers '2' and '3' respectively and the correct field suggested names so I closed the thing down. What else can I do. I now have two vocabularies, one id is 2 and the other is 3, and still no forums showing in the main content pane. I get the feeling I have gone around in a complete circle without result. Should I now delete the new voculary (3), and where do I go from there?

Engineer-1’s picture

Ignore this.

Engineer-1’s picture

When going to http://www.example.com/taxonomy/term/1 I get a 'page not found' error.

vm’s picture

on my sandbox, with the forum enabled mysite.com/taxonomy/term/1 is indeed the forum listing, which brings us back to the link I posted which should fix your issue. MY guess is that you played with the taxonomy module, removed your taxonomy, turned on forum module and it did not start at taxonomy/term/1 as it should ?

Searching through the Troubleshooting FAQ's section of the handbook, I came across this documentation that also seems to fix your problem by regenerating the forum taxonomy see: http://drupal.org/node/90214

While I undestand you don't want code quoted at you, it seems that the only way to fix your problem is with code, or with reinstalling your site and turning on the forum module immeditaly and initiating the forum vocabulary immediatley. Choice is ultimately yours.

Engineer-1’s picture

OK I can handle cut and paste, find and replace and stuff like that so code is maybe not half as hard as the things I've done so far. I have spent a lot of time doing the menu's and adding content so a re-install isn't really what I want. Is is possible to backup mySQL, re-install and them re import the MySQL database? I would of course lose the mod I had to do to make the search work, and the add on wisywig editor etc, but the content will be much more difficult to do all over again as it took days to get it where it is now, and to be truthful, the forums have never shown up in the main pane since it was installed and my friend made his first post to it. That's why I started playing about with it in the first place, so what guarantee is there that same won't happen if I reinstall, lord forbid. Should this be happening? I note from the other thread that a couple of the posters say the same as me, it happened from the moment they installed Drupal and not as a result of any tinkering. By the way, thank you for your patience so far. It is very much appreciated. I'm also looking at the thread you just suggested.

Engineer-1’s picture

I read that fix and applied it to the letter. I created a new container, then a forum, then posted a topic. I then went back to my 'forums' link and the problem still exists. There is no sign of any topics, forum or anything in the main pane. Where it said to create a new node and insert the php code, was it ok to 'create content' and then 'page', pasting the php code in there and selecting the input type 'php', then 'prview' becuase that's how I interpreted the instructions. If that's ok, then it ididn't work for me.

cog.rusty’s picture

To make sure what is going on put the following in a new story, set it to PHP input format. and preview the story -- no need to save it.

print 'My forum topics are in vocabulary #2. The forum module thinks its vocabulary is #' . variable_get('forum_nav_vocabulary', 'None...');

If this is the error, you may get away with something as simple as changing the vocabulary ID number to 2 in the 'variables' table in the database, in the row 'forum_nav_vocabulary'.

This vocabulary is expected to be a single hierarchy, no multiple select, no free tagging (actually these options disappear as soon as it is recognized as "the" forum vocabulary), and of course it must apply to nodes of type "forum topic".

Engineer-1’s picture

I did that. Here is the result:

print 'My forum topics are in vocabulary #2. The forum module thinks its vocabulary is #' . variable_get('forum_nav_vocabulary', 'None...');
cog.rusty’s picture

If it just displayed the code, then you didn't set the input format to "PHP code", so the code was not executed. Perhaps the same happened when you tried the other approach?

Engineer-1’s picture

Ah, I now get the following:

My forum topics are in vocabulary #2. The forum module thinks its vocabulary is #2 I think we've established quite clearly that the number 2 is significant.

cog.rusty’s picture

Hmm... true, but it also means that it should work now...

Is the "Forum topic" content type selected in /admin/content/taxonomy/edit/vocabulary/2?
And your forum posts, are they of type "Forum topic"? (you should be able to see them all listed in /admin/content/node)

cog.rusty’s picture

Oops, there is one more thing: The vocabulary ID is also in the 'term_data' table.

Open it with phpMyAdmin, click the "Browse" tab and look for the names of your forum containers. If they all have a "vid" different from "2", change it to "2" (but probably it is already "2").

Engineer-1’s picture

They all have the vid 2 in term_data

Engineer-1’s picture

When I go to Administer/content i see the following;

test3/Story/admin/published/edit
test again/Forum topic/admin/published/edit
test/Forum topic/admin/published/edit
testvid/Page/admin/published/edit
Test/Forum topic/admin/published/edit

When I go to Administer/Forums/ is ee the following

Main Forums/edit/container
-- General Forum/edit forum
New Forum Container/edit container
-- Test edit forum

cog.rusty’s picture

You mean the /admin/content/forum page? Aren't those your forums?

Normally it should work now. Everything seems in place.

Engineer-1’s picture

It's all getting a bit out of hand isn't it. Should it be a simple case that, from the start, I click forums, then add topic, then go back to forums and click it and it should appear in the main pane? It doesn't and it never has, right from a fresh re-install nor from the original install. Yet it does appear in the 'Active Forum Topics' block and the 'new forum topics' block. This has been the problem also described by others, and similarly from a new install. Even people that know what they are talking about (unlike me) have stated they have no idea why this came about in the first place. Maybe it's a bug that needs fixing, but I've tried every thing suggested, done this, done that and turned upside down on my head and nothing has worked. With all respect it's late, I've been at this for a long long time and I'm obvioulsy not going to solve it with my abilities and lack of technical knowledge, which is sad because for the rest of the Drupal system, being a simple administrator (or user) has been all the technical knowledge required to operate the system.

Thank you all for your help but with respect, either I need someone more knowledgeable to fix this for me, or I use phpbb instead, or something like that.

thanks all.

Goodnight.

cog.rusty’s picture

--

cog.rusty’s picture

Your problem is probably something completely different

Compare:
http://www.northwaleslinks.co.uk/forum
http://www.northwaleslinks.co.uk/?q=forum (works fine)

Some strange redirect is taking place, probably you have a forum subdirectory?

Engineer-1’s picture

I did set it as php, and I previewed it and what I posted is what I saw. I actually had to save the story and then open it again to get the result you were looking for.

Engineer-1’s picture

There isn't a 'variables' table, but there is a 'variable' table, but I cant see any reference to a forum_nav_vocabulary in there at all. like I mentioned, i'm completely unfamiliar with mySQL admin and it's functions.

Engineer-1’s picture

Im mySQL admin there are a number of tables we have discussed. More specifically, in 'vocabulary', and using the 'browse' function, a row appears as follows: vid - name - description - help - relations etc. Under vid, the number is 2. Under name the label is Forum, so that looks ok. In the vocabulary_node_types table the layout is different and I can't follow it so well. What is cardinality? (don't answer that if it has nothing to do with it but it says the number 1), and there are two rows at the top labeled vid and type. Browsing either of these isn't much help. I wish I could show you a screen shot. Clicking on the 'variable' table there are two rows called 'name' and 'value' respectively. Now I'm really lost!

Engineer-1’s picture

Is it any easier to just install a third party forum and just link to it!

vm’s picture

you can of course do that, however it won't be tightly integreated into Drupal, users will have to log in to two different programs and such.

If you can't make it through what needs to be done, my suggestion is to set up a subdomain, call it test.yoursite.com install Drupal there, see if you can replicate the problem on a new install.

Best practice would be to have a test site any way. to insure when installing modules you don't wreck your production site. All testing of settings and modules and themes can be done safely.

fact is you should indeed have a forum_nav_vocabulary row inside your variable table. This is a must. If it is not there, there lies your problem. To insure you are actually browsing the table, insure you are clicking on the browse icon located next to the table name. If you are seeing name and value you aren't actually browsing the rows inside the table, you are just looking at the way the table is set up.

What I will do for you is post here a screen shot of what your vocabulary table should look like with the default Forums vocab set as 1, you may choose to edit this row and make yours look like mine.

Engineer-1’s picture

OK Thanks for that. I'm jaded now but promise to look at it again tomorrow. I'm grateful for your suggestion about the sub domain and 'test bed' as it were. I hadn't thought of that. It strikes me that this is a fairly 'known' problem with the forums that might be beyond many users when it goes wrong (me included) which might unfortunately deter folks from using the system. Anyway, maybe I'll be more positive tomorrow. i don't mind linking to a third party forum and I like phpbb but you know what my next question will be don't you? How do I integrate the login... arghhhhhh.... :-) Goodnight.

Engineer-1’s picture

I just can't put this down, even though I'm cream crackered. Here is a screenshot of my mySQL database and of the 'variable' table. Does this look good to you?

 

Only local images are allowed.

Hmm, OK so I don't have html privilages here so here's the location of the screenshot broken up.

http: // www . northwaleslinks . co . uk / ss1.jpg

vm’s picture

How do I integrate the login... arghhhhhh

that takes building a module, or using one of the 3rd party ones already available. I don't know if there is one available for PHPBB.

It strikes me that this is a fairly 'known' problem with the forums that might be beyond many users when it goes wrong

I wouldn't call this "fairly known" Seems like a rare occurance to me considering the dates of the threads used as examples. It could be a small bug that under a perfect set of circumstances can be produced in only a certain set of environments and not all, Otherwis the forum here would be full of problem threads like this as well as the Drupal.org forum would be problematic. Which it is not. I certainly can't reproduce it.

As someone with "Engineer" as a username, I'd think you would fair well with puzzles and apply a bit more patience.

Either way, If a test site squares away your problem with the forums, you can take it from there. If not, report back.

edit: the address you posted linked to a screencapture of the way the variable tables settings, NOT the rows inside the table. You must click on the little icon next to the "variable" table name in the left pane to browse what is inside the variable table. THAT's what needs to be seen. and it should look like this see: Variable Table

Engineer-1’s picture

"As someone with "Engineer" as a username, I'd think you would fair well with puzzles and apply a bit more patience."

Like I said, I'm just tired, and as i also said "I'll be more positive in the morning", and as I just said "I just can't put this down". This suggests to me that I am in fact happy to persue the puzzle!!!

vm’s picture

this is what your vocabulary table should look like when browsed see: Vocabulary Table

Ignore the Row thats named Forums2, this was created by me when trying to reproduce your problem, only pay mind to the first row named Forums

and when you click on edit for the FORUM ROW, it should look like : Forum Row

Engineer-1’s picture

Hmm.. here's what I have (and thanks for the tip about clicking the little browse icon to the left, I'd never noticed that before):

http:// www. northwaleslinks .co uk / ss2.jpg

vm’s picture

correction: heres what you should have for Forum Row and when you click on edit for the FORUM ROW, it should look like : Forum Row

thanks for the tip about clicking the little browse icon to the left, I'd never noticed that before

Reading up on how to use phpMyAdmin can't hurt you. After all you are employing all of these technologies, a little knowledge about them is beneficial. this includes PHP, MySQL, Apache and the tools that run them.

In future Please post a direct link without spaces, I don't have my flash gordon decoder ring, nor time to constantly remove spaces from a url. Or get a photobucket account so you can paste yoru links freely.

with regards to the table you are showing me your VID needs to be 1, we already know this, you need to change it by editing that row to look like the screen capture I've posted.

You should have enough verbal and visual information to get this done now.

Good Luck!

Engineer-1’s picture

Must be something wrong with my html then because when I posted the original picture nothing showed, that's why I started to break it up making the comment "I don't have html privliages in here'. let me try again... http://www.northwaleslinks.co.uk/ss2.jpg

OK that worked. I guess I tried to be too technical by writing the html code to show the picture rather than putting a straight link to it. I'd wrongly assumed that the image would show up in the thread by doing that. What's this Flash Gordon ring thing them?

Almost completed the subdomain setup and will begin transferring the Drupal files shortly.

vm’s picture

I removed the spaces from the last one. your VID is 2, as stated we already know this as you've already stated it.

What's this Flash Gordon ring thing them?

an attempt at humor at midnight my time.

Engineer-1’s picture

All your efforts are most appreciated.

Engineer-1’s picture

It's 5.13 am here. More coffee.

vm’s picture

cog.rusty asks a darned good question here: http://drupal.org/node/160950#comment-254194 in this trhead, have you investigated this theory ?

Engineer-1’s picture

Now we've cracked it. There is a setting in Administer/site configuration called 'clean urls'. I enable that and the forums don't appear. I disable that and they do appear. Should that happen!, either way disabling clean urls repairs the fault!

cog.rusty’s picture

If you do have a real /forum subdirectory rename it to something else (forums or bbs) and see if you can use Clean URLs again. If you don't have one... there must be another external reason that happens.

Engineer-1’s picture

There is no subdirectory for the forum. It is set up exactly as it was installed and I'm assuming that root/modules/forum is what you refer to, that being the case then the external problem is something else as you say. No idea what though.

cog.rusty’s picture

I was not referring to that, I just though that you might have been trying out some other forum script in root/forum. If not, then there must be either something in your .htaccess file or something "smart" that your host has been doing to make it easier for people to install a forum.

Engineer-1’s picture

Oh no, I've not tried another forum. htaccess file.. hmm, interesting but maybe that's for later. I'm whacked. You helped me fix the problem (thanks) and I've learned a lot from talking with to you both. I'll lool at clean URLs later today. Thanks again.