Download & Extend

Undefined property: ctools_context::$placeholder on Panel preview

Project:Panels
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Steps to reproduce:
1. Create new or provide default Site Template variant;
2. Add some content;
3. Go to Preview tab.

AttachmentSize
error.png29.53 KB
pm-list.png7.54 KB

Comments

#1

Status:active» needs review

Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1277 of /sites/all/modules/ctools/includes/context.inc).

#2

Status:needs review» active

Hi

needs review means there is a patch. So I am resetting the issue to active. Please take a look at http://drupal.org/node/156119

#3

Can't reproduce this on a normal page, so it's related to the site template.
The file plugins/arguments/page_content.inc in D7 seems to be a straight copy from D6, so there's probably some kind of conversion needed here that hasn't been done yet.

In D6 there's a URL field for choosing which page to render for preview, the same field is missing in D7.

Unlike Headache, I see the notice 5 times on each page load.

#4

As with Letharion i get message 5 times as well. I built a clean site and only enabled Ctools Page Mamager, Panels, & Panels Everywhere. Tried it with Bartik and also tried switching over to Precision Theme (on a new clean build) and created a single column variant then tried to use preview. This generated the error. I also tried the Create Sample Variant" method and get the same results.
I am running Drupal 7.4 on localhost.

Same error with Jul 3 dev version

#5

subscribe

#6

Me too encounterd this error.

#7

me too,

Same error with:
1. Drupal 7.7 on localhost.
2. Chaos tool suite (ctools) 7.x-1.0-rc1
3. Panels 7.x-3.0-alpha3
4. Panels Everywhere 7.x-1.0-alpha1

I see the notice 5 times on each page load.

#8

the same here - just tried not on clean install with various themes: Bartik, Fusion, Aqua Marina - with all i'm getting the same errors (not one, but 6 times the same).

#9

Project:Panels Everywhere» Panels
Version:7.x-1.0-alpha1» 7.x-3.x-dev

This isn't PE's bug, this is Panels itself (or maybe CTools but start with Panels) having problems with preview.

#10

But I don't understand - does it work at all (could be without preview for some time)? I'm getting errors when trying to preview, but I can't save it at all also.

I mean - is it worth bothering to use it at this stage? I am working on a project where it would be ideal to use Panels Everywhere as I would like to override the theme. Maybe there is another module that does the same (I know Context Layouts and Composite Layouts, but they can't override everything - just central content part).

#11

Nothing in this bug report says anything about saving, only about preview.

#12

My mistake, I've just restarted everything and it is now possible to save, so this part is ok. Sorry for unnecessary fuss.

#13

Oh and yes, I think somehow previews are totally broken. :/

#14

Subscribed

#15

sub'd

#16

Subscribed

#17

this was the closest topic i found to the preview issue.
is there a simple way to make the preview bittons disapear. grepping(not digging any deeper) in the code i found a "no preview" flag somewhere e.g in the layout... something like that. that just makes the links and buttons to preview disapear. ist there a way?

[ i know thats no solution but just cosmetic and i could simple usethe preview buttons ...
its just that such ugly errormessages(no matter how meaningless) are the kind of thing that breaks your neck when you present a work to others... and actually the preview imho is not realy creatical for ther is an outline in tab "content" anyways. ]

#18

Subscribed

#19

The message I have got is this one :
Notice : Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 in ../sites/all/modules/ctools/includes/context.inc).

with the exact same steps to reproduce as Headache. Only line number is different.
Any solution ?

#20

subscribed

#21

same error here with Ctools, panels, panels everywhere updated to latest DEV version..
error

AttachmentSize
Screenshot-1.png 89.68 KB

#22

Any solutions yet?

#23

Got this trying to preview site template with sample variant enabled only....

Get a preview of what this variant will look like.
Error message

Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).
Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).
Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).
Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).
Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).
Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1305 of C:\UniServer\www\pcw\sites\all\modules\ctools\includes\context.inc).

#24

Exactly the same error as #23. What is this error to do with?

I'm running latest ctools & panels. Also adaptivetheme & at_panels_everywhere subtheme. It's obviously not a theme specific issue reading the thread.

Fixes / patches anyone?

#25

I also got the Notice on HTML5 versatile theme using preview on the sample variant with panels_everywhere and latest ctools&panels

Also changed to different theme ( adaptivetheme & at_panels_everywhere subtheme ) , no difference.

The Notice is the same as #23 has

#26

Same error as above continues with current releases.

ctools_context_get_context_from_argument() just does not add a placeholder array if the context is empty.

#27

got the same issues here .. using precision, and other themes .. same issue persists

subscribe

#28

Subscribed

#29

There is no need to subcribe anymore. once you post a comment you are automatically added to the follow list for that thread. If you make no comment just click the green follow button at top of thread.

#30

Just checking in.

#31

Subscribed.