When saving changes in entitiy fields, for example, in Profile2, the following error raises up:

Warning: Invalid argument supplied for foreach() in apachesolr_entity_update() (line 1766 of /var/www/vhosts/happyhamlet.com/httpdocs/hh_newest/sites/all/modules/apachesolr/apachesolr.module).

Could be similar solution than: http://drupal.org/node/1514314 ?

Comments

nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please verify if this error still exists? I couldn't reproduce the error with latests dev. If so, please give us a clear list of instructions so we can reproduce it

nick_vh’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
internetdevels’s picture

Title: Apachesolr_entity_update() line 1866 Invalid argument supplied for foreach() » Warning: Invalid argument supplied for foreach() in apachesolr_entity_update() (line 1766 of /apachesolr/apachesolr.module)
StatusFileSize
new1.05 KB

Appear warning in 7.x-1.0-beta19 version of module.

Step 1: after create node form redirects to a another form.
Step 2: Fill the fields on form then redirects to a another form.
Step 3: and on this step appear warning:

Warning: Invalid argument supplied for foreach() in apachesolr_entity_update() (line 1766 of /sites/all/modules/apachesolr/apachesolr.module).

Fixed this warning.

nick_vh’s picture

Can you try latest dev version? I slightly remember having fixed this one?

internetdevels’s picture

Status: Closed (cannot reproduce) » Needs review

Reopen ticket.

internetdevels’s picture

Can you try latest dev version? I slightly remember having fixed this one?

Sorry, but in dev version not fixed this issue.

nick_vh’s picture

StatusFileSize
new2.37 KB

If we do this, we need some more checks

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed to d7

killua99’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new4.9 KB
nick_vh’s picture

Status: Needs review » Fixed

committed to 6.x-3.x. Good work!

killua99’s picture

Status: Fixed » Needs review
StatusFileSize
new523 bytes
nick_vh’s picture

Status: Needs review » Fixed

committed to 6.x-3.x. Thanks

nick_vh’s picture

Status: Fixed » Closed (fixed)