Hello,

I'm just starting to build a new forum on a 5.10 site with a customised zen subtheme. Without the Advanced Forum module activated everything works fine, but when activating the module the main forum page lists that there are topics and posts, but the last post column is empty. Then when clicking on a forum to view the topics, no topics show up, it's just a blank page.

This has happened with forum posts that I had in there before activating the module, and with new posts added after the module was activated. When de-activating the module the forum shows the last post and the topics appear on the individual forum pages.

Any help would be appreciated, thanks!

G

Comments

mkrakowiak’s picture

Same here. Subscribing.

michelle’s picture

Category: support » bug

Ok, confirmed. There does seem to be a bug with the Zen subtheme handling. Very bizarre because it looks like some of the templates aren't showing up. I don't know, yet, if this is a bug in AF or in Zen so I'll leave it in my queue until I can narrow it down.

Michelle

michelle’s picture

Project: Advanced Forum » Zen
Version: 5.x-1.0-alpha12 » 5.x-1.1
Category: bug » support

Actually, I'm not going to have time to look at this for at least a few days so bopping it over to Zen to see if John can help. If you can't, send it back over. I'm sure it's a bug in AF, not a problem with Zen, but I changed so much in this alpha I don't know what I broke. You're more familiar with the subthemes than me so maybe something will jump out at you. This appears to be different than the problem we had before as it is finding _some_ of the templates. So it's getting to the right directory... But not always. Very strange.

Michelle

michelle’s picture

Title: Forum Topics not Displaying » Some phptemplate callbacks not working with subthemes

Ok, I spent a little time digging into this and am officially stuck. The node/comment callbacks work. The rest of them don't. I checked and it has the right style subdirectory in all cases. I don't know how Zen internally figures out how to send callbacks to the subtheme instead of the theme but it seems to only be working part of the time.

I'm not ruling out this being a bug in AF... I'm the first to admit I don't really get the subtheme voodoo. ;) But the problem is specific to Zen subthemes (putting the style in Zen itself works fine) so I'm hoping you have a clue.

Michelle

johnalbin’s picture

Category: support » bug

I'll take a look at this sometime this week. Let's assume its a bug in Zen for now.

Note to self: look at the advforum installation instructions: http://drupal.org/node/315113

ghumpley’s picture

Placing the Advanced Forum templates in the Zen folder instead of the subtheme folder works for me. For some reason that idea just didn't occur to me until today!

That does nothing to fix this issue but I just wanted to share that in case other people are having the same problem and that solution didn't occur to them, either.

fletch11’s picture

The same approach worked for me as well (putting the style in zen folder)

thanks for all the hard work.

michelle’s picture

Project: Zen » Advanced Forum
Version: 5.x-1.1 » 5.x-1.x-dev
Component: Miscellaneous » Code
Status: Active » Fixed

Wow, this was a tricky one! I ended up having to trace through Zen's code trying to figure out how subthemes worked their voodoo. I got down to function _zen_hook($hook) and kept flipping back and forth between Alpha 10 and the current dev trying to figure out what had changed. I finally figured out that, for some reason, in some of the phptemplate_callbacks, the template file was called with hyphens instead of underscores. Evidentally Zen doesn't like that and it was causing it to set the template file wrong. I have no clue why some of them changed. I went back through CVS and couldn't find a reason for it. But Garland seems happy enough with underscores so I changed them all over.

So it was a bug in AF after all. Sooooo happy D6 doesn't need to worry about all this craziness. LOL!

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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