Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
URL_BASE is no longer a constant in Phirehose.php
/**
* @internal Moved from being a const to a variable, because some methods (user and site) need to change it.
*/
protected $URL_BASE = 'https://stream.twitter.com/1.1/statuses/';
so make line 139 of TwitterstreamPublicConsumer.php
$url = $this->URL_BASE . $this->method . '.' . $this->format;
Comment | File | Size | Author |
---|---|---|---|
#12 | compatibility-with-latest-phirehose-2176543-12.patch | 4.6 KB | ArnaudDabouis |
Comments
Comment #1
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedComment #2
themic8 CreditAttribution: themic8 commentedThis patch didn't worked for me.
Comment #3
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedComment #4
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedComment #5
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedThis one complies with Drupal patching standards and should work.
Comment #6
themic8 CreditAttribution: themic8 commentedI think the phirehose code has been updated and this patch is no longer valid.
Comment #7
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedRight, this patch has been done to comply with the 0.2.4 version of Phirehose. Feel free to post yours with a more up to date version of the lib.
Comment #8
themic8 CreditAttribution: themic8 commentedAh, that is the version you are using. The version of phirehose used is not documented anywhere.
I was unable to authenticate so I have rolled my own custom module for now.
Comment #9
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedYes, I think the issue you have is with the fact that TwitterstreamPublicConsumer class should inherit OauthPhirehose and not Phirehose. I will write a clean patch when I find the time.
Comment #10
ArnaudDabouis CreditAttribution: ArnaudDabouis commentedComment #11
themic8 CreditAttribution: themic8 commentedYes, In my code I am extending OauthPhirehose.
Comment #12
ArnaudDabouis CreditAttribution: ArnaudDabouis at Lumini commented