Active
Project:
Advanced Forum
Version:
7.x-2.3
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2013 at 14:48 UTC
Updated:
3 Jul 2017 at 13:01 UTC
Jump to comment: Most recent
When I goto /forum and then click on the "general discussion" link this error pops up and I don't see the discussion within it.
...sites/all/modules/advanced_forum/includes/advanced-forum-topic-list-view.tpl.php): failed to open stream: No such file or directory in theme_render_template() (line 1517 of ...includes\theme.inc).
Comments
Comment #1
Micha1111 commentedI got the same error message today, after my first clean installation of modules "Forum" (core) and "Advanced Forum".
The issue is five month old and there are no replies.
What is wrong ?
Comment #2
x3cion commentedIt's not easily reproducible.
Which install profile did you use?
Did you change anything about themes?
What Drupal Version?
It seems like advanced_forum_path_to_theme resolves a wrong theme-path and uses "." instead, but I'm not really sure, since this is the first time I dig into this.
Comment #3
Micha1111 commentedClearing all cashes solved the problem.
Comment #4
x3cion commentedThis makes it Minor and might be hard to fix.
Comment #5
nicolaj.knudsen@gmail.com commentedI have this issue, and it sadly isn't resolved by clearing cache. It might be hard to reproduce, since it turned up after a series of uninstalls and installs trying to fix this issue https://www.drupal.org/node/235571 using comment #15.
That fix was succesful and I had a working system for 5 minutes. Then I decided to disable the advanced forum just to see if the core module was enough for me. It wasn't and the issue arose when advaced forum was reenabled.
I think my database is now in a corrupted state, because every sequence of disable, uninstall, reinstall and cache clearing i could come up with have been ineffective in solving this.
Edit: After playing around with it some more I found a crude fix, I simply deleted all the existing forums and cleared the cache. That seemed to do the trick. This is not really a possibility on production servers though.
Edit #2: This is definitely a cache problem. I set up a few new forums with some test posts and ran 'drush cc all', and now this issue is back in all of them. One is only complaining about 'advanced-forum-topic-list-outer-view.tpl.php', the others have the following message:
It is still possible for me to access the forum thread, but it is rendered as the standard drupal forum.
Edit 3: So it seems that my problems actually are documented on the project page
We recently moved to a twig-based theme, and that's the problem. Everything works great in Bartik.
I could be nice to have the ability to use twig, since that is the new standard in drupal 8.
Comment #6
michelleThat note is because, when the module was written, there were a couple of other options. xTemplate, IIRC, and something else. Because AF does quite lot of registry hacking and totally relies on the way PHPTemplate themes work, it didn't work with those others. I don't know what would be involved with making it work with Twig. TBH, I didn't even realize Twig could be used on D7. Given that Twig is the future, I certainly wouldn't be opposed to patches to make it work with Twig as well as PHPTemplate but it's unlikely I'll have the time to do the work myself.
Comment #7
mnakov commentedI resolved this issue for me by copying the file advanced-forum.naked.topic-list-view.tpl.php (located in advanced_forum/styles/naked/ because I'm using the Naked theme for the Advanced Forum) to advanced_forum/includes/. Then I renamed the file to advanced-forum-topic-list-view.tpl.php and everything is worked perfectly.