Download & Extend

Invalid argument supplied for foreach()...

Project:Panels
Version:5.x-2.0-rc1a
Component:Plugins - contexts
Category:bug report
Priority:normal
Assigned:sdboyer
Status:closed (duplicate)

Issue Summary

Hi,

i stumbled across this error when changing the argument of a panel.
I disabled a 'own dysplay' field, and saved. Then this error came along:

warning: Invalid argument supplied for foreach() in /home/saltyjuice/domains/salty-juice.be/public_html/test/includes/common.inc on line 747.
warning: strtr() [function.strtr]: The second argument is not an array in /home/saltyjuice/domains/salty-juice.be/public_html/test/includes/common.inc on line 762.

Comments

#1

Just confirming this error. I have a "Node add form" argument, active for a given set of "Node types", all with their "Own display". When unchecking the "own display" boxes and saving the error shows up.

#2

Assigned to:Anonymous» sdboyer

Somethin funky in the context plugin. I'll throw it on my list.

#3

I stepped into this error again, and then lost all content in my panel. Here is the sequence:
- I defined Panel One, added Vocabulary ID arg in context, 7 vocabularies with own display
- filled content for all 7 contexts, everything worked nicely.
- today I defined Panel Two, added Vocabulary ID arg in context, 7 vocabularies with own display
- at some point, don't remember exactly when, I got the error but I just retried. On 2nd attempt...
- I managed to setup Panel Two, without errors, and moved on to insert content in it
- I then noticed that all content in Panel One was gone.

Something seems wrong now, as in Panel Two's content the tabs read "vocabulary ID 1 ..."
while in Panel One's content they read "vocabulary ID 2 ...". I assumed that one cannot affect
old panels content while working in a new panel. Is that assumption correct? Or could one
mess it up through a "shared" identifier?

If I open the [Edit argument "Vocabulary ID"] pane I now see the following:
- for panel One: Identifier = Vocabulary ID 2
- for panel Two: Identifier = Vocabulary ID (no digit appended)

#4

Status:active» closed (duplicate)

I think this one should be marked as a duplicate of http://drupal.org/node/316253 which has been filled in for 6.x-2.x-dev and is older.