Site logo

Archived topic

PHP errors for image.php

3 replies · Started by 2fer on April 29, 2015

Viewing posts 1–4 of 4

I updated to the gp-premium addons today and right after that I had a problem. My error log shows rows of:

[29-Apr-2015 14:22:03 UTC] PHP Warning: Illegal string offset 'width' in /example-path/wp-content/themes/generatepress/image.php on line 28
[29-Apr-2015 14:22:03 UTC] PHP Warning: Illegal string offset 'height' in /example-path/wp-content/themes/generatepress/image.php on line 29

I downloaded a copy of the file named image.php and I can see that lines 28 and 29 are:
`$metadata['width'],
$metadata['height'],`
So my question is, does this file need an edit?

I had not tried to upload any media and I see no further signs of this error than right at the change so I guess I should not be concerned. It seems to be in fine order right now. It went suddenly haywire but I think it might have been due to the time of day I decided to do the work. That site has heavy traffic in the afternoon so I will blame my poor timing.
I appreciate the link to read more about it from other angles.

Thanks!

No problem - the new GP will be out in a week or so, and that file won't exist anymore, so you shouldn't have any more issues once that update is applied :)

This archived topic is closed to new replies.