![]() |
|
Overwrite file-duplicates when moving images? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Overwrite file-duplicates when moving images? (/thread-13691.html) |
Overwrite file-duplicates when moving images? - diefl - 2022-02-11 Acutally, when moving a file from one gallery to another and the file already exists, theres is an warning ("image already exists") if the file already exists. When mass-moving images between galleries, this is not practical, becaus i can´t see which images are affected/duplicates. Is it possible to simply overwrite the existing files when they are already in the target-gallery? regards Overwrite file-duplicates when moving images? - acrylian - 2022-02-11 I assume you mean the move utiltiy on albums ("Gallery" means the whole site in ZP terms)? No, that is not possible right now except hacking. We'll see if we can add some kind of dialogue to choose. I'll put that on our list. You could alternatively move images directly via FTP but that has some disadvantages if you need data entered on the backend to move with them. Overwrite file-duplicates when moving images? - diefl - 2022-02-22 A future function would be great, but a dialouge won´t be necessary for this special case -do you have a hint for me, where to start coding? Overwrite file-duplicates when moving images? - acrylian - 2022-02-22 That is not that easy and would require quite a lot hacking which I cannot recommend. We have a 'move_object' filter in the base PersistentObject class but that only fires when an object can successfully be moved. The actualy process of bulk actions is handled in the admin function Overwrite file-duplicates when moving images? - sbillard - 2022-02-22 I do have a question. You say you are bulk moving images from one album to another and need to know which ones were not moved because of the duplicate in the destination album. Is this correct? But wouldn't the images that were not moved simply be the ones still left in the source album? (There does seem to be a flaw in the process since it aborts upon the first duplicate. But that is easily fixed in the bulk actions code.) Overwrite file-duplicates when moving images? - acrylian - 2022-02-22
Indeed and same for copying. Will look into that asap. Overwrite file-duplicates when moving images? - acrylian - 2022-02-28 The support build aka 1.6a has this fixed and also includes the affected images on failure in the error messages. Overwrite file-duplicates when moving images? - diefl - 2022-03-08 Are there any different/special requirements for installing the ? Overwrite file-duplicates when moving images? - acrylian - 2022-03-08 You mean it stops afterwards? In any case 1.6a requires PHP 7+ but generally it should work if 1.5.9 does. If that's not it please review your logs as it can be lots of things. Also note 1.6a is not intended for live sites yet. Overwrite file-duplicates when moving images? - diefl - 2022-03-08 The backend seems to work. The frontend shows ablank page. Overwrite file-duplicates when moving images? - acrylian - 2022-03-08 If you geet a blank page there is usually a PHP fatal error. Review the logs please. Also disabale third party plugins and if you don't use any of the officail themes remove the third party theme as well. Overwrite file-duplicates when moving images? - diefl - 2022-03-14 Yes, I get a php-warning: and ... Cannot modify header information - headers already sent by (output started at /[...]/login-2022/zp-core/zp-extensions/uploader_jQuery/class-uploadhandler.php:1210) in /[...]/zp-core/zp-extensions/uploader_jQuery/uploader.php on line 64 header called from uploader.php [64] . ..when uploading images from the backend. Overwrite file-duplicates when moving images? - acrylian - 2022-03-14 The maintenance mode change is rather new. Do you have any maintenace mode active currently? Overwrite file-duplicates when moving images? - diefl - 2022-03-14 Got it, there is a failure at line 37 in the index.php Overwrite file-duplicates when moving images? - acrylian - 2022-03-14 So no issue on our end? On line 37 of the root index.php the rss placeholder starts in 1.6a. Overwrite file-duplicates when moving images? - diefl - 2022-03-15 Yes, that´s correct, it´s an issue with the rss-placeholder. My Host does not allow error reporting (!), tested it localy yesterday. I will have a look at the maintainance mode warning next. Overwrite file-duplicates when moving images? - acrylian - 2022-03-15 Really weid because the root index.php comes first, there should really be no headers before it… Looking forward what you may find out… (Really strange that your host does not allow error reporting…)
Yes, that is new. It was recommended to do this manually to avoid trouble cause by site access during that so we thought it a good idea to do this automatically. |