We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

ImgSizer PHP error: function.getimagesize at Line 151

Development and Programming

Joelle's avatar
Joelle
272 posts
15 years ago
Joelle's avatar Joelle
A PHP Error was encountered Severity: Notice Message: getimagesize() [function.getimagesize]: Read error! Filename: plugins/pi.imgsizer.php Line Number: 151

That is the error I am getting and I can’t find the source of the issue. My paths are correct, my permissions are correct – I noticed that someone else had this issue when I googled it, but the thread was gone (and not cached), so I have no idea if it was resolved.

I can’t seem to find anything about it in the archives ImgSizer thread. Getting a bit desperate here as I use this plugin on almost every client site and it’s starting to hinder deadlines searching for a fix.

I’m not even sure if this is where I’m supposed to post this. lol

Help? Anyone get this error and find a solution?

Thank you! Joelle

       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
15 years ago
John Henry Donovan's avatar John Henry Donovan

Joelle,

Is this EE 1.6.x or EE2.x?

       
Joelle's avatar
Joelle
272 posts
15 years ago
Joelle's avatar Joelle

Hola! Sorry, it’s for 1.6.9, 20100430.

Mel (from emtwo) and I just found a fix, though.

http://ellislab.com/forums/viewthread/122152/#640295

that seems to fix the issue – not sure why of course, but it works now. 😊

Thanks for replying! (Is this where I am supposed to post this, btw?)

       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
15 years ago
John Henry Donovan's avatar John Henry Donovan

Joelle,

Glad you are up and running again and yes, perfect forum for your thread subject 😊

       
louisk's avatar
louisk
40 posts
15 years ago
louisk's avatar louisk

Hi, I have the same problem but I’m running EE2.1.0.

Cache cleaned, paths correct, permissions correct.

Some images are working, some not.

EE file manager tells me the file is all right and mime is images/jpeg.

But I get the same error. The fix didn’t work for me. I’m using local images.

Error: imgsizer.Error: image mime type does not match ok mime types
       
shinka's avatar
shinka
147 posts
15 years ago
shinka's avatar shinka

I’m having a similar problem on EE 2.1.

A PHP Error was encountered
Severity: Notice

Message: getimagesize() [function.getimagesize]: Read error!

Filename: imgsizer/pi.imgsizer.php

Line Number: 148
       
ejaedesign's avatar
ejaedesign
240 posts
14 years ago
ejaedesign's avatar ejaedesign

Unfortunately exactly the same error is happening for me as well:

Severity: Notice
Message: getimagesize() [function.getimagesize]: Read error!
Filename: imgsizer/pi.imgsizer.php
Line Number: 153

What’s odd is that it’s happening on one page (http://www.getrightmusic.com/mixtape) but not on homepage where the plug-in is also being used (http://www.getrightmusic.com/).

Only issue I can see is that the specific entry that’s causing the problem has an image that has a # as part of the name. Once I got rid of it, the error also went away.

       
ToolStudios,LLC's avatar
ToolStudios,LLC
47 posts
14 years ago
ToolStudios,LLC's avatar ToolStudios,LLC

Anyone find a fix for this? I’m having the exact same issue, the fix noted above just threw a different error and definitely did not fix the issue. Same thing - it’s throwing the error on some pages/entries etc and not others…

       
Ralph123's avatar
Ralph123
26 posts
13 years ago
Ralph123's avatar Ralph123

Guys did you find the fix?

       
ejaedesign's avatar
ejaedesign
240 posts
13 years ago
ejaedesign's avatar ejaedesign

For us it was increasing the PHP memory, and making sure huge image files are not being uploaded (via file size limit in the field settings).

We’ve also had luck switching to CE Image (or vice versa) as well. Hope this helps!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.