Hi.

I am using the Latitude/Longitude Widget in the field settings and setting the default values into 0.00 / 0.00, I tried to insert coordinates into the form.
Fatal error: Function name must be a string in /modules/geofield/geofield.module on line 294

Any idea?

Comments

Yorgg’s picture

I found out disabling getdirections while setting the field settings, the error goes away.

Brandonian’s picture

Title: Editing / Saving the Node. » Conflict with Get Directions/Geofield modules
Project: Geofield » Get Directions

Thanks for reporting the issue, @staminna. I suspect this is an issue with the Get Directions module not supporting the 2.x branch of Geofield. Moving the ticket to their queue. Which versions of each module were you using?

Yorgg’s picture

I had to move back from geofield 7.x-2.x => 7.x-1.x because I can't seem to index nodes in apachesolr with empty geofields.
In regards to getdirections I was using version 7.x-3.x-dev

hutch’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

@brandonian, I cannot replicate this, Getdirections 7.x-3.x-dev works fine with Geofield 7.x-2.0-beta1

The error came up in geofield.module on line 294 which is function geofield_field_presave(), I cannot see how getdirections_fields could be calling that or have any influence on geofield_compute_values().
I am assuming staminna was using getdirections_fields.

Yorgg’s picture

@hutch, you assumed correctly.
I was into getdirections_fields.
Sorry for not beeing more specific.
I even though I had already replied to this post.