My Site theme don't have template.php file in it. what should i do?

How can i set my preprocess function?

i manually created a template.php file containing only the preprocess function with the right settings,
but all i can see is white box w/ a grey bar line below.
(http://ddblock.page5.net)

hope u can help me with this.

thanks in advance.

CommentFileSizeAuthor
#2 mytemplate.php_.txt5.71 KBjjohn

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

First can you clear the cache at administer > Site Configuration > Performance

When a theme does not have a template.php file, you need to create one like you did.

Can you uncomment the drupal_set_message lines in the preprocess function for the ddblock module in the template.php file you created, attach the result and attach your template.php file.

jjohn’s picture

StatusFileSize
new5.71 KB

hi!

i did perform your suggestion and i'm having this error now:

warning: Invalid argument supplied for foreach() in /home/page5ne/public_html/ddblock/sites/all/themes/janixthemes_green/custom/modules/ddblock/ddblock-cycle-block-content-upright50.tpl.php on line 47.

attached is my template.php file.

ppblaauw’s picture

You can have a look at the faq question: warning: Invalid argument supplied for foreach() in... solution?

Hope this helps you further, please let me know.

jjohn’s picture

hi,

i already did this before i issue this ticket.

is there other ways?

ppblaauw’s picture

Can you attach the result of the debug lines?