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

CommentFileSizeAuthor
#21 Screenshot-1.png89.68 KBmaxchock
pm-list.png7.54 KBHeadache
err.png29.53 KBHeadache

Comments

Headache’s picture

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).

kars-t’s picture

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

Letharion’s picture

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.

tgriswold’s picture

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

bryancasler’s picture

subscribe

comicat’s picture

Me too encounterd this error.

marshallexcavating’s picture

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.

benasplentas’s picture

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).

merlinofchaos’s picture

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.

benasplentas’s picture

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).

merlinofchaos’s picture

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

benasplentas’s picture

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

merlinofchaos’s picture

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

tanitani’s picture

Subscribed

netcastle’s picture

sub'd

vanderland’s picture

Subscribed

kaidawai’s picture

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. ]

mrbrns’s picture

Subscribed

Gyver06’s picture

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 ?

drupert55’s picture

subscribed

maxchock’s picture

StatusFileSize
new89.68 KB

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

iPaw’s picture

Any solutions yet?

audster’s picture

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).

kingfisher64’s picture

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?

SirDrupalot’s picture

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

fischershaw’s picture

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.

cnergis’s picture

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

subscribe

oligas’s picture

Subscribed

kingfisher64’s picture

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.

SioMwingine’s picture

Just checking in.

franravi’s picture

Subscribed.

cs.abdulwahab’s picture

same here

cs.abdulwahab’s picture

any solution ?

Paul D’s picture

I am having the same problem, the error prints 6X on preview. Have tried every permutation of ctool & panels, with and w/o dev, but no love. I am using PE as well, and Omega 4.

Has this thread gone totally stale? Been almost 2 1/2 yrs since it started. Been over 2 years since this:

Posted by merlinofchaos on August 15, 2011 at 11:24am
Oh and yes, I think somehow previews are totally broken. :/

kjallen’s picture

Issue summary: View changes

Just another data point -- same problem, same error, slightly different line num. 6x on preview. This is with radix, latest release versions of ctools and panels.

Notice: Undefined property: ctools_context::$placeholder in ctools_context_replace_form() (line 1316

We're over 3 years on this and 8 months since last activity. I assume no longer being looked at.

ryan258’s picture

@kjallen - The line 1316 error 6 times. I'm trying out the panels/pe/omega4 combination and in the Panels Everywhere readme there was a step I had missed that got me unstuck and over the error.

// From the Panels Everywhere readme - the part I missed to get line 1316 errors

Step 3
------
Navigate to Structure >> Pages and edit the site_template
(Default site template) page.

Edit your new variant. Customize it if you like. There are some very
important parts of this sample variant:

o The "Page content" pane is absolutely critical. That is the pane that
will hold the actual content of the page you are looking at. If this
pane does not exist, *no content will be rendered*, only the page
template. Think of this as being the $content variable in your
page.tpl.php -- you need that and cannot live without it.

o The "Title type" is set to "From pane" and the Page content pane is
selected as the title. (That is why that pane has a thicker border).
This is how the title of the content gets to be the title of the
page.

o The Navigation, Header and Messages panes are conveniences that
group common page navigation together. For customized sites it is
highly likely that you will theme these or do away with them and
use the individual pieces.

joelpittet’s picture

This only seems to happen with panels_everywhere... non of my other panels preview page have this error.

pvasili’s picture

Priority: Normal » Major
Issue tags: +Old BUG

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

Drupal lives > 10 years
This BUG lives > 5 years

Great story!

joelpittet’s picture

Issue tags: -Old BUG

@pvasili Nobody has tracked down the source of the bug yet. If you have reproducible and MVP steps to see this bug it would help a lot!

joelpittet’s picture

Most of the comments and issue summary say Panels Everywhere is the source... maybe we should move it to the right queue?

kaidawai’s picture

Iirc the problem is not with Panels Everywhere but with Preview function. Sometimes preview is simple not possible along the model used for preview. I had to dig into it again to be more precise(i looked into it 4 Yeas ago - long time....).
see also #9

japerry’s picture

Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.