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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mytemplate.php_.txt | 5.71 KB | jjohn |
Comments
Comment #1
ppblaauw commentedFirst 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.
Comment #2
jjohn commentedhi!
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.
Comment #3
ppblaauw commentedYou 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.
Comment #5
jjohn commentedhi,
i already did this before i issue this ticket.
is there other ways?
Comment #6
ppblaauw commentedCan you attach the result of the debug lines?