Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.3.0 do not authenticate with flickr #11

Closed
ceinmart opened this issue Feb 21, 2018 · 6 comments
Closed

Version 1.3.0 do not authenticate with flickr #11

ceinmart opened this issue Feb 21, 2018 · 6 comments
Labels

Comments

@ceinmart
Copy link

ceinmart commented Feb 21, 2018

Hi,
I've reinstalled the plugin using the piwigo admin interface.
Its show is version 1.3.0.
When click at "login" button , then raise the error below .
What could be?
PHP version?

Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException: file_get_contents(https://www.flickr.com/services/oauth/request_token): failed to open stream: no suitable wrapper could be found in /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:73 Stack trace: #0 /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/AbstractService.php(52): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), '', Array) #1 /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(718): OAuth\OAuth1\Service\AbstractService->requestRequestToken() #2 /home/imartins/public_html/fotos/plugins/flickr2piwigo/admin/import.php(60): Samwilson\PhpFlickr\PhpFlickr->getAuthUrl('read', 'https://fotos.i...') #3 /home/imartins/public_html/fotos/plugins/flickr2piwigo/admin.php(19): include('/home/imartins/...') #4 /home/imartins/public_html/f in /home/imartins/public_html/fotos/plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php on line 73

Piwigo 2.9.2
Operating system: Linux
PHP: 7.0.27 (Show info) [2018-02-20 15:41:22]
MySQL: 5.6.36-cll-lve [2018-02-20 12:41:22]
Graphics Library: External ImageMagick 6.7.8-9

@samwilson
Copy link
Collaborator

This is most likely due to your PHP setup not having URL fopen wrappers enabled; see https://secure.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

I've switched PhpFlickr to use the Curl HTTP client, which should avoid this, and released 1.3.1. Can you try again?

@samwilson samwilson added the bug label Feb 22, 2018
@ceinmart
Copy link
Author

Hi Sam,
Works now!
But after login and authorize the access they back to piwigo at the page with "login" button, a float message says I'm logged at flickr , but I expected to see my albums... and if I click at Login button again, they redirect again to flickr page asking the autorization... and then back to piwigo again...

@samwilson
Copy link
Collaborator

samwilson commented Feb 22, 2018 via email

@ceinmart
Copy link
Author

ceinmart commented Feb 22, 2018

I tried again and I got same behave, but after back from the flickr autentication I forced a refresh at piwigo page and then appear two buttos : to list my albuns and import them.
So ,just details , lol....
I will close this, ok
Thank you!!!

@samwilson
Copy link
Collaborator

Cool, thanks for confirming!

I'll fix it up, even though there's a workaround. Would be nice if it behaved correctly. :)

@samwilson samwilson reopened this Feb 22, 2018
@samwilson
Copy link
Collaborator

Okay, updated and version 1.3.2 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants