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

CommentFileSizeAuthor
#3 template.php_.txt9.04 KBmrackham

Comments

ppblaauw’s picture

Status: Active » Postponed

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

ppblaauw’s picture

Status: Postponed » Postponed (maintainer needs more info)

Status should be postponed (maintainer needs more info)

mrackham’s picture

StatusFileSize
new9.04 KB

Thank 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

ppblaauw’s picture

The preprocess functions in your template.php are ok.

I see you have

<?php

twice in the template.php file.

Start the file with

<?php 

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.

mrackham’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thank 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!

Status: Fixed » Closed (fixed)

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