SMFHacks.com

SMF Gallery Pro => Support => Feature Requests => Topic started by: trifox on February 13, 2015, 05:08:25 pm

Title: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 13, 2015, 05:08:25 pm
this is what i get when pressing the "sign in to twitter" button in the editor

"Could not connect to Twitter. Refresh the page or try again later. - 301"

i have the "twitter and facebook" mod installed they seem to somehow intertween
http://www.2by2host.com/products/simplemachines/
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: SMFHacks on February 13, 2015, 05:18:21 pm
What SMF Gallery version are you using?
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 06:54:15 am
its the latest version i just installed v6.7

there seems to be an interefencing with the twitter/facebook mod because i had to manually include "ifclassdefined" around all the oauth classes that came with gallerypro because i had "class already defined" errors

it seems that the already existant (but incompatible?) oauth class is used instead ...

any quick fix for this e.g. renaming of the oauth classes that ship with gallerypro ?
too bad namespaces arent so commonly used in php ;)
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 06:57:27 am
BUT: i did not completely uninstall the gallery before installing the new one because i am always frightened of some database infringement
i have several gallerypro versions down to version 2.7 :/
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 07:01:28 am
every class seemed to be already defined
Fatal error: Cannot redeclare class TwitterOAuth in [path]/Sources/twitteroauth.php on line 16
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: SMFHacks on February 14, 2015, 08:27:52 am
What mods do you have installed? There is an issue if you have SimpleTwitter instead already.
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 11:25:03 am
i have several. installed

Code: [Select]
Mod Name Version
1. Auto Embed Video Clips 2.1.4  [ Uninstall ] [ List Files ] [ Delete ]
2. Advanced Visual Verification 1.2 [ Apply Mod ] [ List Files ] [ Delete ]
3. Aeva Media 1.0 Alpha 3 [ Apply Mod ] [ List Files ] [ Delete ]
4. Amazon Search 1.1 [ Apply Mod ] [ List Files ] [ Delete ]
5. Anti Bot: Unrecognizable Form 1.1  [ Uninstall ] [ List Files ] [ Delete ]
6. April_Fools 2009  [ Uninstall ] [ List Files ] [ Delete ]
7. Anti Bot: Are You Human/Bot? 2.3  [ Uninstall ] [ List Files ] [ Delete ]
8. Downloads System 1.2.7  [ Uninstall ] [ List Files ] [ Delete ]
9. Earn From Amazon Links Mod 1.0  [ Uninstall ] [ List Files ] [ Delete ]
10. Easy Edit Meta Data 1.0  [ Uninstall ] [ List Files ] [ Delete ]
11. Embed BBCode 1.7 [ Apply Mod ] [ List Files ] [ Delete ]
12. Enhanced Forum Statistics 1.0  [ Uninstall ] [ List Files ] [ Delete ]
13. Googlebot & Spiders Mod 2.0.3 [ Apply Mod ] [ List Files ] [ Delete ]
14. Link Tree 1.1.0  [ Uninstall ] [ List Files ] [ Delete ]
15. Monthly Statistics on Profile 1.0  [ Uninstall ] [ List Files ] [ Delete ]
16. Profile Fields & Icons Mod 1.0  [ Uninstall ] [ List Files ] [ Delete ]
17. Related Topics 1.2.0  [ Uninstall ] [ List Files ] [ Delete ]
18. Remove Quoted Images 1.0  [ Uninstall ] [ List Files ] [ Delete ]
19. SA FBConnect 0.2  [ Uninstall ] [ List Files ] [ Delete ]
20. SMF Gallery Pro 2.5.7.2 [ Upgrade ] [ List Files ] [ Delete ]
21. SMF Gallery Pro 3.0.3 [ Upgrade ] [ List Files ] [ Delete ]
22. SMF Gallery Pro 4.0.1b [ Upgrade ] [ List Files ] [ Delete ]
23. SMF Gallery Pro 4.0.2 [ Upgrade ] [ List Files ] [ Delete ]
24. SMF Gallery Pro 4.0 [ Upgrade ] [ List Files ] [ Delete ]
25. SMF Links 2.1.2  [ Uninstall ] [ List Files ] [ Delete ]
26. SMF Affiliates Mod 3.0.3 [ List Files ] [ Delete ]
27. Simple .htaccess Cache Mod 2.6  [ Uninstall ] [ List Files ] [ Delete ]
28. Spiders Don't Increase Topic Views 1.1  [ Uninstall ] [ List Files ] [ Delete ]
29. Stop Spammer 2.3.9  [ Uninstall ] [ List Files ] [ Delete ]
30. Topic description 1.1  [ Uninstall ] [ List Files ] [ Delete ]
31. Users Online Today Mod 1.4.0  [ Uninstall ] [ List Files ] [ Delete ]
32. XarSmilies-1 1.0  [ Uninstall ] [ List Files ] [ Delete ]
33. XarSmilies-2 1.0  [ Uninstall ] [ List Files ] [ Delete ]
34. Custom Action Mod 2.04  [ Uninstall ] [ List Files ] [ Delete ]
35. Downloads System 1.0.4 [ List Files ] [ Delete ]
36. Auto Email Inactive Users 1.7  [ Uninstall ] [ List Files ] [ Delete ]
37. RSS Feed Icon 1.1  [ Uninstall ] [ List Files ] [ Delete ]
38. Global Headers Footers 1.3  [ Uninstall ] [ List Files ] [ Delete ]
39. httpBL 2.5.1  [ Uninstall ] [ List Files ] [ Delete ]
40. Ignore Boards 2.1 [ Apply Mod ] [ List Files ] [ Delete ]
41. Add IP2Location to Track IP 1.2 [ Apply Mod ] [ List Files ] [ Delete ]
42. jsTeX tag 1.1  [ Uninstall ] [ List Files ] [ Delete ]
43. Mimetex 1.01  [ Uninstall ] [ List Files ] [ Delete ]
44. Tapatalk SMF Plugin 0.9.11 [ Apply Mod ] [ List Files ] [ Delete ]
45. Twitter and Facebook Publisher mod 2.8  [ Uninstall ] [ List Files ] [ Delete ]
46. Pretty URLs - Base 0.8.4  [ Uninstall ] [ List Files ] [ Delete ]
47. Pretty URLs 1.0  [ List Files ] [ Delete ]
48. reCAPTCHA for SMF 0.9.7  [ Uninstall ] [ List Files ] [ Delete ]
49. Reason For Editing Mod 1.14  [ Uninstall ] [ List Files ] [ Delete ]
50. RedirectPage 1.9a [ List Files ] [ Delete ]
51. Share This Topic 1.4  [ Uninstall ] [ List Files ] [ Delete ]
52. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0  [ List Files ] [ Delete ]
53. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0  [ List Files ] [ Delete ]
54. SMF 1.0.14 / 1.1.6 Update 1.0  [ List Files ] [ Delete ]
55. SMF 1.0.15 / 1.1.7 Update 1.0  [ List Files ] [ Delete ]
56. SMF 1.0.16 / 1.1.8 Update 1.0  [ List Files ] [ Delete ]
57. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0  [ List Files ] [ Delete ]
58. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1  [ List Files ] [ Delete ]
59. SMF 1.0.19 / 1.1.11 Update 1.0  [ List Files ] [ Delete ]
60. SMF 1.0.20 / 1.1.12 Update 1.0  [ List Files ] [ Delete ]
61. SMF 1.0.21 / 1.1.13 Update 1.0  [ List Files ] [ Delete ]
62. SMF 1.0.22 / 1.1.16 Update 1.0  [ List Files ] [ Delete ]
63. SMF 1.0.23 / 1.1.17 Update 1.0  [ List Files ] [ Delete ]
64. SMF 1.1.14 Update 1.0  [ List Files ] [ Delete ]
65. SMF 1.1.15 Update 1.0  [ List Files ] [ Delete ]
66. SMF 1.1.18 Update 1.0  [ List Files ] [ Delete ]
67. SMF 1.1.19 / 2.0.6 Update 1.0  [ List Files ] [ Delete ]
68. Spam Me Not Mod 1.02  [ Uninstall ] [ List Files ] [ Delete ]
69. Twitter and Facebook Publisher mod 2.2 [ List Files ] [ Delete ]
70. SMF 1.1.20 / 2.0.9 Update 1.0  [ Uninstall ] [ List Files ] [ Delete ]
71. SMF Gallery Pro
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 11:26:05 am
but not the one you mentioned, beside the whole forum is up and running for 8 years now without any problems ;) updating ever and having no problems ;)
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: SMFHacks on February 14, 2015, 12:36:09 pm
You said you had the "twitter and facebook"  and that might be causing a conflict.
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 04:21:12 pm
yeah, any idea for a quick fix? i am up to replacing the classnames in the gallery phps but it seems a bit overkill for me and definately not future proof
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: SMFHacks on February 14, 2015, 04:23:44 pm
Uninstall the other mod if not used. That mod is causing the conflict since it seems it is loading the classes all the time.  Gallery Pro only loads it when needed.
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 14, 2015, 04:28:30 pm
hmm, i am afraid that this is not an option because i rely on the facebook/twitter features

so but you gave a hint, i try to modifiy it in such a way that it just includes its twitter/fb functionality when actually needed

Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 18, 2015, 05:58:43 am
@sorry for posting this in wrong board, pls move to "support"

either way, i removed the twitteroauth.php and the oauth.php files from the system ( kept the files, removed content)

both twitter php files where the same, but: the 301 error stays ... :/
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: SMFHacks on February 19, 2015, 08:53:15 pm
Double check your twitter public and secret keys.
If you are still having an issue let me know.
Title: Re: twitter connect problem Could not connect to Twitter....
Post by: trifox on February 20, 2015, 04:43:41 am
yes sir, double checked .... problem stays, when clicking on the "sign in with twitter" button in galleryconfig

"Could not connect to Twitter. Refresh the page or try again later. - 301"