Foursquare oAuth problem
Finally the possibility to authenticate is visible in the Backend.
“You have not logged into Foursquare and authenticated your account yet…” with the Foursquare Button. Filled in the right key and secret. Saved them.
Signing in in Foursquare, authenticating and allowing the Foursquare App.
I get this message: Invalid oAuth Security Token.
You have not logged into Foursquare and authenticated your account yet…
Well, how can this be, with the right key and secret (triplechecked!!)
WordPress 3.0 & Gpress 0.2.4.3.1.1
No error in the webserver logging
Maybe it is related? An error showed up accessing the admin backend:
PHP Fatal error: Cannot redeclare override_tppo_config() in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php on line 142
Another error when allowing the App authenticating to Foursquare:
Cannot redeclare override_tppo_config() (previously declared in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php:144) in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php on line 165, referer: http://URL/wp-admin/admin.php?page=tpp_options_form&oauth_token=….123456ABCDE….
You sure do get some strange problems! :p
The error suggests that it has been loaded twice, but it is loaded from within gpress_options.php, which is only loaded once using a tppo_before_form action that is only done once.
This is a pretty major problem, and is not something I would have missed on my own install, so there is obviously something specific to your particular set-up that is causing these files to load / run twice.
There is not a lot I can suggest without properly exploring the source files and playing within your environment using trial and error methods to find out what is causing the problem…
I logged-in, removed your keys, set-up my own and logged-in to Foursquare perfectly. No problems at all. I think I know what you did wrong… When registering for new API keys at Foursquare, you MUST use the details provided for you by gPress:
Application Name: Christian eBuddy
Application Website: http://christianebuddy.com
Callback URL: http://christianebuddy.com/wp-admin/admin.php?page=tpp_options_form
You had used a different application website address, which you cannot do.
The application website and callback URL MUST be 100% the same as above…
Tnx. I do try exactly the same. The website URL was wrong indeed. But now I use the right credentials 100% and still getting:
Invalid oAuth Security Token.
You have not logged into Foursquare and authenticated your account yet…
after I did login and Allowed
I do not get it. Why do you succeed and I don’t?
I tried it in Chrome, Safari and logged in with Flock (a Firefox derivative) and got this error: PHP Fatal error: Cannot redeclare override_tppo_config() in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php on line 142
Confirmed that Safari has a problem – I use Firefox and Internet Explorer – just tried with Safari and cannot finalize the authorization – so will add it to my list of things to look into asap!
But even still, I have not yet seen the “Cannot redeclare override_tppo_config()” problem…
Where was it that you saw this…?
Foursquare is now authenticated…. in Firefox and Safari . why? I do not know, but it is…. . Alas, the map still is not visible: http://christianebuddy.com or http://christianebuddy.com/foursquaremulti/ (in the source the maps and foursquare code is visible, but the map is not showing) Any idea here?
The “redeclare … ” error was in the Flock Browser : http://flock.com/ (But is gone now) when I logged in. Suspect it had to do with the fact I was logged in with Facebook account and still was logged in there?
When I log in with my facebook account I do get the redeclare error:
PHP Fatal error: Cannot redeclare override_tppo_config() (previously declared in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php:144) in /wordpress/wp-content/plugins/gpress/gpress-admin/config/gpress_options.php on line 165
Are you talking about when you log in with Facebook on your own site (after leaving Foursquare), or when you try to log-in to Foursquare…? Am not sure whether we can support the Facebook log-in plugin or not at this stage, not unless someone is able to point out the specific problems.
FYI – We spent several hours last night trying to figure out why Safari was unable to authenticate Foursquare and have so far found nothing – very strange indeed…
As for why your map will bot display – this looks very similar to the first problem you had when you joined the gPress community – regarding the missing “wp_head” function in your theme’s header file.
After checking your source code, it appears to be missing Google’s JS files that come from the “scripts_for_theme_pages” function, which gets added through the “wp_head” action hook…
- Error occurs when I log into the site with my Facebook account.
- The wp_head is there in the themes header file:
php wp_head() is there before end of header
- found the scripts_for_theme_pages function in the gpress-init.php file.
This function seems to be not added/executed with the action hook though, for the wp_head is there?
Any idea here?
Can you provide a link (version number) to the Facebook plugin you are using and I will try to take a look next week some time – nothing comes to the top of my mind as to why this might be happening, so will need to get my hands dirty, but am super busy over the next few days, but will get back to it at some point – I promise!
Simple Facebook Connect Version 0.21 And the the problem which is not related to the facebook problem:
Still remains the Foursquare problem with not showing the map. In the source of the page e.g http://christianebuddy.com/foursquaremulti/ the google js is available? So why does the map not show? ….
Are you using version 0.2.4.3.2 of gPress (was uploaded today)…?
The problem with your Foursquare map not loading is related to the fact that the information that should be displayed in your wp_head is not there. Perhaps you could try deactivating the other plugins for a moment to test whether this adds the relevant section to the header…?
It could be the cache too, perhaps you should try flushing that…
Yes, latest gpress 0.2.4.3.2
Not the cache. Disabled all the plugins and found the culprit: one of the plugins:
Google Analytics for WordPress 4.0.7 Maps are showing now. Must be some google js confusion in your plugin with the google-analytics plugin. Hope you find the conflicting js …..
The Facebook error is maybe because I also have the Facebook Connect 1.3.1 enabled next to the Simple Facebook Connect with the SFC Activity Widget. When I login to the blog I suppose both plugins are touched …
The maps showed, but with your friends and your places ?? So your key and secret where still there.
I have removed the Foursquare key and secret and inserted my own. And now the first error occurs again:
Instead of the map I get: “There appears to be a problem with the Foursquare integration…”
Is there something special about your Foursquare account or…. ? And now what should we do, I do not know anymore?
Thanks for helping me narrow down the culprit – will try to install Google Analytics and see what’s happening – it could be that Gogle’s “jsapi.js” script is getting loaded twice – not sure if Analatics use that or not – will run some tests when I get some time…
As for your continued Foursquare problems and my account – I have nothing special, a standard account, and have tested your problem with two of my own accounts and one of my friend’s accounts, all from your site, and all of them worked.
We used the exact details for website address and callback URL (as outlined by gPress) and authenticated our Foursquare accounts with regular Foursquare authentication (meaning we did NOT use Facebook or Twitter to log-in to Foursquare or your site) – perhaps that is the reason, perhaps it is Facebook related…?
I downloaded the most recent version of Google Analytics (4.0. and was not able to recreate the problem you are having. However, with that said, I did also fix a few other issues prior to testing this problem, and could have accidentally fixed your problem in the process without knowing.
I am uploading gPress 0.2.4.3.2.1 now, which should go live soon – could you please re-test with this new version of gPress and latest version of analytics and let us know how it goes…?
The reason authenticating to foursquare goes wrong is the browser. When i authenticate with my key and secret to foursquare with Flock or Safari something goes wrong.
When I authenticate using Firefox it works. The maps show
The moment I uploaded the 4.0.8 Google Analytics and enabled it (the only thing I did), the maps stopped showing. So there must be some conflict there.
I was having the same problem, tried the process again and edited the call back url, and everything seems to work
@christianebuddy – are you saying that the ONLY time that the Google Analytics conflicts with gPress is during the Foursquare authentication process if using Flock or Safari, or are you reporting two separate issues…?
@podamsterdam – in what way did you change the callback URL…? Are you also using Google Analytics and (or) Flock / Safari…?
No, using the Flock browser or Safari makes authenticating to Foursquare on the backend impossible. Callback URL etc aren’t changed.
Another problem is the Google Analytics conflict. When this plugin is enabled, the maps do not show. The moment I disable the plugin, the maps are showing.
Please note that with gPress 0.2.5, we have had to remove all Foursquare functionality from core:
You must be logged in to reply to this topic.