Its doesn't allow to add views. It shows the following error:

warning: Missing argument 2 for panels_admin_edit_views() in ../modules/panels/content_types/views.inc on line 137

Comments

armand0’s picture

It is not only with the views. It is with any node.
But the Panels that were made with the previous version if they work.

catch’s picture

Title: Error when adding a view » views and blocks - php error on submit and no display
Category: support » bug
Priority: Normal » Critical

I'm getting errors for views and blocks, they appear in the panels interface fine, but don't show up on the panel itself. My old 5.x-1.x panels still display fine (upgrade was completely smooth, mainly blockcache blocks in panels) - the error is on new panels (both page and node) although I've not tried adding stuff to my old ones yet.

Invalid argument supplied for foreach() in .......sites/all/modules/panels/panels_page/panels_page.admin.inc on line 1049.
Missing argument 3 for panels_admin_edit_block(), called in ...........sites/all/modules/panels/content_types/block.inc on line 97 and defined in..........sites/all/modules/panels/content_types/block.inc on line 103.

I can add custom content, and this shows up fine, but no blocks or views show up in display. After saving, they're still in the content tab, so that appears fine. Also overriding a title, even after saving, I still get "no title" in the content tab representation (and nothing on view).

Upping to critical since it's hard to test anything else with this bug.

catch’s picture

Just downloaded alpha9 and this has crept in, blocks and views adding fine so far in that version.

merlinofchaos’s picture

I had to make some changes to the field order in the add/edit hooks on content types, so I probably messed something up somewhere. I'll check this out.

merlinofchaos’s picture

Status: Active » Fixed

This is fixed in dev now. Thanks for the report. I'll get a point release out soonish.

Anonymous’s picture

Status: Fixed » Closed (fixed)