Warning getimagesize() ... in excerpts

Reports about issues that you encounter in Suffusion. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is being officially closed with effect from 3rd February 2019. Future support requests can be posted on the GitHub page at https://github.com/sayontan/suffusion/issues.
Locked
moorteufel
Posts: 5
Joined: 05 Jan 2011, 10:55
Location: Germany
Contact:

Warning getimagesize() ... in excerpts

Post by moorteufel » 22 Feb 2011, 14:49

Since upgrading to 3.7.7 I get this warning in excerpts:

Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /mnt/weba/41/52/521552/htdocs/teufelsmoor_eu/wp-content/themes/suffusion/functions/media.php on line 319

(to be viewed at http://www.teufelsmoor.eu/Thema/menschen/gesichter for instance)
Changing the sizes of thumbnails in the options-page doesn't seem to help...

Any workaround so far?

Thx, Jürgen

sayontan
Site Admin
Posts: 10210
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas
Contact:

Re: Warning getimagesize() ... in excerpts

Post by sayontan » 22 Feb 2011, 15:06

Surprising. It is still showing the image.

Do this. Open media.php, then look for this line:

Code: Select all

	$orig_size = getimagesize($file_path);
Change it to:

Code: Select all

	$orig_size = @getimagesize($file_path);

moorteufel
Posts: 5
Joined: 05 Jan 2011, 10:55
Location: Germany
Contact:

Re: Warning getimagesize() ... in excerpts

Post by moorteufel » 22 Feb 2011, 23:36

Thx Sayontan, it works!

... and I found out that the reason was a "https://..." as the image-adress (google-picasa stored), when I changed it to "http://..." it also resolved the matter. Although picasaweb gives "https://..." as the adress and it did work before the change to 3.7.7. So it might have to do with the way you resolve the images adress, possible??

greets, Jürgen

sayontan
Site Admin
Posts: 10210
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas
Contact:

Re: Warning getimagesize() ... in excerpts

Post by sayontan » 24 Feb 2011, 02:33

Thanks for the tip on https - it has helped me isolate the problem.

Locked