Closed (duplicate)
Project:
Panels
Version:
7.x-3.2
Component:
Plugins - styles
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2012 at 11:58 UTC
Updated:
8 Feb 2013 at 21:06 UTC
When I want to display block with style of "System block" inside panels, I get an PHP notice:
Notice: Undefined property: stdClass::$subject in function include() (line 47 in file .../modules/block/block.tpl.php).
Comments
Comment #1
Letharion commentedSorry, I can't reproduce this. Can you provide more detailed steps to reproducing the problem?
Comment #2
calefilm commentedI have this problem now. My error reads:
Notice: Undefined property: stdClass::$subject in include() (line 4 of /Users/cale/Sites/acquia-drupal/sites/all/themes/corporateclean/block.tpl.php).
I have a simple view that i've attached into my panel page. I select pane style to "System Block". Click Save. Go to my page and see the error. Does the same for every panel I have. Can't set the system block style.
line 4 in block.tpl.php:
<?php if ($block->subject): ?>Comment #3
calefilm commentedissue:
http://drupal.org/node/1480984#comment-5732094
"Looks like the comments system is filtering out the none tag (< none >, without spaces)... If you use that within a Views block, then that will appear as text (in the title). For Views blocks you actually want to not enter anything for the title - that will make it empty/remove it. It sounds like something funky is going on with your titles, and again, I can't figure out exactly what without seeing it first hand. Another suggestion (if an empty title in Views doesn't work) is to enter some text for the title to get the block working, and then hide the title via CSS."
Comment #4
calefilm commentedI had to enter a title in my block settings. I had checked the box and left the override title field in my block settings empty. By entering a title i was able to use the system block style.
Comment #5
merlinofchaos commentedAhh, that indicates the system block style is failing to ensure $block->subject is there and blank if it does not exist. That's a good thing to fix.
Comment #6
codewatson commentedI can confirm I get the exact same thing with custom content panes, if i leave the title blank for a custom pane and set it to the system block style, i get that notice. This is with panels 7.x-3.2/ctools 7.x-1.0
Comment #7
codewatson commentedHappens in 7.x-3.2, forgot to update the version
Comment #8
sonicthoughts commentedSame issue on 7.x-3.2 - when in place editing is enabled.
Comment #9
codewatson commentedWhere about would i look to try and figure out how to fix this? (ctools/panels have lots of files!)
Comment #10
segovia94 commentedI receive the same error when these three things are used in conjunction.
For example. I have a basic "block" view with a title called "upcoming events". If there happens to not be any upcoming events then this error is thrown.
Comment #11
merlinofchaos commentedThere's a patch posted for this here: http://drupal.org/node/1912174