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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
Pages: [1]

Author Topic: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug  (Read 1032 times)

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
July 02, 2014, 09:00:53 am
4.4.6 was suppose to fix CRM-14499 "Upgrade to 4.4.5 causes contact photos to be unviewable" https://issues.civicrm.org/jira/browse/CRM-14499.

After upgrading to 4.4.6 the contact photos are now view-able but an error message is still displayed at the top of the page.  Here's the message:

Quote
Warning: getimagesize(http://phoenixacademyomaha.org/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/imagefile&photo=George_2af0531d1caf2d116f5545c612841ec4.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in /home/phoenix/www/www/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View.php on line 170

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
July 04, 2014, 09:57:16 am
Hi aglozier,

I just clicked on the link in that error message and got an .htaccess pop-up.  If you're using .htaccess on that folder, you won't be able to view its contents.  This is consistent with the 401 error you're seeing, and is an Apache issue.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
July 06, 2014, 04:48:10 pm
There is an .htaccess in the /files/civicrm/custom/ directory.  It contains:

Code: [Select]
<Files "*">
  Order allow,deny
  Deny from all
</Files>

It prevents viewing the JPG files in the directory via their URLs.  When I attempt to do so I get the error "You don't have permission to access /wordpress/wp-content/plugins/files/civicrm/custom/George_154926069933284c7770aa3f7688d872.jpg on this server."  If I temporarily remove the .htaccess file I can view JPGs via their URLs.  However I still get the original error message in CiviCRM.

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 04, 2014, 02:11:02 am
Hi

I am having the same issue but without the error message.

I delete the .htaccess file from sites/default/files/civicrm/custom and the images are viewable....but then the .htaccess file re-loads and images are broken.

Did you find a solution to this?

Robbie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 04, 2014, 03:10:49 am
Try to edit the .htaccess file instead of removing it. Perhaps leave it blank and see if that helps.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 04, 2014, 06:57:02 am
I still get the same error with a empty .htaccess file.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 04, 2014, 08:20:04 am
I think that https://issues.civicrm.org/jira/browse/CRM-14468 and https://issues.civicrm.org/jira/browse/CRM-14499 provide background to this issue that might be useful for you.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 05, 2014, 06:58:04 am
Hi all

I have just upgraded to 4.4.6 and after adding a new contact it seems the path for a contact image has changed;

Before; sites/default/files/civicrm/custom/

Now; civicrm/contact/imagefile&photo=

Problem is I have a couple of thousand contact images and no way can manually save, delete, reload.

Any ideas???

Robbie

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug
August 26, 2014, 02:37:08 pm
This is fixed in 4.5!  I installed the Beta on my test site and it's fixed!

Thank You!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 4.4.6 Upgrade Did Not Completely Fix Contact Photo Bug

This forum was archived on 2017-11-26.