peter2322
Forum Replies Created
-
You should see the output when you press sync locations from the Google Latitude History settings page.
The latitudeoauth.php file is located in the latitudeoauth folder. at about line 185 there is a function called “oAuthRequest($url, $method, $parameters)”, in that function there is a switch statement:
switch ($method) { case 'GET': return $this->http($request->to_url(), 'GET'); default: return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata()); }
add the line
echo $request->to_url()."<br/>";
just below the case ‘GET’: statement.Forum: Plugins
In reply to: [Google Latitude History] [Plugin: Google Latitude History] Map not working?I posted my problem to the latitude forum, no response. Someone else posted the same problem and no response from google. I have even tried google-
api-php-client with OAuth 2.0 and I got the same empty response. I cant do a quick fix b/c the problem is on the google side. If the the plugin was making a bad request the response from google should be an error not empty json.My guess is that since Latitude is still in labs (aka beta) its not 100% reliable. I have noticed that sometimes my Google Latitude Badge with be down no reason. I have created a bug. Hopefully it will get addressed. Otherwise I cant do anything right now.
Forum: Plugins
In reply to: [Google Latitude History] [Plugin: Google Latitude History] Map not working?hello,
Thanks for trying my plugin. I have run into a problem with the response from the Google Latitude Rest Service on my website also. During my trip to Italy during the past 2 weeks, Google Latitude worked perfectly the first week but on the second week all my points were gone from the map. When I got home I checked the response from the rest service and the json data is empty. I developed this plugin 3 months ago and never encountered this problem. I have posted my problem to the Google Latitude API Forum and hopefully someone can help. latitude forum
I will update this thread if I get a response on the forum.
If you want to test if you are having the same problem as me, go to around line 308 of google-latitude-history.php and add
var_dump(json_encode($latitudeHistory));
just below
$latitudeHistory = $this->latitude_con->get('location', $options);
then hit sync locations on the settings page and it will dump the rest service response to the settings screen. if you try this, does the response look like the one I posted on the latitude forum?
hello,
i am back from vacation, are you still having this problem? what are the options you are using? you can go to line 313 of google-latitude-history.php file and change:
echo "Error setting Latitude location history<br/>";
to
echo "Error setting Latitude location history: ".$latitudeHistory->error."<br/>";
what is the error?
also go to latitudeoauth.php and add thefollowing code at line 193 just below “case ‘GET'”:
echo $request->to_url()."<br/>";
what is the url (with the sensitivity keys removed) ?
Forum: Plugins
In reply to: [Tweet Map] [Plugin: Tweet Map] Bad Request Errorhello,
how did you get that error? what twitter username are you trying to use? what version of wordpress are you using?