warning: Invalid argument supplied for foreach() in /home/x/public_html/xxx/modules/embed_widgets/embed_widgets.module on line 65.

CommentFileSizeAuthor
#4 widget.JPG77.33 KBsl_hemanth

Comments

jtsnow’s picture

Status: Active » Postponed (maintainer needs more info)

Thank you for the bug report. Could you please specify under what circumstances this error occurs. It seems that it would occur when only the Embed Widgets module is installed and no add-on modules such as iFrame, Google Gadgets, or Facebook widgets.

jtsnow’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

sl_hemanth’s picture

StatusFileSize
new77.33 KB

Hi Friends,

I am also getting the same error in error log.

like warning: Invalid argument supplied for foreach() in /home/x/public_html/xxx/modules/embed_widgets/embed_widgets.module on line 65.

I installed Embed Widgets module.

I added the source as page and given the page url in the text box

If i tried to add a widget , than i click the next button , the next button is not going to next step. The page is loading and nothing is happening.

Any one please help me in this.

Thanks,
Hemanth

Bram Rongen’s picture

I'm am receiving the same error. Anyone care to share what the solution to the problem was?

The exact error is:
Warning: Invalid argument supplied for foreach() in embed_widgets_code_perms() (line 65 of /home/aboutanalytics/public_html/sites/all/modules/embed_widgets/embed_widgets.module).

Bram Rongen’s picture

Solved it by enabling one of the widget type modules (embed_widgets_iframe)

I guess module_invoke_all('embed_widget_types') at line 168 returns a non-empty, non-array value when called without any widget types available. This should be resolved.