I downloaded and installed Advanced Forum (including the required dependencies) and created a test post. The test post appears,(and I can browse to it fine from a link in a node) but when I click the main Forum in the main navigation (or the link in the breadcrumbs that appear) I get the following errors:

Notice: Undefined variable: forums in include() (line 44 of.....modules/forum/forum-list.tpl.php

Warning: Invalid argument supplied for foreach() in include() (line 44 of ....modules/forum/forum-list.tpl.php

and the test post I created does not appearlisted in the forum, nor the forum categories.

If I click on the forum category that the post is in on the in the post page itself I get the list of following errors:

Warning: include.....modules/advanced_forum-7.x-2.x-dev/advanced_forum/includes/advanced-forum-topic-list-view.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1234.....includes/theme.inc)

Warning: include() [function.include]: Failed opening ....modules/advanced_forum-7.x-2.x-dev/advanced_forum/includes/advanced-forum-topic-list-view.tpl.php' for inclusion (include_path='.:/usr/lib/php5') in theme_render_template() (line 1234 of.....includes/theme.inc)

Warning: include...modules/advanced_forum-7.x-2.x-dev/advanced_forum/advanced-forum-topic-list-outer-view.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1234 ...includes/theme.inc).

Warning: include() [function.include]: Failed opening....modules/advanced_forum-7.x-2.x-dev/advanced_forum/advanced-forum-topic-list-outer-view.tpl.php' for inclusion (include_path='.:/usr/lib/php5') in theme_render_template() (line 1234 of ....includes/theme.inc).

These only appear when Advanced Forum module (together with Author Pane) are activated.

In addition, only 2 of the 8 styles appear in the theme drop-down list for Advanced Forum. I don't know if the problem is directly related. I will post it as a separate bug if anyone can advise that it definately isn't.

Comments

troky’s picture

It seems that you have some files missing... try to re-upload all module files, re-enable AF, clear cache two times and report back.

michelle’s picture

@troky: Did you look at the paths? It looks like it's trying to find stuff in the wrong place...

Michelle

troky’s picture

Actually, Views are trying to find files in wrong places (I think) if they can't find suggested templates. The last part of issue descripction makes me think something is wrong with AF installation (incomplete, corrutped...)

troky’s picture

BTW... AF should be installed in modules/advanced_forum/ not in modules/advanced_forum-7.x-2.x-dev/advanced_forum/

Eve42’s picture

Hi, thanks everyone for your replies and suggestions. I uninstalled AF, reinstalled (as suggested under modules/advanced_forum uploading the AF folder, not advanced_forum-7.x-2.x-dev as I'd one prevsiously), activated it an now I'm getting the following message in Modules in admin when AF is activated:

Notice: Undefined index: silver_bells in advanced_forum_style_lineage() (line 66 of .....sites/all/modules/advanced_forum/includes/style.inc).

and the following message on the site :

Notice: Undefined index: silver_bells in advanced_forum_style_lineage() (line 66 of ..../sites/all/modules/advanced_forum/includes/style.inc).

and the following message when I click on the Forum link:

Fatal error: Unsupported operand types in ..../sites/all/modules/advanced_forum/includes/style.inc on line 211

I checked all the folders in the main folder were uploaded, and didn't get any error messages from my ftp client, and cleared the cache twice.

troky’s picture

Latest Views and CTools installed?

rv0’s picture

SImilar issue here, when looking at theme info in the active topics view, it says:

Style output: advanced-forum-topic-list-view.tpl.php (File not found, in folder sites/all/modules/contrib/advanced_forum/includes/),

michelle’s picture

IIRC, Views normally looks either at the root or in /includes. It's the registry alter that makes styles work. I'm not familiar with how you did it in D7 but I'd take a look at that to see if something is interfering if this keeps getting reported.

Michelle

troky’s picture

Category: bug » support

Yes, registry is altered and theme suggestions are added in AF preprocess functions and theme info in view doesn't know what will AF suggest as theme file but can't find any generic template.
@Michelle: find my old emails where I suggested template naming change (and other related stuff) so Views can find default template without and suggestions in preprocess function.

However, I think this is an isolated issue caused by bad installation and/or bad/old dependencies.

There was some old CTools bug causing AF can't find template files... can't find it right now...

Eve42’s picture

In case it helps, I am using cTools version ctools-7.x-1.0-alpha4 and Views views-7.x-3.0-beta3 which are the latest versons available for D7

rv0’s picture

sorry, my issue was in D6.

john_b’s picture

I have the same two error messages (as in first post) on line 1234 when I try to open the Group Name view (a default view for displaying Organic Groups content as a forum). The view, whether as page or block, does not display.I am using AF 7-x-2-alpha-1 and OG 7-x-1.

troky’s picture

OG compatibility with AF 7.x is questionable. I never had chance to test it thoroughly so please open new issue if you have problem with OG so we can sort it out.

Eve42’s picture

Regarding this error posted above:

Fatal error: Unsupported operand types in ..../sites/all/modules/advanced_forum/includes/style.inc on line 211

lin 211 reads

$info[$style] += advanced_forum_get_style($key);

so I assume the '+=' need to be changed to something else? Any suggestions? What is the minimum php version this module needs to run, as I read somewhere incorrect version can lead to this error.

Eve42’s picture

In addition to what I just posted above, I changed the theme from Blue Lagoon to Silver Bells stacked (I don't understand why the module comes with other style folders with nothing in them....). This removes the fatal error but gives the following errors:

* Notice: Undefined variable: forums in include() (line 44 of ....../modules/forum/forum-list.tpl.php).
* Warning: Invalid argument supplied for foreach() in include() (line 44 of ..../modules/forum/forum-list.tpl.php).

troky’s picture

I don't understand why the module comes with other style folders with nothing in them...

Are you sure there is nothing in them?

* Notice: Undefined variable: forums in include() (line 44 of ....../modules/forum/forum-list.tpl.php).
* Warning: Invalid argument supplied for foreach() in include() (line 44 of ..../modules/forum/forum-list.tpl.php).

Those are core forum files/templates not used by AF.

Somehow, I still think you have corrupted installation.

Eve42’s picture

Troky you were right. I uninstalled and then reinstalled - the styles were there now, but still getting the error message. I uninstalled again, but this time I uploaded the directories and files located separately (i.e ..advanced_forum/includes then advance_forum/js, etc.). And now the forum seems to be working okay at first look. Thanks very much for your input - glad it was a simple solution and hope it may help someone else if they have the same problem.

troky’s picture

Status: Active » Closed (works as designed)
ooXei1sh’s picture

Version: 7.x-2.x-dev » 7.x-2.0-rc1
Component: Code » Styles
Category: support » bug
Status: Closed (works as designed) » Needs review
Notice: Undefined variable: forums in include() (line 45 of ...\modules\forum\forum-list.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 45 of ...\modules\forum\forum-list.tpl.php).

I am having this same issue with the Advanced forum as are a others (if you google these error messages you will find live forums displaying the errors).

For me, It doesn't produce the notice and warning until I change the Advanced forum style from it's default (Silver Bells) to the one I want (Cloudless Day). Also, the notice and warning don't appear immediately when the style is changed. So, everything appears have worked fine for a short while and then the warning seems to randomly appear for no reason.

ooXei1sh’s picture

I solved my issue (I think). In the directory 'advanced_forum/styles/cloudless_day' you will find the cloudless_day.info file. Open that. The base style is set equal to 'boxy', set it equal to 'naked' instead (just like all the other styles). The boxy base style does not appear to exist. Clear your theme cache and everything should be cool.

michelle’s picture

Title: Error & Warning for forum-list.tpl.php after installing Advanced Forum » Change Cloudless Day base theme to Naked
Status: Needs review » Active

Yes, that definitely should not be Boxy. Boxy was removed in D6. Must have been a porting glitch.

Michelle

troky’s picture

Status: Active » Fixed

Porting glitch indeed!
Fixed. Thanks sahunt83.

Status: Fixed » Closed (fixed)

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