This has been working before (in 1.x).

I have a theme and in my theme folder I have folder called layouts. I have placed my panel layouts in there.

In my theme .info file I have the following line plugins[panels][layouts] = Layouts.

I also have a subtheme for the above theme in a multisite setup. When I go to admin/config/content/panelizer/node/contentpage/layout I get these errors:

Notice: Undefined variable: options in panels_choose_layout() (line 115 of /home/www/web/sites/all/modules/contrib/panels/includes/display-layout.inc).
Warning: Invalid argument supplied for foreach() in panels_choose_layout() (line 115 of /home/www/web/sites/all/modules/contrib/panels/includes/display-layout.inc).

And no layouts are visible (nothing you can do on this page).

Update on this:

I tried it locally and it worked there, so maybe some kind of file permissions thingy? I'll have to check more tomorrow unless you have heard about this before.

Comments

merlinofchaos’s picture

Panelizer just uses layouts that Panels gives it, so this couldn't be an issue with Panelizer. Moving this to Panels.

merlinofchaos’s picture

Project: Panelizer (obsolete) » Panels
Version: 7.x-2.x-dev » 7.x-3.x-dev

Ok, that makes it look like something is actually killing all layouts.

First, check something simple like mini panels to make sure your layouts are showing up there, but it should be pretty much the same list no matter where you go.

Second, make sure your theme is enabled.

Third: That line you quoted looks wrong. It shouldn't have a . and the layout folder name is going to be case sensitive, so unless your folder is really named 'Layouts' and not 'layouts' it's going to break.

Fourth: Be sure to do the drupal cache clear all.

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)
jisuo’s picture

Third: That line you quoted looks wrong. It shouldn't have a . and the layout folder name is going to be case sensitive, so unless your folder is really named 'Layouts' and not 'layouts' it's going to break.

That . was actually just part of my sentence. :)

Also the capital L was the issue here. Locally = Windows, server = Linux. Enough said! This tells me I really should go to bed earlier instead of banging my head in frustration...

Thanks a lot, you're a champ!

Letharion’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

updated text