Invalid argument supplied for foreach()

skizzo - April 22, 2009 - 22:38
Project:External Search
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

added three "Custom engines"
unchechecked the first one
clicking on "Delete unchecked engines" I now get the following persistent error

warning: Invalid argument supplied for foreach() in /var/www/drupal/sites/all/modules/extesea/extesea.module on line 293.

I also get many errors on page admin/build/modules, which disappear disabling external search

#1

Xano - April 23, 2009 - 06:58
Status:active» postponed (maintainer needs more info)

I can't do anything without proper errors, so please provide them.

#2

skizzo - April 23, 2009 - 17:21

in addition to few errors like the one reported above, I get few hundres errors reading:

Duplicate entry 'admin/content/node-type/video-item/fields/field_extra_testo/remo' for key 1 query: INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('admin/content/node-type/video-item/fields/field_extra_testo/remove', '', '', 'user_access', 'a:1:{i:0;s:24:\"administer content types\";}', 'drupal_get_form', 'a:3:{i:0;s:25:\"content_field_remove_form\";i:1;s:10:\"video_item\";i:2;s:17:\"field_extra_testo\";}', 127, 7, '', 'admin/content/node-type/video-item/fields/field_extra_testo/remove', 'Remove field', 't', '', 4, '', '', '', 0, 'sites/all/modules/cck/includes/content.admin.inc') in /var/www/drupal/includes/menu.inc on line 2388.

#3

Xano - April 23, 2009 - 19:51

Those are caused by CCK, not by Vocabulary Index.

#4

skizzo - April 23, 2009 - 21:31

Yes indeed, it just happened to show up at the same time.
Please consider OP only (error with extsea.module).
Note: I tried to reproduce it but did not succeed...

#5

skizzo - April 24, 2009 - 09:35

fyi, as it may be related to the problem reported in OP: I ended up in a state where I see a previously configured "TEST (External Search)" block in the blocks admin page, but the TEST engine is not listed anymore in admin/build/extesea/engines (I believe I deleted it via uncheck flag). Actually now I don't see a way of deleting the "TEST (External Search)" block via UI.

 
 

Drupal is a registered trademark of Dries Buytaert.