I am running the latest build of the development version of advanced forum, released on 7/11.

When I activate the advanced forum module, the 'Add new forum topic' link disappears from every screen, even when logged in on the administrator account.
Deactivating the module causes the link to reappear.

At one time, I had the Forum Access and Chain Menu Access modules installed, but in trying to deduce what is going on, I completely uninstalled them (the modules are no longer in the module directory) and have rebuilt the permissions. The problem persists.

I also completely uninstalled Forum Access and then reinstalled it. As soon as it is activated, the link disappears, as it did before.

I am running Drupal 7.2 on Apache 2.2.14 (Ubuntu)

Edited to add: I've been having this problem since I first installed Advanced Forum, using 7.x-2.0-alpha1.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

troky’s picture

Did you upgrade from D6 or you have clean D7 install?

Swhit’s picture

This is a clean D7 install.

troky’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

The original 'Add new forum topic' link is removed by AF and recreated as 'New topic' button/link. If it is not visible on page and permissions are correctly set it could be style/template problem.

Try to do clean install without FA and related modules with default themes/styles and check if problem persists.

Swhit’s picture

Just as a note, this is running with the default Bartik and Seven templates on Drupal 7.2.

My sysadmin did a new test site install for me this morning using Drupal 7.4 and Advanced Forum 7.x-2.0-alpha2. The 'New topic' button appears as normal. I'll slowly add the other modules back in to see if something causes it to disappear again.

Is there a specific template file you can point me to that I should compare between my working and non-working sites?

Thanks for your time.

Drake’s picture

Hi

I've got the same issue.
The link "Create New Topic" does not appear if AF is enabled.
I disabled this AF and the links appears again.

Don't know exactly what could cause this issue :(

Swhit’s picture

I have my needed modules installed, but with newer versions, and I can't replicate the issue. I don't know whether it is the newer code base or the order of module install (of course I didn't keep notes the first time around).

The site that is working properly is using the following module versions:

Main modules: 7.4
Access Control 7.x-1.0-beta1
Content Access: 7.x-1.x-dev
Forum Access: 7.x-1.0-beta1
Chaos Suite: 7.x-1.0-beta1
Calendar: 7.x-3.x-dev
Date: 7.x-2.x-dev
Advanced Forum: 7.x-2.0-alpha2
Chain Menu Access API: 7.x-1.0-beta4
Views: 7.x-3.0-rc1

The site experiencing problems is using the following module versions:
Main modules: 7.2
Access Control: 7.x-1.0-beta3
Content Access: 7.x-1.x-dev
Chaos Suite: 7.x-1.x-dev
Calendar: 7.x-2.x-dev
Date: 7.x-2.x-dev
Advanced Forum: 7.x-2.x-dev
Views: 7.x-3.x-dev

troky’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Drupa1ish’s picture

Still not working with the Drupal 7.8 and dev version of AF

My ugly hack:
File /includes/advanced_forum_preprocess_forum_list.inc

$variables['node_create_list'] = theme('advanced_forum_node_type_create_list', array('forum_id' =>0 )); # vanhack
 #know-how from theme.inc $variables['node_create_list'] = theme('advanced_forum_node_type_create_list', array('forum_id' => $forum->tid));

File styles/naked/advanced-forum.naked.forum-list.tpl.php

<?php if ($node_create_list): ?>
    <div class="forum-node-create-links forum-node-create-links-top" style="padding:0;margin: 0;"><?php print $node_create_list ?></div>
<?php endif; #vanhack from advanced-forum.naked.topic-list-outer-view.tpl.php ?>

Michele says: You don't need to hack the module. It can all be done via preprocess and theming.
I was in a hurry with this quick fix, but a clean fix is more than welcome

troky’s picture

Status: Closed (duplicate) » Postponed (maintainer needs more info)

Try this:

1. If Forum Access module is installed:
1.1. Try to rebuild permissions.
1.2. Try to disable/uninstall FA module.

2. Check your node_type table and report back with 'Forum topic' row (type, base and orig_type columns).

Drupa1ish’s picture

Thank you for your quick reply

1. I don't have Forum Access module enabled

2.See printscreen attached.

troky’s picture

Looks ok.

I have some ideas for debugging. Contact me privately if you want to help me trace the problem.

kcarson’s picture

I'm having the same issue. I tried disabling everything that AF doesn't require and the link still doesn't appear. I'm using a clean D7 install.

kcarson’s picture

.... help?

troky’s picture

check answers #9 and #11.

kcarson’s picture

I don't have FA installed and I have no idea how to check my node_type

blogook’s picture

same problem here. No upgrade from D6
D7 freshly installed. When i enable AF the ADD forum topic button is gone. When i disable AF, the button is back.

Michelle’s picture

Just as an FYI since the title here isn't specific, AF deliberately removes it from the main forum listing but it should still show on individual forum topic list pages.

Michelle

blogook’s picture

All i see in the individual is the reply button. i installed the DEV edition, and even in that edition no button showing up 'add new topic'.

blogook’s picture

The button came back in my case after I removed most modules, deinstalled them. And reinstalled again.

Odd.

amica’s picture

I just uninstalled AF and then reinstalled it. And, lo, the button appeared to me.

blogook’s picture

Did anyone tried rebuilding permissions?

amica’s picture

Rebuilding permissions did not do the trick for me.

DepricatedZero’s picture

Just signed up to say I found a fix for this, at least that worked for me. This expounds on post #20's solution, which worked.

Go into the Module Administration page, disable Advanced Forum, then go to the UNINSTALL tab and actually uninstall the module. Now go back and install it fresh.

Content remains but settings are reset, and the New Post buttons came back for me after this.

blogook’s picture

Issue tags: +Orlando Printer

I did the same as #23 and worked for me as well.

lilbebel’s picture

I tried #23 and it didn't work for me. There is still no New Post button.

tom friedhof’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
796 bytes

I ran into this issue as well. I tracked down the issue to a views preprocess function that had a conditional not allowing those buttons to show.

There is a variable called advanced_forum_forum_disabled that gets set by a page manager task. Since this view can be used without page manager, the conditional looking for this page manager task disabled variable should not be in the views preprocess function. I've submitted a patch that fixes this.

Tom

lilbebel’s picture

Hello Tom,

Could you please tell me exactly which line in which file the patch should be added?

Thanks

tom friedhof’s picture

Hi Martha,

You can apply the patch by downloading the patch to the root of the advanced_forum module and then typing:

patch -p1 < advanced_forum-fix_new_post_button-1218894-27.patch

For more details on how to apply a patch, checkout http://drupal.org/patch/apply/

lilbebel’s picture

Thanks Tom. Will do.

troky’s picture

FileSize
2.11 KB

Above patch is wrong way to go. Please try attached patch and report back.

troky’s picture

FileSize
2.1 KB

Patch from #31 is bad. Here is better one.

tom friedhof’s picture

In my opinion, I think checking for the variable in a that conditional should be completely removed, which is what I've done in the patch on #27. That variable 'advanced_forum_forum_disabled' is used by page manager to determine whether or not page manager should take over a menu callback via a menu_alter hook.

Unless I'm missing something, we shouldn't even be using that variable in the views preprocess hook, because that template is used as default implementation without using page manager. This bug only pops up when you enable the page manager page for forum, and then disable the page. The variable doesn't get updated properly

Your patch fixes another issue, which is setting that variable properly, but I still don't think that variable should be used in a conditional that has nothing to do with page manager.

troky’s picture

FileSize
1.97 KB

You are right. I see no reason to keep that conditional in views preprocess function.
Next patch removes that conditional, fixes setting variable properly and updates variable if set to NULL.

troky’s picture

Status: Needs review » Fixed

I've committed above patch to 7.x-2.x-dev with many other Panels fixes.

Related issue #1212964: Panels: container and forum pages don´t work. Top view does..

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Edited to add that I've had this problem using previous versions, as well.