Posted by tsavory on June 3, 2012 at 8:43pm
9 followers
Jump to:
| Project: | Open Enterprise |
| Version: | 7.x-1.0-rc3 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have the acquia dev desktop I imported the Open Enterprise 7.x-1.0-rc1 and created a blank MySQL database.
The only apps that I installed where the blog and the image it went though the downloading and installing steps and at the very end I received about 10 notices all where the same.
Notice: getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() (line 349 of C:\Users\xxxx\Sites\openenterprise-7.x-1.0-rc3\modules\system\image.gd.inc).
I have since turned off the image module and I am still receiving these errors. Though now it is only 2 of them which would be I guess the two images in the blog.
I would be grateful for any help on this.
Thanks TOm
Comments
#1
Ok so I went ahead and dropped my db and reinstalled this time not adding any apps at all.
I added the Rotating banner and it went ok till I tried to enable demo content and I got this error. X4
Notice: getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() (line 349 of C:\Users\xxxx\Sites\openenterprise-7.x-1.0-rc3\modules\system\image.gd.inc).
Disable demo content and went on the blog did the same so I figured no demo content ok
Then I added Events and got this error. X2
Notice: Undefined index: default_image in image_field_update_instance() (line 501 of C:\Users\xxxx\Sites\openenterprise-7.x-1.0-rc3\modules\image\image.module)
#2
I'm having the same error on a clean install of RC3.
#3
I get the same error as well.
Does it have anything to do with Auto-resizing of images?
#4
Same error just after installing RC3.
EDIT: have traced the error to problems with the demo content. I turns out that the image files imageX.png get copied to imageX_1.png (where X = {1,5}) and then even to imageX_2.png and imageX_3.png while playing with the enable/disable the demo content. However, for some reason the png files which are typically 250k in size get truncated to 2 byte length files, which are of course invalid. The error message occurs when the properties of the file are unexpectedly invalid.
Two suggestions:
1. BEST: Correct the problem with the truncated 2-byte files.
2. Add robustness to the function image_gd_get_info(stdClass $image) in file image.gd.inc to not crash. The code in question is as follows:
function image_gd_get_info(stdClass $image) {$details = FALSE;
$data = getimagesize($image->source);
The error is generated by the getimagesize call.
#5
@jasimon Replacing line 349, 350, 351 with:
function image_gd_get_info(stdClass $image) {
$details = FALSE;
$data = getimagesize($image->source);
Is what fixed my issue. Thanks for the insight.
#6
This patch seems to fix this problem too http://drupal.org/node/1522348#comment-6640938