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

tsavory’s picture

Title:getimagesize() » Notices upon adding apps

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)

ranx’s picture

I'm having the same error on a clean install of RC3.

TechDust’s picture

I get the same error as well.
Does it have anything to do with Auto-resizing of images?

jasimon9’s picture

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.

jmonroe’s picture

@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.

luistope’s picture

This patch seems to fix this problem too http://drupal.org/node/1522348#comment-6640938