Warning getimagesize() ... in excerpts

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Warning getimagesize() ... in excerpts

Postby 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
moorteufel
 
Posts: 5
Joined: 05 Jan 2011, 10:55
Location: Germany

Re: Warning getimagesize() ... in excerpts

Postby 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);
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Warning getimagesize() ... in excerpts

Postby 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
moorteufel
 
Posts: 5
Joined: 05 Jan 2011, 10:55
Location: Germany

Re: Warning getimagesize() ... in excerpts

Postby sayontan » 24 Feb 2011, 02:33

Thanks for the tip on https - it has helped me isolate the problem.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests