Hi,
This is a great module, thank you for your assistance.
I'm trying to set the [THEME_NAME] in the preprocess functions that go into the theme's template.php and whatever I set I can't seem to get it to work.
I've come to the conclusion that my [THEME_NAME] must be incorrect because I get the "warning: Invalid argument supplied for foreach()" error but when I uncomment the drupal_set_message() in each function I don't get any output from the drupal_set_message()'s.
I have followed all of the instructions here without success.
Can you please advise where to look in the theme files for the exact text to replace [THEME_NAME] with?
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | template.php_.txt | 9.04 KB | mrackham |
Comments
Comment #1
ppblaauw commentedCan you attach your template.php file with the ddblock preprocess functions?
Do you have a link to the Internet site?
[THEME_NAME] is the name of the overall theme you use for your site e.g. in case of garland the preprocess functions would become garland_preprocess_....
Hope this explains it and please provide the additional information, so I can help you better.
Comment #2
ppblaauw commentedStatus should be postponed (maintainer needs more info)
Comment #3
mrackham commentedThank you for such a prompt response!
I've attached the template.php file.
I'm working on an upgrade of the template for a live site and I hope not to change it over until I've sorted out all the gremlins.... I hope that will still allow us to troubleshoot this.
The template was bought from Template Monster and is from here
Let me know what else I can provide.
Thanks
Comment #4
ppblaauw commentedThe preprocess functions in your template.php are ok.
I see you have
twice in the template.php file.
Start the file with
is enough
It also does not need to have an end
at the end of the template.php file
What is the whole error message?
Did you clean the cache at admin >> site configuration >> performance?
The debug line should show up when you uncomment them.
Comment #5
mrackham commentedThank you very much for your help ppblaauw
Your suggestions did the trick, it is all working now
I hadn't noticed those extra php tags in the template.php file, thanks for the assistance!