Needs review
Project:
Get Directions
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2013 at 17:35 UTC
Updated:
7 May 2016 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hutch commentedLine 136 of getdirections_fields.module:
The culprit is almost certainly
$lang, this is set from$entity->languagebut$entity->{$locative_field_name}[$lang]is not "de", probably "und" or undefinedSo the problem is that the overall entity language is set to "de" but the field language is not, why or how they are out of sync I do not know. If you can have a look at your db with phpmyadmin or similar, if you called the geofield field "field_location" then the table will be called "field_data_field_location" and it will have a language column. If the entity is a node the node table will also have a language column. Compare the two.
Not sure what the solution is but this suggests that the language setup is incomplete or that the overall language was not set at the time that the geofield field was created.
Comment #2
4kant commentedhutch - thanks for your quick answer.
You´re right - the entity is a node with language "de" and ALL fields (even others in every content type) are "und".
I did not know that this had to be equal or to be set in any way - right now I even don´t believe that this had been a request, at least as long as translation modules come into play ;-)
And this lack of knowledge leads to a question concerning your last section above: What do you mean with ..."that the language setup is incomplete"? Am I missing something? (The overall language WAS set at the time that the geofield field was created.)
Again thanks!
Comment #3
hutch commentedCan you try something?
Edit getdirections_fields.module lines 136, 139, 140
replace
$langwith
$langcodesee if that works
Comment #4
4kant commentedPerfect - that´s it.
Thanks hutch!!
Comment #5
hutch commentedFix commited to dev, thanks for your help.
Comment #6
hutch commentedComment #7
socialnicheguru commentedI am uploading a patch based on #3 based on the dev version of 7.x.3.
There was only one occurrence of $lang
Comment #8
socialnicheguru commentedThis is the correct patch