CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Contact Image Error
Pages: [1]

Author Topic: Contact Image Error  (Read 1863 times)

photolimo

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.5
Contact Image Error
April 25, 2011, 08:04:08 am
I have a fresh install of Civi 4 on Drupal 7 and it keeps giving me this error when I update the contact image. Could not recreate the issue on the sandbox. Any ideas?

Quote
Warning: getimagesize(http://domain.com/sites/default/files/civicrm/custom/TVSmall_cd0794b0f62bfc84fad89310327d76b3.jpg): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in CRM_Contact_Form_Contact->setDefaultValues() (line 435 of /var/www/domain/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php).

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contact Image Error
April 25, 2011, 09:04:36 am
Can you change permission of files folder ( http://domain.com/sites/default/files/ ) to 777 and check if that helps ?

Kurund
Found this reply helpful? Support CiviCRM

photolimo

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.5
Re: Contact Image Error
April 26, 2011, 07:27:50 am
This folder was set to 777 some of the subfolders were set to 755 but they have been changed to 777 and I am still receiving the error.

I am not terribly experienced with debugging.

mbopp

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Contact Image Error
April 26, 2011, 01:10:51 pm
I am receiving this error and I have determined it is because the the site is protected with an apache user/pass.  Is there a way the site can be configured to reference the images using a relative path or system path rather than a an absolute URL.  It seems that when a full URL is used the php function getimagesize() does a page request and in this case doesn't have the credentials to retrieve the file.

Kurund, How would one go about getting around this hurdle?

Thanks, Mike

Quote from: photolimo on April 25, 2011, 08:04:08 am
I have a fresh install of Civi 4 on Drupal 7 and it keeps giving me this error when I update the contact image. Could not recreate the issue on the sandbox. Any ideas?

Quote
Warning: getimagesize(...): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in CRM_Contact_Form_Contact->setDefaultValues() (line 435 of /var/www/domain/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php).

svh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: Contact Image Error
November 28, 2012, 12:43:56 am
I think this is exactly the problem I think I am having.  We have an Apache username/password on the site in additional to the Drupal password. 

Did anyone come up with a solution to this?

Thanks and regards
Steven

philiphart

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Contact Image Error
March 02, 2015, 02:55:48 am
We experience this same error. Drupal 7 and Civi 4.5.6, hosted with CiviHosting which is generally well configured for Civi.

zane

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal
  • MySQL version: 5.0.67
  • PHP version: 5.2
Re: Contact Image Error
March 12, 2015, 07:39:34 am
I had the same problem with Drupal 4 hosted on Godaddy. Maybe it's a hosting problem? Thank you!
Heres is a link to the page with aspect ratio calculator on ninjaunits.com, my website that i'm talking about.
« Last Edit: March 21, 2015, 03:27:11 am by zane »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Contact Image Error

This forum was archived on 2017-11-26.