Kostiantyn Petlia
Forum Replies Created
-
Forum: Plugins
In reply to: [Regenerate Thumbnails] All SVG files were removed after plugin workYep.
Here is the reproduce bug way:
1) Add SVG to Uploads in the normal way.
2) Regenerate all thumbnails with unchecked both:
[ ] Skip regenerating existing correctly sized thumbnails (faster).
[ ] 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.The result will “Skipped unsupported file format”.
https://www.screencast.com/t/5Miqpuis3
3) Add a new image size, for example:
add_image_size( 'test-only', 666, 666, ['center', 'center'] );
4) Repeat the step 2 and after it remove the new image size in PHP.
5) Regenerate all thumbnails with:
[ ] 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.The result will “The full-size image cannot be found in the uploads folder in 2020/04/ logo-visa.svg. Without this image, no new thumbnail images can be generated.”
https://www.screencast.com/t/orxruzqkf
So, here SVG files were gone!
6) We have all SVGs in Media are still present, but broken (without a file).
https://www.screencast.com/t/FaVU4OShRjR
https://www.screencast.com/t/sxhArEeE
Perhaps, the root of the problem is in something other. Let’s find a solution. Guys, do only I think it is a critical bug? Imagine, if the production site has a lot of SVGs and all they will go away…
Forum: Plugins
In reply to: [Regenerate Thumbnails] All SVG files were removed after plugin workThe question is still there. Why and how were removed original SVG files if they should be skipped in any case (regenerating thumbs, deleting old sizes, any other)? I have to understand and find the reason because it is important for site integrity.
Forum: Fixing WordPress
In reply to: Different languages for fronted and backend – $locale not workingEnglish search gave me the null result. This is solution (Russian):
https://wp-kama.ru/question/otlichie-yazyka-po-umolchaniyu-ot-yazyka-admin-paneli
I hope it will save time somebody.
Forum: Plugins
In reply to: [Polylang] pll_get_post($id, $lang) always return false (but trans is)Hey! People! I try again… Only 2 debug-screenshot:
1) All is Ok: https://prntscr.com/badkq4
2) Next step (wp_update_post($my_post_trans)) and all is broken: https://prntscr.com/badn1iif(!empty($my_post)) wp_update_post($my_post); // Ok if(!empty($my_post_trans)) wp_update_post($my_post_trans); // Langs broken
Why? What do I wrong?
Forum: Plugins
In reply to: [Polylang] pll_get_post($id, $lang) always return false (but trans is)I’ll crazy!
save_post, acf/save_post, pll_save_post… What kind is right order? And they call one other. Where is Documentation? It’s Hell…
Please, help me, anybody!
Forum: Plugins
In reply to: [Polylang] pll_get_post($id, $lang) always return false (but trans is)Finally, I just want to see the basic key chain hooks with comments.
With the indication of the place where I can safely change the “some post data” (status, title, slug, the language). And that it did not break Polylang and does not cause infinitely cycles.
Forum: Plugins
In reply to: [Advanced Editor Tools] "Tiny toolbar" disappeared for the editor role!I had the same problem and fix it:
add_filter('tiny_mce_before_init', 'myCustomTinyMCE' ); function myCustomTinyMCE( $settings ) { $settings['wordpress_adv_hidden'] = false; return $settings; }