Image galleries to file galleries migration script fails
- Status
- Closed
- Subject
- Image galleries to file galleries migration script fails
- Version
- 21.x
- Category
- Bug
- Feature
- Image Gallery
- Resolution status
- Fixed or Solved
- Submitted by
- Jean-Marc Libs
- Volunteered to solve
- Jean-Marc Libs
- Lastmod by
- Jean-Marc Libs
- Rating
- Description
On a site with image galleries, there is a button in page tiki-galleries.php which claims Migrate Images to File Gallery
When I click on it, a new File gallery is created and named Migrated Image Galleries (that is perfect!)
For each image gallery, a file gallery with the same name as the image gallery is created as a child of Migrated Image Galleries (still perfect!)But no images are actually migrated to these new file galleries. The new file galleries are empty and the old image galleries are still there.
Using the command line version gives the same lack of result:
Copy to clipboardphp console.php gallery:migrate All files migrated! feedback: L'image a été réduite : %s x %s -> %s x %s error: Duplicate file found as `Nouveau Fichier`. Upload rejected. error: Duplicate file found as `Beatrice1.jpeg`. Upload rejected. error: Duplicate file found as `kitty.jpg`. Upload rejected. error: Duplicate file found as `160x55_INESSStccn.jpg`. Upload rejected.But nothing was actually migrated.
Files are stored on the file system, in case that makes a difference.
This prevents people from getting rid of deprecated image galleries feature.
See issue reproduced on: http://jyhem-9952-7324.show2.tikiwiki.org/
- Log in as admin
- Go to http://jyhem-9952-7324.show2.tikiwiki.org/tiki-galleries.php and click on Migrate Images to File Gallery.
- See a new file gallery showed up in http://jyhem-9952-7324.show2.tikiwiki.org/tiki-list_file_gallery.php with sub-galleries with proper names. The new file galleries are empty instead of containing the migrated images.
This also creates the file galeries without migrating the files:Copy to clipboardroot@seed22:/var/www/jyhem-9952-7324# php console.php gallery:migrate Undefined index: show_filename on line 175 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined index: show_filename on line 177 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined offset: 31 on line 737 of /var/www/jyhem-9952-7324/lib/metadata/datatypes/exif.php Undefined index: show_filename on line 175 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined index: show_filename on line 177 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined index: show_filename on line 175 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined index: show_filename on line 177 of /var/www/jyhem-9952-7324/lib/filegals/filegallib.php Undefined offset: 31 on line 737 of /var/www/jyhem-9952-7324/lib/metadata/datatypes/exif.php All files migrated!- Solution
That was an issue in
lib/core/Tiki/FileGallery/SaveHandler.php
Fixed in 25f639a..844ebf4- Importance
- 5
- Easy to solve?
- 6
- Priority
- 30
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7324
- Created
- Wednesday 18 March, 2020 17:16:37 UTC
by Jean-Marc Libs - LastModif
- Wednesday 25 March, 2020 22:23:00 UTC