Forum Replies Created

Viewing 13 replies - 46 through 58 (of 58 total)
  • Thread Starter Thomas

    (@thomhsb)

    All is all right now,
    Thank you !

    Thread Starter Thomas

    (@thomhsb)

    Hi,
    In admin mode, it is impossible to modify the files of my child theme:

    Uncaught Error: Class 'Elementor\Plugin' not found in core/themes/oceanwp/inc/helpers.php:4976
    Stack trace:
    #0 core/themes/oceanwp/partials/topbar/content.php(63): ocean_do_template_content('580')
    #1 wp-includes/template.php(772): require('/home/bljf2949/...')
    #2 wp-includes/template.php(716): load_template('/home/bljf2949/...', false, Array)
    #3 wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
    #4 core/themes/oceanwp/partials/topbar/layout.php(43): get_template_part('partials/topbar...')
    #5 wp-includes/template.php(772): require('/home/bljf2949/...')
    #6 wp-includes/template.php(716): load_temp
    Thread Starter Thomas

    (@thomhsb)

    To inform potential readers of this ticket, this action fixes the problem.

    Thanks a lot Abhishek !

    Thread Starter Thomas

    (@thomhsb)

    Yippee!! It works for me too, great!
    Should I leave this action forever or are you planning a fix in the next version?
    The code doesn’t bother me much, it’s just to know ??

    Thanks again for your attention and support !

    Thread Starter Thomas

    (@thomhsb)

    You’re welcome.
    The fact that you are looking for a solution is the most important thing.
    I will test this right away and get back to you to confirm.

    Thread Starter Thomas

    (@thomhsb)

    You’re Welcome.

    Your code has no effect.

    Do you want the access codes of the site?

    I have made a new installation of WordPress + Woocommerce with OceanWp + OceanExtra.

    I can send you the credentials and even ftp access in the upload directory so you can see for yourself that what I say is true. Just send me an email and I’ll send it to you.

    Thread Starter Thomas

    (@thomhsb)

    Hello,

    I have made several tests. I removed all my plugins, empty my functions.php file and I still have the same result. Until version 3.1.4, everything works fine with the snippet to unset sizes. When I upload an image, I get two files on the server: the original image + one thumbnail.
    As soon as I upgrade to version 3.2.0, I get two more thumbnails.

    Even when I add the snippet only in my functions.php file, it does not work anymore. I still have two more thumbnails (600×600 and 800x…)

    code snippet :

    function remove_default_image_sizes( $sizes ) {
    unset( $sizes[ ‘thumbnail’ ]);
    unset( $sizes[ ‘medium’ ]);
    unset( $sizes[ ‘medium_large’ ]);
    unset( $sizes[ ‘large’ ]);

    unset( $sizes[ ‘shop_thumbnail’ ]);
    unset( $sizes[ ‘shop_catalog’ ]);
    unset( $sizes[ ‘shop_single’ ]);
    unset($sizes[‘woocommerce_gallery_thumbnail’]);
    //unset($sizes[‘woocommerce_single’]);
    unset($sizes[‘woocommerce_thumbnail’]);

    unset($sizes[‘1536×1536’]);
    unset($sizes[‘2048×2048’]);
    unset($sizes[‘blog-isotope’]);
    unset($sizes[‘product_small_thumbnail’]);

    return $sizes;
    }
    add_filter( ‘intermediate_image_sizes_advanced’, ‘remove_default_image_sizes’);

    Regards

    • This reply was modified 2 years, 7 months ago by Thomas.
    Thread Starter Thomas

    (@thomhsb)

    I found it, thanks anyway.

    Thread Starter Thomas

    (@thomhsb)

    Hello,

    The code has no effect. As long as I’m using version 3.1.4, no problem.
    As soon as I install version 3.2.1, there are two more thumbnails.

    So I go back to the old one for now.

    Where can I find version 3.2.0 please? I would like to confirm that it is from this version that it started.

    Thanks

    Thread Starter Thomas

    (@thomhsb)

    Hello,

    Thank you for your feedback.

    Ok, I will reinstall version 3.2.1 and test your hook later today.
    I’ll tell you if it works.

    Thread Starter Thomas

    (@thomhsb)

    In fact, it seems that it is since 3.2.0

    Thread Starter Thomas

    (@thomhsb)

    En fait, il semblerait que ce soit depuis la 3.2.0

    Thread Starter Thomas

    (@thomhsb)

    Sorry, I can’t right now. But my tests are working.

    According to my configuration, I only want the original image and a 388x thumbnail (via [woocommerce_single]).

    In the Admin panel -> Settings -> Media, everything is set to 0.

    In the oceanwp panel (Appearance > Customize > WooCommerce > Product Images > Thumbnail Width), the first field is set to 388 and the second to 0.

    In my functions.php file, I added :

    add_filter(‘intermediate_image_sizes_advanced’, function($sizes){
    unset($sizes[‘thumbnail’]);
    unset($sizes[‘medium’]);
    unset($sizes[‘medium_large’]);
    unset($sizes[‘large’]);
    unset($sizes[‘1536×1536’]);
    unset($sizes[‘2048×2048’]);
    unset($sizes[‘blog-isotope’]);
    unset($sizes[‘product_small_thumbnail’]);
    unset($sizes[‘shop_catalog’]);
    unset($sizes[‘shop_single’]);
    unset($sizes[‘shop_single_small_thumbnail’]);
    unset($sizes[‘shop_thumbnail’]);
    unset($sizes[‘woocommerce_thumbnail’]);
    unset($sizes[‘woocommerce_gallery_thumbnail’]);
    return $sizes;
    });

    I’ve been using oceanwp since 2019, I’ve never had a problem.
    When I upload an image, I get :

    – my_mage.jpg
    – my_mage-388×240.jpg

    And that’s what I want.

    But as soon as I install version 3.2.1, two other thumbnails appear without any change in my initial configuration, nor any other plugin installed:

    – my_mage.jpg
    – my_mage-388×340.jpg
    And in addition :
    – my_mage-600×600.jpg
    – my_mage-800×450.jpg

    I haven’t tried it with versions after 3.1.4 yet, but putting back version 3.1.4 doesn’t do it anymore.

Viewing 13 replies - 46 through 58 (of 58 total)