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
Comment #1
troky commentedIt seems that you have some files missing... try to re-upload all module files, re-enable AF, clear cache two times and report back.
Comment #2
michelle@troky: Did you look at the paths? It looks like it's trying to find stuff in the wrong place...
Michelle
Comment #3
troky commentedActually, 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...)
Comment #4
troky commentedBTW... AF should be installed in
modules/advanced_forum/not inmodules/advanced_forum-7.x-2.x-dev/advanced_forum/Comment #5
Eve42 commentedHi, 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.
Comment #6
troky commentedLatest Views and CTools installed?
Comment #7
rv0 commentedSImilar 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/),
Comment #8
michelleIIRC, 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
Comment #9
troky commentedYes, 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...
Comment #10
Eve42 commentedIn 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
Comment #11
rv0 commentedsorry, my issue was in D6.
Comment #12
john_b commentedI 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.
Comment #13
troky commentedOG 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.
Comment #14
Eve42 commentedRegarding 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.
Comment #15
Eve42 commentedIn 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).
Comment #16
troky commentedAre you sure there is nothing in them?
Those are core forum files/templates not used by AF.
Somehow, I still think you have corrupted installation.
Comment #17
Eve42 commentedTroky 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.
Comment #18
troky commentedComment #19
ooXei1sh commentedI 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.
Comment #20
ooXei1sh commentedI 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.
Comment #21
michelleYes, that definitely should not be Boxy. Boxy was removed in D6. Must have been a porting glitch.
Michelle
Comment #22
troky commentedPorting glitch indeed!
Fixed. Thanks sahunt83.