Undefined Variable

VetHockey - April 17, 2009 - 02:07
Project:Painted Wall
Version:7.x-1.0-alpha4
Component:Code
Category:bug report
Priority:normal
Assigned:couzinhub
Status:needs review
Description

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

#1

p_bone - April 24, 2009 - 10:06

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

couzinhub - April 24, 2009 - 16:52
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

p_bone - April 27, 2009 - 23:30

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

couzinhub - April 27, 2009 - 23:35
Assigned to:Anonymous» couzinhub

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

 
 

Drupal is a registered trademark of Dries Buytaert.