I got an error message when i try to enter https://mysite.com/forum
[Thu Mar 27 16:38:03 2008] [error] [client 85.248.xx.x] PHP Fatal error: Call to undefined function theme_forum_submitted() in /var/www/httpdocs/modules/advanced_forum/advanced_forum.module on line 422, referer: https://mysite.com/
I have 5.x-1.0-alpha7 but same with 5.x-1.x-dev
Drupal v5.7

Comments

capellic’s picture

I have the exact same problem.

capellic’s picture

Title: Call to undefined function theme_forum_submitted in advanced_forum.module » Is this the problem/solution?

In advanced_forum.module, I see the following:

/*
 * Implementation of theme_forum_submitted
 */
function phptemplate_forum_submitted($topic) {

But as you can see, the function is called "phptemplate_forum_submitted" and not "theme_forum_submitted". I changed the function name to theme_forum_submitted and I no longer get that error.

/*
 * Implementation of theme_forum_submitted
 */
function theme_forum_submitted($topic) {
michelle’s picture

Title: Is this the problem/solution? » Call to undefined function theme_forum_submitted

Please don't change the issue titles when responding.

That's not the problem, but I don't know what is, yet. I haven't had a chance to investigate. I'll try to get to this soon.

Michelle

capellic’s picture

Michelle -

Thanks for looking into this. I have reverted the function name back as you intended and I am not getting the white screen of death.

The only other thing I had changed since then was moving the advforum folder from:

sites/all/themes/zen/my_zen_theme/advforum/

to

sites/all/themes/zen/advforum/

The instructions for Zen recommend that you create your new theme in the zen subdirectory.

I justed tested. I moved advforum back to my_zen_theme directory and I got the error that it couldn't find theme_forum_submitted().

When I figured out that advforum had to be in the zen directory, I posted a comment to your documentation here: http://drupal.org/node/227108

dwrunyon’s picture

Hello,

I'm just letting you guys know that I too experienced this last night when I tried AF. I was not able to fix mine via the changed the function name to theme_forum_submitted method.

Anyway, it looks like an AWESOME module and I look forward to trying it a little later... thank you very much Michelle for sharing your hard work!

michelle’s picture

Status: Active » Fixed

This was an odd one. The problem is that I tried to be helpful and default to the stock forum.module code whenever someone had their site set up wrong and advforum couldn't find the .tpls it needed. In this case, though, I hadn't noticed that there _isn't_ any stock code to default to because theme_forum_submitted doesn't exist in D5. So this error only happens when you have the module set up incorrectly which meant I never ran into it.

I changed it to just returning "Missing tpl".

Michelle

dwrunyon’s picture

Where exactly could we have "set it up wrong"? I had mine set up on 5.7 (Garland theme with ever so slightly modified style.css, placed in Sites/All/Themes) precisely according to the instructions.

michelle’s picture

That function is only called if your theme is missing advf-forum-submitted.tpl.php.

Michelle

kriskd’s picture

I just experienced this as well on my test site and moving the advforum folder to the zen folder instead of zen/mytheme fixed it. However, this means we can't create a different set of styles for different themes, right? Not really an issue for me -- I don't have any of my sites set up for users to pick different themes, just something I wanted to clarify.

michelle’s picture

I don't know how subthemes work in Zen. Some sort of voodoo, I think. Hopefully they can sort it out. http://drupal.org/node/246109

Michelle

amysteen’s picture

I got this error after updating from 5.x-1.0-alpha1. Everything was working before... people were posting and I had several forums.

amysteen’s picture

Status: Fixed » Active

sorry I wanted to change the status with my previous post.

> www.victoriahorses.com/forum

michelle’s picture

Status: Active » Fixed

Why are you changing the status? I already committed the fix for this.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

kriskd’s picture

I don't know how subthemes work in Zen. Some sort of voodoo, I think. Hopefully they can sort it out. http://drupal.org/node/246109

Michelle

Michelle,

As a follow-up to this, we can now modify template.php in our subtheme directory, right? Do you know which preprocess we should put the piece of code into?

michelle’s picture

@kriskd - This issue is fixed and closed and has nothing to do with the Zen theme, so please file a new issue for your question. Honestly, though, the Zen queue would be a better place for it. As I said in that bit you're quoting, I don't know how Zen subthemes work. I don't know much at all about Zen so I'm not a good one to answer questions on it.

Michelle