All SVG files were removed after plugin work
-
Hi.
Thanks for so great plugin!I have a strange and very annoying issue. I hope you could help with it.
After some plugin manipulations, all SVG files were removed at all. It is not the first time, so, I start to look at a solution.
PHP 7.2.16, WordPress 5.4.1, Advanced Custom Fields PRO 5.8.9, SVG Support 2.3.18 & Regenerate Thumbnails 3.1.3.
I’m not sure the exact the issue context but I reproduced the issue when:
1) add_image_size(‘test’, 666, 0);
2) regenerate thumbnails with different settings (all was Ok);
3) remove the ‘test’ size in PHP;
4) process the thumbnails regeneration with next options:
[ ] Skip regenerating existing correctly sized thumbnails (faster).
[V] Delete thumbnail files for old unregistered sizes in order to free up server space. This may result in broken images in your posts and pages.Screenshots:
https://www.screencast.com/t/A7mZiVIwJD – SVGs in the Media after the issue has happened; attachments are, but no files in the server;
https://www.screencast.com/t/kdc55Buu – an “empty” SVG attachment;
https://www.screencast.com/t/ddoTQoAdrO – if I’ll recovery SVG files directly by SFTP all is good;
During work (in this time SVGs were deleted) I had only these plugin’s messages:
a) https://www.screencast.com/t/lbKhwFxcjfzR (“Skip”);
b) https://www.screencast.com/t/FxkAGn9sA5 (“The fullsize image file cannot be found in your uploads directory at%s
. Without it, new thumbnail images can’t be generated.”).I think I don’t process SVG with custom theme code.
Perhaps it is related that SVG doesn’t have ‘sizes’ and the ‘old size’ === the ‘original image’ or something similar?
wp_delete_file( $wp_upload_dir . $old_size_data['file'] );
Thanks in advance for your time.
- The topic ‘All SVG files were removed after plugin work’ is closed to new replies.