Warning: Invalid argument supplied for foreach() in include() (line 28 of /mysite/sites/all/modules/panels/templates/panels-add-content-modal.tpl.php).
Notice: Undefined variable: columns in include() (line 28 of /mysite/sites/all/modules/panels/templates/panels-add-content-modal.tpl.php).

Comments

Eventus’s picture

Error appear when Devel module is enabled...

merlinofchaos’s picture

Priority: Critical » Normal

Can you please explain the negative behavior that makes this message critical?

dimitriseng’s picture

After the upgrade to 3.2 I am also getting the same errors as above when I am pressing the cog to add new content. Not sure if this is causing any other issues or not.

Also, when I am selecting the different options on the left hand side to select the content, I am getting notices and warnings such as the below. For example when I press on "Activity":

Warning: range() expects at least 2 parameters, 1 given in template_process_panels_add_content_modal() (line 59 of D:\xampp\htdocs\mysite\sites\all\modules\panels\includes\add-content.inc).

Warning: Invalid argument supplied for foreach() in template_process_panels_add_content_modal() (line 59 of D:\xampp\htdocs\mysite\sites\all\modules\panels\includes\add-content.inc).

Notice: Undefined index: columns in template_process_panels_add_content_modal() (line 67 of D:\xampp\htdocs\mysite\sites\all\modules\panels\includes\add-content.inc).

Notice: Undefined offset: 1 in template_process_panels_add_content_modal() (line 67 of D:\xampp\htdocs\mysite\sites\all\modules\panels\includes\add-content.inc).

Notice: Undefined offset: 2 in template_process_panels_add_content_modal() (line 67 of D:\xampp\htdocs\mysite\sites\all\modules\panels\includes\add-content.inc).
slucero’s picture

Confirmed that this happens when the Devel module is enabled and functionality returns to normal when the Devel module is disabled.

dimitriseng’s picture

So, this is only happening when the Devel module is enabled. Does anybody know if this causing any other problems or should this be ignored then?

merlinofchaos’s picture

It may indicate a bug in devel module? Are you using the latest devel?

Can this be reliably reproduced using just a minimal install + latest devel module?

slucero’s picture

Using just a minimal install with Devel, Panels, and Page Manager I cannot reproduce the issue. At the moment I don't have access to the installation where I was experiencing the issue, but on Monday I'll compare and debug the issue a bit further.

crispin’s picture

subbing to this - wsod when trying to show a twitter widget in panels....

edit: tried switching of devel and flushing cache etc - no dice.

block is fine when placed in regions outside of panels eg header / footer

Vc Developer’s picture

Sub.....

milos.kroulik’s picture

Status: Active » Needs review

I solved it by upgrading to dev version of Devel.

slucero’s picture

Upgrading to the latest dev version of Devel worked for me as well.

Letharion’s picture

Status: Needs review » Fixed

I take it this is fixed in Devel then.

Letharion’s picture

Assigned: Eventus » Unassigned
Category: bug » support

Status: Fixed » Closed (fixed)

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

dimitriseng’s picture

It looks like others have fixed this by updating to the latest version dev version of the Devel module, but this does not fix it for me. I have tried updating to the latest dev version of the Devel module as well as disabling it, but I am still getting these errors in the logs... I have cleared the cache and resaved my panels. If anybody has any thoughts on this let me know, I'll keep looking... Thanks.

njivy’s picture

This problem appeared when I switched the error handler from "standard drupal" to "backtrace" in the devel module (7.x-1.2). It stopped when I switched back.

aangel’s picture

Switching away from backtrace on 1.2 didn't work for me. Had to upgrade to 7.x-1.3.

alan d.’s picture

Not sure why changing the error reporting levels had anything to do with fixing this... (which is why Devel was triggering the display)

Anyway, I can confirm that these are resolved in the latest dev version :)

sonicthoughts’s picture

removed devel and that resolved ajax issue.