When I edit a node after clicking submit, I get the error below

warning: Invalid argument supplied for foreach() in /home/simplex/public_html/dp/modules/location/location.inc on line 420.
warning: Cannot modify header information - headers already sent by (output started at /home/dp/includes/common.inc:384) in /home/dp/includes/common.inc on line 192.

any ideas why it occurs?

Comments

bluecobalt’s picture

I'm getting the same error. Any ideas anyone?

bluecobalt’s picture

bump

ankur’s picture

I heard of this error from someone else but could not reproduce it. Do you have a particular city/state/postal combo that you use when you get this error? Are you using a particular module (blog, event, page, etc) when you get this error?

I need some more info on this bug so I can reproduce it and track it down. If you can, please ping back on here.

-Ankur

seanbfuller’s picture

I'm getting this error on page nodes and story nodes. Both have locations disabled for the node type. I have event nodes that use locations (set up through flexinode) and those do not seem to be giving me the error, although I can't confirm it.

ac4lt’s picture

Version: 6.x-3.x-dev » 4.6.x-1.x-dev

I'm seeing this happen also on drupal 4.6.3 (actually civicspace 0.8.2 rc5).

When I edit a story node and submit it, I get the same pair of errors. The location module was only enabled for events and not other types of nodes. Disabling the location module eliminates the error. If there's any further information or assistance I can provide in debugging this, let me know.

ankur’s picture

Status: Active » Fixed

A fix has been applied to DRUPAL-4-6 and HEAD.

No database updates. The only affected file is locationl.inc.
To see what changed, please consult:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/location/loca...

ac4lt’s picture

Yes, that seems to solve the problem I was seeing!

Anonymous’s picture

Status: Fixed » Closed (fixed)