I am getting the following error when trying to run cron to submit products:
warning: Invalid argument supplied for foreach() in /home/villacol/public_html/sites/all/modules/googlebase/includes/handlers/googlebase_handler_field_text.inc on line 30.
I searched issues and Google for the following text string:
warning: Invalid argument supplied for foreach() sites/all/modules/googlebase/includes/handlers/googlebase_handler_field_text.inc on line 30
and did multiple additional searches by breaking the above query into smaller pieces and couldn't find a single reference to this error.
Any help would be greatly appreciated,
Thanks in advance!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 833900-3-invalid-argument-foreach-fix-text-handler.patch | 671 bytes | hanoii |
Comments
Comment #1
bstrange commentedAs an additional piece of information, I am trying to submit Ubercart Product content types.
Comment #2
longwaveCannot reproduce this in -dev. If this is still an issue, please try again with the latest -dev version, and reopen this issue if it still occurs.
Comment #3
hanoiiAlso getting this and was able to debug, for now subscribing, soon submit the reason and possible a patch
Basically this is happening with a null value. Why would a null value be there, not sure. One possibility is a field added to a content type , but older content won't have any data for it yet.
Attached is a patch for the text handler, but honestly, this should be made on all handlers.