Read Error In Image_gd_get_info
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Open EnterpriseIssues getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() ActiveProject:Open EnterpriseVersion:7.x-1.0-rc3Component:CodePriority:NormalCategory:Bug reportAssigned:UnassignedReporter:elecommCreated:July 10, 2012 - 22:10Updated:April 15, 2013 - 22:19 Log in or register to update this issue Jump to:Most recent attachment All the preloaded images including demo content cause this warning. Notice: getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() (line 349 of /var/www/html/adhesions/drupal/modules/system/image.gd.inc). The resulting image file is only 2 bytes in size and invalid. Can upload new images OKFiles: CommentFileSizeAuthor #6 system_get-image-size_1678568.patch607 bytesflyingkiki Comments Comment #1 askandlearn CreditAttribution: askandlearn commented July 16, 2012 at 10:43pm So how does one go about getting rid of this error? Log in or register to post comments Comment #2 kamenrs CreditAttribution: kamenrs commented July 18, 2012 at 7:10am I receive the same error message. Log in or register to post comments Comment #3 jam.ing CreditAttribution: jam.ing commented July 19, 2012 at 1:38am This manual patch works for me, it got rid of the message, and allows me to see which image file(s) caused the issue. File to modify: var\modules\system\image.gd.inc line 349 // $data = getimagesize($image->source); //was original line $img = drupal_realpath($image->source); if (filesize($img) > 10 ) { $data = getimagesize($img);} // this filters out files that have a size of less than x bytes which is probably a corrupted file. // I found this original patch on http://drupal.org/node/1522348, but it didn't work because the filesize() function returns and int // not a bool Log in or register to post comments Comment #4 jasimon9 CreditAttribution: jasimon9 commented July 20, 2012 at 9:20pm I have traced the error to problems with populating the demo content. It 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 plus 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. The patch above is a workaround. But the real problem seems to be why the files get copied to the ones with the _1 and _2, and why do they get
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Issues Notice: getimagesize read error in image_gd_get_info() line 349 Closed (fixed)Project:Drupal coreVersion:7.x-devComponent:image systemPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:Adam SCreated:April 9, 2012 - 02:44Updated:May 20, 2014 - 09:10 Log in or register to update this issue Jump to:Most recent comment Most recent attachment On node save the notice Notice: getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() (line 349 of C:\wamp\www\store\modules\system\image.gd.inc) is created and the thumbnail image does https://www.drupal.org/node/1678568 not show. I have attached four images from the debugging program that include the variable values. The first two images, media_youtube_bug1.jpg and media_youtube_bug2.jpg are from when the youtube link is added through the media dialog and the user is returned to the node edit or node create page. The last two images, media_youtube_bug3.jpg and media_youtube_bug4.jpg, are from https://www.drupal.org/node/1522348 when the user clicks the save button on the node edit or node create form. I have no other information than the site being relatively vanilla and I'm using the latest dev version of Media and Media Youtube modules.Files: CommentFileSizeAuthor #40 core-getimagesize_read_error-1522348-40.patch522 bytesseanB PASSED: [[SimpleTest]]: [MySQL] 40,901 pass(es). View #21 core-getimagesize_read_error-1522348-21.patch587 bytesjenlampton PASSED: [[SimpleTest]]: [MySQL] 39,559 pass(es). View media_youtube_bug4.jpg198.45 KBAdam S media_youtube_bug3.jpg202.76 KBAdam S media_youtube_bug2.jpg211.04 KBAdam S media_youtube_bug1.jpg178.42 KBAdam S Comments Comment #1 sethhill CreditAttribution: sethhill commented April 18, 2012 at 8:04pm Getting this too. As a workaround I changed the widget type to file and used it that way. It won't let you link to the content as easily in Views, but you can do a token replacement and link to node/[nid]. Log in or register to post comments Comment #2 Christian Bj CreditAttribution: Christian Bj commented April 23, 2012 at 11:29pm i have the same problem Log in or register to post comments Comment #3 Adam S CreditAttribution: Adam S commented May 2, 2012 at
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/19550160/cant-upload-picture-from-facebook-to-user-account-picture-fbouath-on-drupal and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; read error it only takes a minute: Sign up Can't upload picture from Facebook to User Account picture - fbouath on Drupal up vote 0 down vote favorite I am using Drupal 7. I want to upload the profile picture from Facebook to the drupal account using the module Facebook OAuth (FBOAuth), but I can't. When I try to get the picture read error in from Facebook I get this two Notices: Notice: Undefined property: stdClass::$data in fboauth_create_user() (line 219 of /home/user/domains/example.com/public_html/sites/all/modules/fboauth/includes/fboauth.fboauth.inc). Notice: getimagesize() [function.getimagesize]: Read error! in image_gd_get_info() (line 349 of /home/user/domains/example.com/public_html/modules/system/image.gd.inc). The image get uploaded but the size of the image is 0KB. Also when I call 'drupal_http_request('https://graph.facebook.com/' . $fbid . '/picture?type=large');' I get this -> [code] => -110 [error] => Connection timed out [redirect_code] => 302 [redirect_url] => https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash1/3***0_1******_*******_n.jpg Did someone have the same problem? php facebook facebook-graph-api drupal drupal-7 share|improve this question asked Oct 23 '13 at 18:59 Aljoša 113 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted I found what was wrong. There's a very simple solution and I don't know how I misswatched this You have to check the checkbox 'Administer image styles' for 'AUTHENTICATED USER' under 'admin/people/permissions'. And voila, it's uploading the pictures :) This solved my problem. share|improve this answer answered Feb 6 '14 at 14:21 Aljoša 113 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sig