Okay
  Public Ticket #377336
Image gallery grid style: broken images
Closed

Comments

  • Florian started the conversation

    Hi, I've added an "Image gallery" element via the visual composer to one of my pages. When choosing the "Image grid style" type, there's an option for image size. With no image size it works, but the images are not cropped so it looks ugly (different aspect ratios). When I enter an image size, e.g. 300x300, the img tags on the page are generated like this:

    <img src="./" alt="image-1">

    The only plugins I have installed are Contact Form 7, Varnish and WPML Multilingual Wordpress. So no plugins that alter images in any way.

    Do you have any idea what might be the problem?

  •  8,848
    Tahir replied

    Hey!

    Please try deactivating all third party plugins and activate them one by one as this could likely be caused by a conflict from a plugin .

    Also please update to Salient Theme Version 5.0.1 if you havent yet.
    You can update your theme by downloading a fresh copy from ThemeForest, deleting the current version you have on your server and uploading the new.
    Please see: http://codex.wordpress.org/Using_Themes
    Thanks


    ThemeNectar Support Team 

  • Florian replied

    Finally I found the problem. GD wasn't installed on the server. Unfortunately the wpb_resize function from wpbakery doesn't throw an error in that case, but instead just returns an empty url :(

    if ( is_wp_error($img_editor) || is_wp_error( $img_editor->resize($width, $height, $crop)) ) {
    return array (
    'url' => '',
    'width' => '',
    'height' => ''
    );
    } But thanks anyway!