We are having issues while trying to add content to the "Add content" area of Panelizer. We followed install instructions, but I think we are missing a context to allow panelizer to access the node content. When we tried to ADD a context (i.e. Node) it says "Invalid object name" in a little pop-window. Did we not install something correctly, or add a context somewhere else. YES, we did make sure that node_view was ENABLED under Page Manager.

HELP!!!!

CommentFileSizeAuthor
#5 panelizer-context.patch1.58 KBjohn morahan

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

HELP!!!!

Please don't do this.

Please explain in more detail what you mean. I can't understand what you did, which means I have no idea how to advise you. Steps to reproduce are key.

awebb’s picture

This is happening to me as well, at the head of the 7.x-1.x branch.

Here is how I am getting it.

1. Go to the panelizer configuration page.
2. Click on the context link on a content type. In my case I am doing this on a site with only two content types; article and page.
3. Select the "User from Node" or any of the "Node from Node" relationships.
4. Click "Add relationship".
5. A small popup appears that says "Invalid object name." then the main CTools modal popup stays open until you close it.

farald’s picture

Ive encountered the same issue, on node template (admin/structure/pages) when tryin to add context.

hanpersand’s picture

I duplicated this issue over here: http://drupal.org/node/1329806
Sorry about that.

I checked my logs. Like awebb I don't see anything either.

Question: Can I set a context up in Page Manager for the panelized content type? Is that what you're saying you did, awebb?

Thanks.

john morahan’s picture

Status: Postponed (maintainer needs more info) » Needs work
StatusFileSize
new1.58 KB

I had a look and got as far as this patch, which seems to make it possible to add contexts and relationships. But it doesn't work correctly as it seems to get confused about the context that's been added. I think the reason is that it's not recognizing the default context that comes from the panelized node itself, but I don't know how to fix this.

merlinofchaos’s picture

Status: Needs work » Fixed

Thanks for the patch, John!

The last bit wasn't too bad -- the main issue is that the base_context needs to get added when the $panelizer object is loaded from cache. After doing that it seems to work nicely here. Thanks for the patch!

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jnpwebdeveloper’s picture

Status: Closed (fixed) » Closed (won't fix)

I'm still getting this and I'm unsure of what to do about it. Here is my setup:

CT: 7.x-1.2
Panels: 7.x-3.3
Panelizer: 7.x-1.x-dev

Every time I try add a context to my panellised node I get the ctools popup with "Invalid object name".

Any ideas on what I can do? Where is this coming from?