Project:Painted Wall
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:couzinhub
Status:needs review

Issue Summary

I get the the following alert whenever I go from one page to the next.

Notice: Undefined variable: content in include() (line 105 of /Applications/MAMP/htdocs/MyDrupal7Site/sites/all/themes/painted/page.tpl.php).

As you can see I use MAMP as my hosting server. If you need more information e-mail me at:

mablock@gmail.com

Comments

#1

I was having the same issue until I found the following statement in the theming guide.

couzinhub - March 20, 2009 - 23:32

Apparently, the content region is different... if you're setting your regions in the info file , you now also need to add the content like this :

regions[content] = Content

to have the variable $content working.

If you open painted.info and paste the statement above then everything should work.

#2

Status:active» needs review

Haha this is funny, because I am the one who posted the comment about the regions in Drupal 7, and I apparently can't even reproduce this in my own themes :)
Sorry guys, will check and update, but keep in mind that the D7 branch is still in alpha, so do not use for production sites, as D7 is still changing so the theme will most likely change too.

#3

Thanks couzinhub. I know that things will be constantly changing due to the fact that core is still under developement. I was just trying to help the little bit that I can :)

You are doing a great job by the way and know way more than I do.

#4

Assigned to:Anonymous» couzinhub

Thanks p_bone, am sure you could teach me more than you think. Thanks also for the help, appreciated :)

#5

Version:7.x-1.0-alpha4» 6.x-2.1

I'm getting similar php notices with the 6.x version

•notice: Undefined variable: values in /public_html/sandbox/sites/all/themes/painted/page.tpl.php on line 9.
•notice: Undefined variable: output in /public_html/sandbox/sites/all/themes/painted/template.php on line 131.

nobody click here