Closed (duplicate)
Project:
Location
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 15:36 UTC
Updated:
15 Sep 2015 at 05:24 UTC
Jump to comment: Most recent
Comments
Comment #1
WorldFallz commentedI have this error in the lastest d6 dev as well-- wrapping that statement in an 'is_object' check fixes it. don't know what other downstream effects it might have though.
Comment #2
frederickjh@WorldFallz
Can you show the code that you used to fix this? I am having the same problem, but can not quite understand exactly how you fixed this.
Thanks!
Frederick
Comment #3
WorldFallz commentedI no longer have access to the site, but I would think I changed that line from:
to
Comment #4
podarok7.x-4.x unsupported and old version
please, use 7.x-3.x
Comment #5
frederickjhI am not going to change the version of this issue but to clarify I am having the same problems with the 6.x-3.3 version.
Comment #6
wouters_f commentedI had this issue when behind a Proxy that did not allow access..
This code allows the developer to see more information in the log.
In my case squid returns usefull info in the html.
With this watchdog behind "$xml = simplexml_load_string"
You can see whats going on in the watchdog.
*Edit typo
Comment #7
pog21 commentedI'm getting the same error. (7.x-3.x-dev). But I'm not behind a proxy or anything else I can think of.
Comment #8
pog21 commentedAdding the code in #6 bore the following in the logs:
As you can see it's showing a 403 forbidden response, but I have no idea why this would be.
I also tried the (d6) fix in #3 but get the following error on the geocoding options page:
Comment #9
djdevinSame.
Whose google doc is this?
http://spreadsheets.google.com/feeds/list/p9pdwsai2hDMsLkXsoM05KQ/defaul...
Comment #10
egfrith commentedI've posted a potential fix for this issue at #2406483-12: Gecoding options crash in geocoding/google.inc.
Comment #11
System Lord commentedI installed that patch and here is what I get back in error:
Line 15 is:
return array_keys($countries);...from the patch.
Then this line for every country I assume:
Warning: in_array() expects parameter 2 to be array, null given in location_geocoding_options_form() (line 246 of /home/xxxxx/xxxxx/site/sites/all/modules/location/location.admin.inc).I'm curious, and can't find anything on it, but what is the purpose of the "Geocoding Options"? Does any of this affect how Location module functions? Even with these errors I can still see all the countries and all say: "No service selected for country." UPDATE: Ha, I just found info in the documentation and Yes this is important. So, still an even bigger issue is why are they all: "None supported." and "No service selected for country." I definitely cant find info on how to get this working properly.
Note: I'm using the Dev which is why i posted here and not at the issue #240648-12 above. I also tried the stable release and get the same warning/errors.
Additional info:
What I describe above is on a new install of D734. I also have a site that is a year old and D734 and both are setup identically as for the Location module settings and use. I do not have any errors/warnings coming from this old site and can access "Geocoding Options" without issue. That's just strange.
Comment #12
Chetna_Negi commented#3 worked for me on my 2 projects, thanks WorldFallz.