Site logo

Archived topic

Illegal string offset 'width' and 'height' in /inc/structure/header.php

3 replies · Started by Steven on February 5, 2019

Viewing posts 1–4 of 4

Hello,

Since a recent update I've done on January 30, some of the pages have this error messages at their top:

Warning: Illegal string offset 'width' in .../themes/generatepress/inc/structure/header.php on line 103

Warning: Illegal string offset 'height' in .../themes/generatepress/inc/structure/header.php on line 104

Lines 103 & 104 are the following ones in bold:

if ( ! empty( $data ) ) {
$attr['width'] = $data['width'];
$attr['height'] = $data['height'];

}
}
}

You can see it on 404 pages for example.

I've tried deactivating all plugins except GP Premium and Elementor Pro which I use for building my website, but it doesn't disappear.

Thanks in advance for your help.

Steven

Hi there,

Typically, that would mean there's an error getting data on your site logo.

However, I'm not seeing the GP site logo anywhere. It seems you're using Elementor for everything.

I wasn't able to see the errors, even on a 404 page. Any chance you can update your URL to a page where I can see it?

Thanks!

Hi Tom,

In the meantime, I had deactivated a Nav Menu plugin (taptap). I guess this was triggering these lines.

It seems to be fine now, thank you!

Steven

Glad you found the issue :)

This archived topic is closed to new replies.