The Grid crops images with a vertical orientation

My grid will not display images with a vertical orientation correctly while images with a horisontal orientation is displayed correct.

The images with a vertical orientation goes «out of the frame» when I click on it.
Check images number 6 (black box with fans) on the bottom of this page:
http://wwwlol.asbjornflo.net/en/art/electric-rain/

On the other hand, when I am logged into wordpress images with a vertical orientation is displayed correctly, as well as inside The Grid «preview».

I’ve tried this on Windows 10 using Google Chrome and Firefox as well as on MacOS (10.10.5) using Google Chrome (87.0.4280.141) and Firefox (78.8.0).

In fact the only thing that works is an old version of Safari (10.1.2) for MacOS.

When I limit the width of the browser window while looking at the page by dragging it to the left so that the height becomes taller than the width, it works fine, but with «normal width» it looks wrong.

Any idea on what is happening?

Thank you

Hey Asbjørn,

Before we could say this is a bug, please perform the following troubleshooting steps and ensure there is no caching running.

  1. Testing For Theme Related Issue
  2. Testing For Plugin Conflict
  3. Css/Js Customization
  4. Disabling Cache
  5. Version Compatibility

If none of that helps, temporarily add the following code in Theme Options > CSS. That code is not perfect but it will display all parts of your image for now.

.tolb-holder.tolb-ready figure {
    height: 100% !important
}

Please then give us the following information in a Secure Note so we can gather information and report this issue to the The Grid author.

  • WordPress Login URL
  • Admin username and password

You can find the Secure Note button at the bottom of your posts.

Thanks.

I upgraded The Grid, now it works.

I deactivated all the plugins, including The Grid. After I did that I got a notice to upgrade The Grid (to version Version 2.7.9.1), I have not had that message before. I think maybe I had version 2.7.1 before upgrading, although that seems very strange since it is very old. I got it through the X theme. The X theme is up to date.

By the way, before all of this I turned on debugging in wp-config.php and got the following message:
«Notice: Trying to access array offset on value of type null in /wp-content/plugins/the-grid/frontend/the-grid-init.class.php on line 256»
After the update I do not get that message anymore, at least not yet.

Thanks a lot for the help!

Hello Asbjørn,

You are most welcome.

Just ignore the PHP notice as this does not affect any of the site functions and features. The notice usually displays when a value is null or not yet initialized.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.