Hi everybody,
I want to document a problem I had to face with Panels 7.x-3.0-alpha3:

  • I created a new content type "MyContentType"
  • I created a new panel to override the display of nodes of type = "MyContentType" using Structure > Panels > Page wizards > Node template.
  • at the end of the wizard (simple and clear) I saved everything
  • I opened a node of type "MyContentType" just to see the result but nothing happen

Solution part 1/2
The wizard "Node template" add a variant to the "node template" page that is disabled by default. So, if you want your new panel override the display of your content remember to enable the page that include the variant you builded.

Before enabling the "node template" page I did some experiment to try to solve my problem, like adding manually an override page, and may be this is the reason why, after had enable the page, the new panel was still not working.

Moving through the different tab of the variant settings, in "Selection rules", I saw a Notice:

Notice : Trying to get property of non-object in ctools_node_type_ctools_access_summary() (line 98 in (...)/sites/all/modules/ctools/plugins/access/node_type.inc).

the same error described in http://drupal.org/node/1085060

In this post the solution suggested by merlinofchaos is to edit and save all the content in the content tab of the variant settings. This solution wasn't working for me but gave the idea. so ...

Solution 2/2
Remove the selection rule and add it again

After that the notice disappear and everything worked fine: the nodes of content type "MyContentType" are correctly presented by the panel

Comments

lefthandmagic’s picture

whoa! this is awesome..thanks a ton..I hit this error too..this worked like a charm...

But I ran into something else, my panels got restored..but my content_node disappeared in the panels :(

Getting this error now:

Notice: Undefined property: stdClass::$type in template_preprocess_panels_pane() (line 1198 of /Drupal/drupal-7.0/sites/all/modules/panels/panels.module).

lefthandmagic’s picture

well..I resolved that...the node_content block wasn't being picked up right...when i went to node_content's settings and resaved it, this got automatically fixed.

Thanks for the help.

donniewiko’s picture

I have this problem aswell and posted this at http://www.drupal.org/node/1095836

The solutions presented here did not work for me.

fedbccer’s picture

Forgot to say that after enabling the page and after removing and adding again the selection rule I always cleaned the cache.
Check also the browser cache settings. Force the refresh of the page or clean the browser cache.
I don't know if this can be considered part of the solution, but i did it as well.

donniewiko’s picture

Yea thats what i did aswell. However i still get this message:

Notice: Trying to get property of non-object in sites\all\modules\ctools\plugins\access\node_type.inc on line 98

and i have only 2 variant types:

  • Panel
  • HTTP response code

Status: Fixed » Closed (fixed)

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

jordojuice’s picture

Thanks you saved me! Same error, I deleted the variant and recreated it. Works like a charm!

kamenrs’s picture

Thanks s lot!
This worked fine. Very well documented problem with elegant and helpful description of the solutions.
Great ...