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) »
  • Contact Image Upload Stopped Working
Pages: [1]

Author Topic: Contact Image Upload Stopped Working  (Read 1386 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
Contact Image Upload Stopped Working
April 06, 2013, 06:27:39 am
I tried to upload a contact image that was excessively large and the CiviCRM stopped responding (if I recall correctly).  Now I can't upload any images even small ones.  When I try, I get an error message that references an image URL.  I check the image storage directory and I notice that the image hasn't been uploaded.  I can upload an image manually and get it to appear in the contact page.

Prior to this, image uploads worked.  I suspect the some temporary file from the original failed upload didn't get deleted and broke this function.

Does anyone have any idea how to fix this?  If not, can someone tell me where the image file upload code is so I can try to debug it.  I can't find the code.
« Last Edit: April 06, 2013, 07:53:05 am by aglozier »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contact Image Upload Stopped Working
April 06, 2013, 07:59:59 am

CRM/Contact/Form/Contact.php - search for image

might also want to read http://book.civicrm.org/developer/

gives u an understanding of the code layout and structure

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: Contact Image Upload Stopped Working
April 06, 2013, 12:02:19 pm
The Jumbo Image file upload was a "Red Herring".  The problem had nothing to do with it except for that being the first contact image I tried to upload since moving our website to CiviCRM Hosting.  I didn't change the Upload Directories.  Thus the uploaded images were going to a location different than that expected by CiviCRM.

Anyway I got an education on PHP and CiviCRM code.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Contact Image Upload Stopped Working

This forum was archived on 2017-11-26.