Giter VIP home page Giter VIP logo

flickr2piwigo's People

Contributors

ddtddt avatar felixkrohn avatar mistic100 avatar piwigo-translationteam avatar plegall avatar samwilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flickr2piwigo's Issues

Piwigo - 2.9.1 Login to Flickr-Account not working

Unfortunately the Login to Flickr with the flickr2piwigo-Plugin is not working.
After pressing the "Anmeldung" (login)-Button, the Piwigo-Gallery is closed and you will be redirected to the Flickr Page.

For this reason the plugin is not working at all.

Error Notices up the Wazoo

Using 1.5.5 (though it reports 1.5.3
Finds my albums via List Albums, but on the results:
Selection
No photo in the current set.
It is this screen that has these error notices:


Notice: Undefined index: photoset in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 189

Deprecated: Function create_function() is deprecated in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 199

Warning: Invalid argument supplied for foreach() in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 203

Warning: array_slice() expects parameter 1 to be array, null given in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 221

Deprecated: Function create_function() is deprecated in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 222

Warning: array_map(): Argument #2 should be an array in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 222

Warning: Invalid argument supplied for foreach() in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 224

Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 233

Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 234

Warning: count(): Parameter must be an array or an object that implements Countable in /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php on line 252

Warning: Cannot modify header information - headers already sent by (output started at /home/flashale/public_html/piwigo/plugins/flickr2piwigo/admin/import.php:189) in /home/flashale/public_html/piwigo/include/page_header.php on line 86

Support Flickr's date granularities

Flickr items have a date, and a "date granularity" which determines how much of the date is accurate.

Granularity Format
0 Y-m-d H:i:s
4 Y-m
6 Y
8 Circa Y

See https://www.flickr.com/services/api/misc.dates.html form more info.

I'm not really sure how Piwigo can support this, as we need to be able to modify the date inputs everywhere, and all the places that the date is displayed (including the calendar view, where we'd want to be able to list photos that e.g. only have a year or a month, and no day).

I think this could be a separate plugin, because it's something that would be useful even without any connection to Flickr. Could still use the same granularity identifiers though, for simplicity (they seem a reasonable design).

Alternatively, perhaps flickr2piwigo could just add keywords for these approximate dates? At least for now, so we don't through this information away.

Half grey images imported - where to look for the cause?

I'd tried to import albums from flickr. The images get imported but some of them are half grey.
I'd take look into the logfile and can't find any hint of the cause. I also tried this with a new install on a server where the script has way more RAM and can run longer. The results are the same.
The grey images are different on different imports. Also often the first part of the image is not grey but shows parts of the original image.
I can't figure out whether it is caused by my Piwigo installation or flickr.

Any comments?

Missing some albums

I have many albums in Flickr. In Flickr2Piwigo, when I click "List my albums" there are some missing albums. Any idea how to troubleshoot this? It currently shows 1005 albums.

Uncaught TokenResponseException, cURL timed out after 0 milliseconds with 0 out of 0 bytes received

Seems to be perhaps a rate-limiting, so doesn't matter (any missed photo will be caught on the next run) but we should make it work better than this.

Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException:
cURL Error # 28: Operation timed out after 0 milliseconds with 0 out of 0 bytes received in
plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php:135

Stack trace:
#0 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(98):
   OAuth\Common\Http\Client\CurlClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), 'photo_ids=36061...', Array, 'POST')
#1 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(124):
   OAuth\OAuth1\Service\Flickr->request('flickr.photoset...', 'POST', Array, Array) 
#2 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(347):
   OAuth\OAuth1\Service\Flickr->requestJson('flickr.photoset...', 'POST', Array) 
#3 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/Photos
   in plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php on line 135

cURL timeout

I am getting a cURL timeout error, and I am curious if this is a setting that can be set in Flickr2Piwigo, Flickr issue or if it is a hosting issue?

ERROR MESSAGE:
An error occurred when trying to log in to Flickr: cURL Error # 28: Connection timed out after 15000 milliseconds

Any advice appreciated.

Import stuck

I have 17000+ photos on Flickr and I'm transferring them on Piwigo with this plugin. Everything goes smoothly (even if it takes several hours to complete) until I get to picture 16421. I can't know what goes on because my display is filled with errors of wrong file type (for videos, which are not imported). I tried again the import several times, even by night, leaving the computer on and waiting for several hours but the counter stays put to photo 16421.

  • How can I know what is causing the issue?
  • Is there a way to see the logs (I am a newbie and my Piwigo is not self-hosted)?

Thanks a lot in advance for your help!

T

Wrong number of photo

Flickr2piwigo dont see the right number of pictures:

6471 elements here:
number of pictures
but in fact 7264 + 75+21+21+....
liste detaille

could you help me ?

Some of the transferred images are not complete, with portions blank/empty/gray.

Greetings!

Some of the transferred images are not complete, with portions blank/empty as seen in this screen capture:

image
image

The grey parts of the image represent the missing parts of the image.

The images are indeed complete on flickr.

Is this a known issue? Any remedies? I've seen it in a few dozen instances so far.

When I re-run the flickr2piwigo transfer, will it update the incomplete images with the complete versions?

I read somewhere that flickr2piwigo checks to see if the flickr image matches up with the piwigo image, and if they don't match, then flickr2piwigo will replace the incomplete piwigo version with the full flickr version. Is that what we should expect?

Thank you!

Fatal error when opening import tab

Hi,

I have tried to install the plugin.

Adding the keys works, but when I open the import tab I get the following message

Fatal error: Uncaught Error: Call to undefined function OAuth\Common\Http\Client\curl_init() in
plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php:86 Stack trace: #0 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(98): OAuth\Common\Http\Client\CurlClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array, 'POST') #1 plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/Flickr.php(124): OAuth\OAuth1\Service\Flickr->request('flickr.test.log...', 'POST', Array, Array) #2 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/PhpFlickr.php(347): OAuth\OAuth1\Service\Flickr->requestJson('flickr.test.log...', 'POST', Array) #3 plugins/flickr2piwigo/vendor/samwilson/phpflickr/src/TestApi.php(31): Samwilson\PhpFlickr\PhpFlickr->request('flickr.test.log in plugins/flickr2piwigo/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/CurlClient.php on line 86

I did not complete this setup "7) on the Flickr page, click on the “Edit auth flow for this app” link and copy your Callback URL, provided on Flickr2Piwigo configuration page." as I am not sure where the URL is provided. Could this be the issue?

Thanks for any help

Ash

Import collections as parent albums

Flickr offers a way to collect several albums in a set, such set is called a Collection.

It would be great if collections could be imported to Piwigo as parent albums containing the albums which were part of a collection in Flickr.

Error line 88

×
ERROR
An error happened:
Fatal error: Call to a member function debug() on null in /home/nedder77/plugins/flickr2piwigo/include/ws_functions.inc.php on line 88

This is line 88.

$logger->debug('Attempting to import Flickr photo '.$params['id'], FLICKR2PIWIGO);

Flickr2Piwigo 1.3.0 does not import entire album

Administration ->
Plugins ->
Flickr2Piwigo ->
List my albums ->
Auto Upload
(no photos selected, 480 in current set)
-> The whole set
( All 480 photos are selected )
-> Choose album
-> Begin transfer

Processing (1/20) ... (20/20)

And it is finished importing 20 of them.

Imported Photos have no virtual album

Piwigo 12.1
The import from Flickr is still working, but the photos will not appear in the choosen album.
The photos are not connected to any virtual album after import, so it is needed to do this manually.

Version 1.3.0 do not authenticate with flickr

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

Album combo refresh

Hi Sam!

I suffering with a issue very very annoying where I not found how workaround.
I'm importing my flickrs photos, album by album, where I import few albums each day.
For each album usually I create a new one during the import process.
But if during this process I want to choose an album where I create few minutes ago they don't appear at the combo to choose it.
They appear only hours later.
I already try purge all options of cache available at piwigo and have no effect , I really need to wait and import later if I want to choose a recent album created.

To reproduce, just :

  1. import a flickr album and during the process create new one at piwigo.
  2. import another flickr album and try choose the last album created.

Regards
Cesar

A question about flickr_cache (not really an issue)

Hello. I've successfully imported my pictures fro Flickr, after some attempts. I would like to ask what's the folder flickr_cache for, and if it's possible to delete it. The reason is that I'm on a free host with limited inode and that folder is full of small files. Thank you.

Add continuous integration tests

We should add some continuous integration for coding standards etc.

I have started this, with adding Scrutinizer; see https://github.com/samwilson/Flickr2Piwigo/pull/1 where it's doing various tests: https://github.com/samwilson/Flickr2Piwigo/pull/1/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R15

The code quality is currently: Scrutinizer Code Quality

I think before it should go any further, however, the vendor directory should be removed from the repository. It seems like it will be easy to generate a distribution zip file for upload to piwigo.org, and if we do that we can selectively include only the bits of vendor/that are required and thus keep the download size as small as possible.

@mistic100 what do you think of Scrutinizer? It'd require a repo admin to activate it.

CLI tool for downloading all photos

Create plugins/flickr2piwigo/tools/download.php that is the equivalent to the 'import all my pictures' button in the web interface (and perhaps in the future could be extended to support single-album or other sorts of downloading).

Only visible photos of whole set are imported

Hello,

when I try to transfert an album, I have to show all the photos of the album to import them all.

example :
If the album has more than 20 photos, it paginates in the import screen.
I select 'whole set' to import more than 20 photos but the system only transfers the photos that are showed.

Only showed photos on the screen are imported

Album description is not imported

Firstly, this is a great plugin that works really well. Thank you!

I have noticed that when an album is imported from Flickr to Piwigo, the album description is not imported from Flickr - only the album name. This means I must edit each album in Piwigo and add the description again myself.

Error messages during transfer. If we restart the transfer, will the images be transferred?

Greetings!

Now and then I have been seeing intermittent error messages during transfers as shown in the attached screenshots:
IMG_4454
IMG_4450

These errors seem to appear at random for certain images, but then Flickr2Piwigo continues working and transferring further images, after reporting the intermittent errors.

My question runs as follows:

Suppose Flickr2Piwigo reports an error while transferring an image, and the image is not transferred.

If we restart the process/reload the browser, will Flickr2Piwigo try to transfer any missing images which failed to transfer during the errors which were reported?

Thank you!

Elliot

Have Been Trying to Import 300,000 Photos for Weeks! Request to start in middle? Chron job? :)

Greetings All!

The import from flickr stalls after a few days. Sometimes it stalls at over 100,000 photos, sometimes under. To date I have imported around 150,000 photos out of 300,000. But it's been a week since the import has even reached beyond 150,000 photos, after numerous stalls and restarts in the browser.

It may be that flickr times out, or the internet connection to the browser times out, but the timeout always happens in different places.

For this reason, I would like to request a feature where one could elect to just start at 100,000 photos, or at some arbitrary number. So basically the first 100,000 photos in the flickr stream could be skipped, and flickr2piwigo would just immediately start at 100,001 photos.

This is because it can take a day or two or three just to GET to the place where it stalled at 100,000 photos, and sometimes it stalls before it get there. So three days can be spent just verifying the photos which I know I already have anyway, until I have to restart the import from the browser, whence after a few days it stalls again.

Also, a server-side chron job would at least eliminate the browser network timeout.

Ideas? Suggestions?

Thank you! :)

Import restricted and moderate photos as private, and add tags

Requested in #12:

Would it be possible to import and store the safety status of the photo from flickr, such as safe, moderate, or restricted?
If this isn't possible or easy, would it be possible to import moderate and restricted photos as private, while importing the safe photos as public?

I don't think it's easy to store a new metadata key for the safety status, but certainly we should import them as private, and I think also add a keyword so it's easy to search for and modify them as required.

Does that sound okay?

It works in background?

Does it work in background if I run it for 19k photos? Or browser has to be open all the time? What with the session of PHP?

Add photos already imported to the destination album as well

Hi,

This is a feature request.
At my flickr , some photos are into multiples albums.
During the import process the plugin import only to the first album found.
If possible, when this occur, where they detected some photos was imported before , include a check box to allow add theses photos to album selected at this import, since piwigo support link one photo to multiple albums.

Regards
Cesar

Flickr2piwigo unusable

Fresh install, latest version. Followed instructions, got API keys. Managed to login to Flickr, got list of my albums allright. However no matter which album I choose I can not see a single image in them and can not import anything. In the upper part of the import window I can see the traceback:

Notice: Undefined index: photoset in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 189

Deprecated: Function create_function() is deprecated in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 199

Warning: Invalid argument supplied for foreach() in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 203

Warning: array_slice() expects parameter 1 to be array, null given in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 221

Deprecated: Function create_function() is deprecated in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 222

Warning: array_map(): Expected parameter 2 to be an array, null given in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 222

Warning: Invalid argument supplied for foreach() in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 224

Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 233

Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 234

Warning: count(): Parameter must be an array or an object that implements Countable in /config/www/gallery/plugins/flickr2piwigo/admin/import.php on line 252

In "selection" :

Selection
No photo in the current set.

Tried to reinstall a few times, no luck.

Am I missing something completely obvious??

Flickr2Piwigo 1.3.0 does not list all albums

Administration ->
Plugins ->
Flickr2Piwigo ->
List my albums ->
Auto Upload
(no photos selected, 460 in current set)
-> The whole set
( All 460 photos are selected )

When I go to look in the Album: dropdown, I do not see the flickr_import album that I created the previous time.

I don't know if this should be a separate problem or not, but if I click on "create a new album" and then type in the same name as before, it works. Shouldn't it fail if I ask it to create an album that already exists?

Flickr2Piwigo sees only 190,168 photos and presents errors. It chops up long album titles.

Thank you! I have just set piwigo up on a brand new Centos server! I hope to help you debug Flickr2Piwigo. At the moment, it is transferring files, with some issues:

2018-03-08_11-39-39
Here is a screenshot!

Some things I've noticed:

  1. It says "Selection 190168 elements ready for impotration". I actually have over 300,000 images total! Most of those are in albums too!

Here is the site:
http://66.45.225.82/pw/piwigo/

  1. Flickr2Piwigo is taking long album titles and chopping them up, so I am getting multiple album titles.

For instance, it takes an album title from flickr which has 85 photos, chops it up, and creates five albums, each which has 85 photos:

http://66.45.225.82/pw/piwigo/

Albums:
**- and Beautiful! Athena! [85]

  • Fit [85]
  • Thin [85]
  • and a Gold 45 Revolver Gun! Short Shorts Denim Daisy Dukes Jeans Shorts! Tall [85]
  • Cowboy Boots [85]
  • Pretty Cowgirl Model Goddess with Cowboy Hat [85]**

The good news is that it is transferring photos! Thanks!

Also, a question:

Is there a way to run Flickr2Piwigo from the linux shell or command line, rather than from a browser?

I have a dedicated server where I would like to leave it running so as to transfer all my images.

A related question to my above question is that if one closes the browser running Flickr2Piwigo and then opens a new browser on a new computer and runs Flickr2Piwigo, will Flickr2Piwigo continue where it last left off when the first browser was closed? Or will Flickr2Piwigo begin all over again, and download every gallery starting from the very first gallery again?

Thanks! :)

Don't import 'checksum' machine tags

Some Flickr users and software tag photos with machine tags of the form checksum:<algo>=<hash> where algo is e.g. md5 and hash is the corresponding hash of the original file. These shouldn't be imported as Piwigo keywords.

An error occurred when trying to log in to Flickr: Error in retrieving token.

Followed all instructions and can't get past this error:

"An error occurred when trying to log in to Flickr: Error in retrieving token."

Also, the instructions on the user guide linked in the extensions reads:

"on the Flickr page, click on the “Edit auth flow for this app” link and copy your Callback URL, provided on Flickr2Piwigo configuration page."

There is no Callback URL on the configuration page. I just put in the root domain I am installing on.

Any help appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.