Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a user tries to upload a photo to his or her profile the following error occurs in the log
getimagesize(): Read error! in /includes/image.inc on line 88
I am using user.module and profile.module, but NOT image.module and upload.module
GD2 is working.
The problem is on a fresh 4.6.1 install without any contributed modules
I did not know exactly what component to post this under, but I think it is important.
Comment | File | Size | Author |
---|---|---|---|
#17 | drupal-DRUPAL-4-6-1.image.exist.patch | 1.3 KB | Robin Monks |
#11 | image.exist.patch | 1.38 KB | Robin Monks |
Comments
Comment #1
mariagwyn CreditAttribution: mariagwyn commentedI am having the identical problem, except that I am using image.module. It happens anytime I click onto my images section. I get about 8 error messages, all the same. It this because images are missing? Any other reason?
Thanks,
Maria
Comment #2
rolfijn CreditAttribution: rolfijn commentedMe to! I've installed the image-module also and get the same error. I've allready given a 777 permision on my drupal directory, as to make sure it's not a permissions error.
When i log into drupal and go to administration -> settings i have the following setting: File system path:files (which resolves to /home/httpd/html/drupal/files, right?) and Temporary directory: tmp (which resolves to /home/httpd/html/drupal/files/tmp, right?).
Then going to administration -> settings -> image i see my Default image path: images (which resolves to /home/httpd/html/drupal/files/images, right?)
I run trustix secure linux 2.2 with the following (relevant) components installed:
apache-2.0.54-3tr
apache-html-2.0.54-3tr
php-cli-5.0.4-3tr
php4-4.3.11-2tr
php-pgsql-5.0.4-3tr
php-gd-5.0.4-3tr
php-imap-5.0.4-3tr
php-5.0.4-3tr
php4-pgsql-4.3.11-2tr
php4-gd-4.3.11-2tr
php4-imap-4.3.11-2tr
postgresql-8.0.3-1tr
postgresql-libs-8.0.3-1tr
postgresql-server-8.0.3-1tr
gd-2.0.33-3tr
gd-utils-2.0.33-3tr
I have no idea what the problem can be. Somebody?
Thanks in advance,
Rolf Deenen
Comment #3
Dublin Drupaller CreditAttribution: Dublin Drupaller commentedsame problem....drupal 4.6.1. import images...giving a warning: getimagesize(): Read error!
Anyone found a solution?
Dub
Comment #4
Dublin Drupaller CreditAttribution: Dublin Drupaller commentedhi guys...
I downloaded the latest image.module from the cvs repository...and it works..
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/image_import/
The only down side is that it is in debug mode (which means a load of extra messages appear)...not sure how to switch that off...but, suffice to say that it looks like the owner/maintainer/developer of the the image_import module is on top of it.
best to wait until the module developer updates the module.
Dub
Comment #5
celticess CreditAttribution: celticess commentedI'm getting the same error but I think it only happens to the one user using the grey box theme. Otherwise I can't find any rhyme or reason to it. Everything seems to be displaying correctly. I have the various image modules installed though not the cvs(I am using drupal 4.6.1). And no pictures have been uploaded to the galleries for it even to give the error.
Also I'm getting another include error and one module specific which I have also filed bug reports on. The other include error though is common.inc line 1308 and it seems no real reason for it to be pumping out that code either.(the module error occurs only when I tell it to show browsers in the stats filtering) I'm not exactly a php wiz... haven't programmed since the 80's actually so I have no idea why it's burping out these 3 errors I'm getting.
My Drupal 4.6.1 is being run off of a debian site with php4 and mysql. I myself use gentoo linux(thinking about going to BSD) however my isp TOS forbids servers or I'd run it off my own box.
Comment #6
chueewowee CreditAttribution: chueewowee commentedI get the same error message with drupal 4.6.0 even with all content unpublished and all images deleted from the content. The error in all pages even when not creating content. I sue a custom theme, but have not altered anything relevant to images.
In fact I am having terrible problems publishing images with the image.module and image_upload.module, in that the galleries do not show in the create pages etc.. as a number of people have reported.
Comment #7
traemccombs CreditAttribution: traemccombs commentedYeah, I'm getting the same thing. :/ One would think with so many people having the same issue someone would have responded with a fix. I guess maybe I'll try the CVS version.
Comment #8
celticess CreditAttribution: celticess commentedI put the cvs module in(I'm not running cvs drupal though just 4.6.1) in and so far that error now seems gone. However the other error I'm still getting and I've got that other annoying image related problem where you've told it to default to not promoting new uploaded images to front page but it still does it.
Btw I wonder if the guys realize the directions for patch aren't too clear. I've used linux since '96 and am self taught. Oddly enough never had to use patch as things auto patch on gentoo. And I've now asked friends for plain english explaination of how to do that on my debian host. Why am I mentioning patch? Because if you guys are also having an issue with album someone has put out a patch.
Comment #9
lennart CreditAttribution: lennart commentedthe problem is not specific to image.module
Comment #10
chx CreditAttribution: chx commentedmage.inc , line 83, it's not
file_exists
butis_file
. I suspect we'd better change theme_image also. Someone should roll a patch. Or I'll do when I have time :)Comment #11
Robin Monks CreditAttribution: Robin Monks commentedHere is the patch per chx's comments, I made it for him as he didn't have time. He can answer any questions about it.
Tested to work on HEAD.
Robin
Comment #12
mariagwyn CreditAttribution: mariagwyn commentedI am still having the same problem. I have tried to upload the new CVS files for image.inc, themes.inc, and common.inc, and added the patches listed above. However, I get even more errors with the other CVS files, so I reverted so I could do one thing at a time. If I just add the patch to image.inc and theme.inc, I simply get a blank screen.
I am able to see my images, upload images, but if I click the /image link (the image gallery), it gives me a blank screen with the same error listed.
I am running 4.6.1., using a custom theme. You may see the problem at:
http://www.stnina.org/test/image
I am not sure if I missed something. Suggestions?
thanks,
Maria
Comment #13
kbahey CreditAttribution: kbahey commentedI faced the same issue today.
A 4.6 install, with image.module.
At first I thought it was because of my changes to the image module, but then the follow up email to this one popped up in my inbox with the same exact error in the title! Spooky!
Comment #14
kbahey CreditAttribution: kbahey commentedThe patch fixes the problem. Had to apply the first hunk manually though on a 4.6.1 install.
Comment #15
mariagwyn CreditAttribution: mariagwyn commentedCan you tell me precisely how to install the patch? I tried it once, but it messed everything up, all sorts of bizarre errors. As far as I remember, I am installed 4.6.1.
Thanks,
Maria
Comment #16
lennart CreditAttribution: lennart commentedThe patch works, but is very difficult to apply. It would be nice if it was commited to 4.6.1 and HEAD
Thanks
Lennart
Comment #17
Robin Monks CreditAttribution: Robin Monks commentedThe patch was designed to work on HEAD.
For those with 4.6.1, here is a backported version.
To apply either patch, refer to http://drupal.org/diffandpatch
Robin
Comment #18
mariagwyn CreditAttribution: mariagwyn commentedRobin and Lennart,
I was starting to not feel like such a newbie until I read the material on Diffs and Patches. I am completely lost. I don't use any sort of command line interface (though I wouldn't mind learning how), so the whole discussion went over my head. I use ftp, dreamweaver, and web interface.
Do you know of clear, steb-by-step instructions, that begin with a blank screen and take me through the whole patching process? Do I need an extra piece of software? Am I looking for some command line as a part of my cpanel? I tried downloadind the patch and replacing code. That was a disaster.
Sorry to be difficult, but I have to get the error fixed or the site can't go live. Any suggestions welcome.
By the way, what is 'HEAD'?
Than ks,
Maria
Comment #19
mariagwyn CreditAttribution: mariagwyn commentedP.S. I am on windows xp, and I don't think Robin included the link to the 4.6.1 patch.
Thanks,
Maria
Comment #20
mariagwyn CreditAttribution: mariagwyn commentedOkay, so I did more reading, and I figured out how to install the patch. I ran the patch, and after theme.inc, it said that "HUNK #1 failed at line 472". I am assuming that I was supposed to put the patch into the /includes/ folder, and then run it using SSH/Shell from within the includes folder.
When I went to the images section to see how it went, the error went away, but now I have a blank page. Nothing shows up.
Is this because I ran a 4.6 patch on a 4.6.1 installation? Do you have a 4.6.1 patch? Can I just cut and paste?
Again, sorry to be difficult, but thanks for the help.
Maria
Comment #21
chx CreditAttribution: chx commentedYes, Robin did included a 4.6.1 patch. Use some editor (wordpad maybe), open image.inc line 83, change file_exists to is_file, similarly with theme.inc line 475.
Comment #22
mariagwyn CreditAttribution: mariagwyn commentedI have made both of the changes. It does not seem to affect anything (good or bad) in theme. But in the image link, rather than an error, I simply get an empty page. See:
http://www.stnina.org/test/image.
I know the images are there, I can get to them through admin and other ways.
Do you need more info?
Thanks,
Maria
Comment #23
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-6. Thanks.
Comment #24
lennart CreditAttribution: lennart commentedIt seems that this has NOT been committed to 4.6.1
I just downloaded and the files are still unpatched
Comment #25
lennart CreditAttribution: lennart commentedJust tried to download again right now - that patch is still not committed to 4.6.1
Comment #26
lennart CreditAttribution: lennart commentedIt is fixed in 4.6.2 - Great !
Comment #27
(not verified) CreditAttribution: commentedComment #28
iamawahm CreditAttribution: iamawahm commentedI just upgraded to 4.6.2 and I'm still getting the error :
getimagesize(): Read error! in /home/yeahmom/public_html/community/includes/image.inc on line 88.
I tried to read many different threads on this before I posted. I'm new to drupal so please be patient with me. But I hope someone can help. This is the only error my drupal community is seeing.
http://yeahmom.com/community
Any advice on what i can try to resolve this?
Comment #29
iamawahm CreditAttribution: iamawahm commentedNevermind, I haven't seen an image error since I made this post (figures!), so I'm assuming it's corrected. Disregard request for help. Thanks.
Comment #30
(not verified) CreditAttribution: commentedComment #31
(not verified) CreditAttribution: commentedComment #32
osherl CreditAttribution: osherl commentedComment #33
(not verified) CreditAttribution: commentedComment #34
(not verified) CreditAttribution: commentedComment #35
(not verified) CreditAttribution: commented