• JCV

    (@psykonevro)


    Hi,

    Despite the latest changes, and although the previous warnings are not displayed anymore following this bug report, OceanWP doesn’t show featured images in div “container clr page-header-inner” when (I suppose) the image hasn’t a determined size.

    If I replaced line 2481 inc/helpers.php
    $bg_img = get_the_post_thumbnail_url();
    by
    $bg_img = get_the_post_thumbnail_url( get_the_ID() , $bg_img_size );
    everything works. Otherwise, no picture is shown as featured image.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @psykonevro,

    Thank you for reaching out,

    I’ve tried to reproduce the issue on my end, but I wasn’t successful.
    Please tell us how we can replicate your steps to arrive at the issue on a fresh WordPress installation.

    Please keep us posted.
    Thank you,
    Best Regards

    Thread Starter JCV

    (@psykonevro)

    Hi @skalanter
    We went through all steps together two months ago ??

    Shahin

    (@skalanter)

    Hello @psykonevro,

    Thank you for reaching out,

    I double-checked the previous topic but couldn’t replicate the issue you mentioned in this thread. Would you please record and send us a short video from a brand-new WP installation of that issue so that we can try to reproduce it on our end?

    Please keep us posted.
    Thank you.
    Best Regards

    Thread Starter JCV

    (@psykonevro)

    Hi @skalanter,
    Thanks for your answer.
    I can’t re-install my entire wordpress, I’ve too many settings, plugins, and history (was installed 20 years ago!). But I confirm I deactivated all plugins (except OceanWP) to make sure it wasn’t plugin collision related.

    Don’t know if could give you clue of what is happening, but if try to get the thumbnail url (in helpers)

    var_dump( get_the_post_thumbnail_url() );
    I get the following link: “https://www.jcvignoli.com/blog/wp-content/uploads/Chavin-de-Huantar-Marches-de-la-dualite-150×113.jpg”
    Which doesn’t get to be displayed. I now understand why, the picture is too small!

    If it try with

    var_dump( get_the_post_thumbnail_url( get_the_ID() , $bg_img_size ) );
    I get the full URL: “https://www.jcvignoli.com/blog/wp-content/uploads/Chavin-de-Huantar-Marches-de-la-dualite.jpg”

    So, basically, in the first case (original helpers.php), it gets the true thumbnail size. If I add the two parameters, it gets the original picture.

    Any idea why?

    Hello @psykonevro,

    Thank you for reaching out.
    I’ve tried multiple times to reproduce the issue on my end, but I was unsuccessful.

    You don’t need to make any changes to your current WordPress installation.

    If possible, please install WordPress somewhere else and try to reproduce the issue you raised on this topic. Once you’ve reproduced the issue, please send us the steps to reproduce it. Whenever we have reproduced the issue, we will check and provide a solution to solve it.

    Thank you,
    We appreciate your understanding.
    Best regards

    Thread Starter JCV

    (@psykonevro)

    Hi @skalanter
    Thanks for your advice, but I’m plugin developer and now how to re-install WP ??
    I tried to replicate the issue on my side. I used a vanilla WP, installed a couple of plugins, imported OceanWP options, etc. Couldn’t replicate it.

    But I can’t go through 20 years of DB modifications and copy-paste it, except if I just copy-paste the database itself (which wouldn’t be usefull, would it?). To me, it doesn’t make sense the way get_the_post_thumbnail_url() behaves in my 20-yo-install and in a vanilla WP.

    Unfortunately, if I can’t replicate it, you have even less chance to replicate it. I understand you can’t debug my issue. But should you have a clue about why get_the_post_thumbnail_url() function get once the thumbnail, once the full pic, this would help me a lot.

    In the meantime, I just copied the function oceanwp_page_header_css() in my child theme to override it with the parameters. This way, I will keep a working function for my needs.

    In any case, thanks for your time. Hope to find at some point what is wrong with my install.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.