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

Micha1111’s picture

Issue summary: View changes

I 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 ?

x3cion’s picture

It'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.

Micha1111’s picture

Clearing all cashes solved the problem.

x3cion’s picture

Priority: Normal » Minor

This makes it Minor and might be hard to fix.

nicolaj.knudsen@gmail.com’s picture

I 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:

Warning: include(C:\var\www\html/sites/all/modules/contrib/advanced_forum/includes/advanced-forum-topic-list-view.tpl.php): failed to open stream: No such file or directory in theme_render_template() (line 1525 of C:\var\www\html\includes\theme.inc).
Warning: include(): Failed opening 'C:\var\www\html/sites/all/modules/contrib/advanced_forum/includes/advanced-forum-topic-list-view.tpl.php' for inclusion (include_path='.;C:\php\pear') in theme_render_template() (line 1525 of C:\var\www\html\includes\theme.inc).
Warning: include(C:\var\www\html/sites/all/modules/contrib/advanced_forum/advanced-forum-topic-list-outer-view.tpl.php): failed to open stream: No such file or directory in theme_render_template() (line 1525 of C:\var\www\html\includes\theme.inc).
Warning: include(): Failed opening 'C:\var\www\html/sites/all/modules/contrib/advanced_forum/advanced-forum-topic-list-outer-view.tpl.php' for inclusion (include_path='.;C:\php\pear') in theme_render_template() (line 1525 of C:\var\www\html\includes\theme.inc).

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

All versions require core Forum and a PHPTemplate based theme.

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.

michelle’s picture

That 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.

mnakov’s picture

I 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.