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
Comment #1
capellicI have the exact same problem.
Comment #2
capellicIn advanced_forum.module, I see the following:
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.
Comment #3
michellePlease 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
Comment #4
capellicMichelle -
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
Comment #5
dwrunyon commentedHello,
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!
Comment #6
michelleThis 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
Comment #7
dwrunyon commentedWhere 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.
Comment #8
michelleThat function is only called if your theme is missing advf-forum-submitted.tpl.php.
Michelle
Comment #9
kriskd commentedI 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.
Comment #10
michelleI 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
Comment #11
amysteen commentedI got this error after updating from 5.x-1.0-alpha1. Everything was working before... people were posting and I had several forums.
Comment #12
amysteen commentedsorry I wanted to change the status with my previous post.
> www.victoriahorses.com/forum
Comment #13
michelleWhy are you changing the status? I already committed the fix for this.
Michelle
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
kriskd commentedMichelle,
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?
Comment #16
michelle@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