By activate modules : page manager & stylizer

error:

* The plugin definition of panels_layouts cannot locate schema panels_layout.
* Notice: Undefined index: items in ctools_export_ui->hook_menu() (line 61 of C:\xampp\htdocs\drupal7\sites\all\modules\ctools\plugins\export_ui\ctools_export_ui.class.php).
* Warning: Invalid argument supplied for foreach() in ctools_export_ui->hook_menu() (line 61 of C:\xampp\htdocs\drupal7\sites\all\modules\ctools\plugins\export_ui\ctools_export_ui.class.php).

Comments

bmx269’s picture

I have the same error.

merlinofchaos’s picture

I believe if you reload the error will go away? I think this is the same bug that's in 6.x about schema being refreshed too late.

screener’s picture

Yes, the error went away when I reloaded the page. Thank you for your answer.

Wolfflow’s picture

Status: Active » Closed (works as designed)
Whole Human’s picture

> I believe if you reload...

Figured I'd add this, since it took me a bit to figure out what to reload since I received the error from drush and not off the admin area.

Go to your modules list (/admin/build/modules , enable other things or not as you need) and "Save configuration." Just clicking "Save configuration" again works too.

Best,
Michael

Edit: Also applies to:
The plugin definition of panels_mini cannot locate schema panels_mini.

Re-click save config.

decibel.places’s picture

Version: 7.x-1.x-dev » 6.x-1.8
Status: Closed (works as designed) » Active

I am having these same issues intermittently in the 6.x-1.x branch including 6.x-1.x-dev

I am exporting a Page Manager page from local dev to staging, same PHP versions and everything

I am *sometimes* able to import the page and view it, but then it "goes away" when the plugins warnings reappear.

The "fixes" above (clearing cache, resaving the modules admin page) are not working, tried various combos of Ctools and Panels versions.

AAArrrgh!

decibel.places’s picture

Version: 6.x-1.8 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

I see there is more discussion at #889742: The plugin definition of ctools_custom_content cannot locate schema ctools_custom_content.

However that thread has not resolved my 6.x issue

r2b2’s picture

Im also having these problem :

"The plugin definition of panels_layouts cannot locate schema panels_layout."

I have upgraded views (6.x-2.16) ,ctools (6.x-1.8) and panels (6.x-3.10) . I used drush up views which i think also upgraded the ctools.

Is there a solution to this yet?

Thank you!

decibel.places’s picture

Issue tags: +panels, +database schema

r2b2 are you using a Feature? Try removing Panels from the dependencies

#1267954: Feature dependencies can break schema in ctools page manager

r2b2’s picture

No I am not using features at all. When this error shows , all views on my site are un-usable . When I clear the cache (twice) it gets back.

decibel.places’s picture

r2b2

first of all check log messages at yourdomain/admin/reports/dblog you might see an error

in my case, I traced where the "can't find" error was triggered in code and worked back from there

to test my case, I added the "missing" schema array at the exact point where it failed and the error went away

I was able to work around it by removing Panels from dependencies in a feature I created

it turned out that clearing the menu cache triggered the error - I'm not really sure why just that one (I cleared it individually using Drush).

Perhaps you are using some module that is doing the same thing, with a dependency on Panels when Panels is already required (my hunch is that requiring Panels more than once might break it?)

---------------------------------

qq: after you used "drush up views" did you also "drush updb"?

r2b2’s picture

i didn't do drush updb.. maybe that's were my error is. What does it do? Do you think upgrading to views 3 will solve the problem?

decibel.places’s picture

r2b2

ANYTIME you install new code versions of modules, themes, or core you MUST update your db!

`drush up` only updates the code
`drush updb` runs the update.php script

see http://drupal.org/node/672472 for more info

It's a good idea to backup your db and code (drush backs up code for you) before you make additions or updates to your site

Upgrading from Views2 to Views3 will probably affect any views you have previously built

HTF’s picture

Subscribing

Marko B’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

I had the same problem, but the problem was gonne when i went to ctools modul set and added all panels submodule that are in ctools.

wwedding’s picture

Another way to make the problem go away could be to disable the panels module and re-enable it.