warning: Invalid argument supplied for foreach() in ...\sites\all\modules\emfield\emfield.module on line 572.
-> error location: http:// ... /rss.xml
(same issue in 5.x-1.2 on different code line)
any ideas?

Comments

jaks1970’s picture

Same issue here when I added the Only local images are allowed. tag to allowable tags in the feedapi settings. Would love a fix for this

jannalexx’s picture

Feedapi is here also...
but even if <em> tag is filtered out the error still comes and goes

<a> <b> <br> <dd> <dl> <dt> <i> <li> <ol> <p> <strong> <u> <ul>...

funana’s picture

same here, Line 534.

jannalexx’s picture

Version: 5.x-1.x-dev » 5.x-1.2

as far as i can remember line 534 error is in 5.x-1.2 version, 572 is in 5.x-1.x-dev

funana’s picture

as far as i can remember line 534 error is in 5.x-1.2 version, 572 is in 5.x-1.x-dev

confirmed.

reikiman’s picture

I'm getting this message to.

The defensive coding approach to this is to surround the foreach(){} with

  if (is_array($type['fields'])) {
    foreach ($type['fields'] as $field) { ... }
  }

But is there a deeper question about if/when/why does $type['fields'] not be an array?

alex ua’s picture

Is this still happening on Dev? I know that there was a problem with the way the youtube provider file dealt with rss that caused a similar issue, though I can't recall if we fixed for both 5.x and 6.x versions.

mhd’s picture

subscribe.

alex ua’s picture

Version: 5.x-1.2 » 6.x-2.x-dev
Status: Active » Closed (fixed)

As far as I can tell, this is not a problem with any of the current dev versions. Closing.