jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

oauth_requestToken() and PHP 7.3 #254

Open DrewMasci opened 5 years ago

DrewMasci commented 5 years ago

It's taken a little while to work out but PHP 7.3 seems to always return a server error with this function.

I'm uncertain if it's any other function but the status from twitter is always 500. PHP 7.2 works perfectly fine so I assume there's a dependency that isn't listed and needs to be set up for 7.3 that's natively a part of 7.2.

mynetx commented 5 years ago

Any help with this appreciated, and we're ready to update ze docs accordingly

DrewMasci commented 5 years ago

I'm now getting the issue with PHP 7.2 as well... I'm left unsure why I'm getting these 500 errors. Could be something Twitter's side.

xx461037 commented 5 years ago

Just found out that If your callback_url is incorrect you will get an httpstatus error 500 message when calling POST oauth/request_token. Also take a look at these comments I found for you…

https://twittercommunity.com/t/intermittent-failures-for-request-and-access-tokens/72424

From: Drew [mailto:notifications@github.com] Sent: Monday, September 02, 2019 11:06 AM To: jublo/codebird-php Cc: Subscribed Subject: Re: [jublo/codebird-php] oauth_requestToken() and PHP 7.3 (#254)

I'm now getting the issue with PHP 7.2 as well... I'm left unsure why I'm getting these 500 errors. Could be something Twitter's side.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jublo/codebird-php/issues/254?email_source=notifications&email_token=ABVG5TPKDJJQMXAXSFUWQV3QHUTWDA5CNFSM4ISYC73KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WBY3A#issuecomment-527178860 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABVG5TL5G37JSCQL6I6GNALQHUTWDANCNFSM4ISYC73A . https://github.com/notifications/beacon/ABVG5TOT3E5MUFJJ5LFBZ7DQHUTWDA5CNFSM4ISYC73KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WBY3A.gif