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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • attachments get uploaded into Drupal root, instead of sites/default/filles/civic
Pages: [1]

Author Topic: attachments get uploaded into Drupal root, instead of sites/default/filles/civic  (Read 917 times)

bslash

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
  • CiviCRM version: 4.4.3
  • CMS version: drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.3.3
attachments get uploaded into Drupal root, instead of sites/default/filles/civic
September 18, 2012, 08:09:56 am
I'm running 4.2 on Drupal. This is an updated site, could be that it has to do with that. Whenever I upload a file (for instance a contact image, or an attachment to a mailing, or basically any binary file) it gets dumped into the root of the drupal site, and not moved into the appropriate folders under sites/default/files/civicrm/*

Permissions on those directories are fine, the www-data user can write to them, and the URL's seem to be correct when I look at them in the admin panel.

Anybody an idea or seen this before?


CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: attachments get uploaded into Drupal root, instead of sites/default/filles/civic
September 19, 2012, 05:06:47 am
What does it say at:

[[your-site.org]]/civicrm/admin/setting/path?reset=1

for temporary files, image files, and custom files?

Try CiviTeacher: the online video tutorial CiviCRM learning library.

bslash

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
  • CiviCRM version: 4.4.3
  • CMS version: drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.3.3
Re: attachments get uploaded into Drupal root, instead of sites/default/filles/civic
September 20, 2012, 05:49:22 am
Found the error; did a clean installation of CiviCRM 4.2 (to compare databases) and it turned out that my upgraded install was somehow missing a few records in the civicrm_setting table. The structure of the table was correct, but it was missing the records for "uploadDir" "imageUploadDir" and "customFileUploadDir". So no matter how many times I tried to set those through the admin interface, it simply had nowhere to store them.

Probably an artefact of our long upgrade path (from 3.3.0 on Joomla to 4.2 on Drupal, with a few intermediates), but it would have been helpful if a clear error message would have come out. Oh well, it works now.
« Last Edit: September 20, 2012, 05:52:38 am by bslash »

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: attachments get uploaded into Drupal root, instead of sites/default/filles/civic
September 20, 2012, 09:31:00 am

hey bslash:

can you please file an issue and point to this forum post. We should detect and abort and/or create those entries for those settings

lobo
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • attachments get uploaded into Drupal root, instead of sites/default/filles/civic

This forum was archived on 2017-11-26.