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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error when uploading files to custom data field
Pages: [1]

Author Topic: Error when uploading files to custom data field  (Read 1060 times)

tvaughan

  • Guest
Error when uploading files to custom data field
June 02, 2008, 01:58:01 am
Hi,

I get this when I enable file uploads in a custom data group:

Code: [Select]
warning: rename(,/var/www/hostname/files/civicrm/custom//) [function.rename]: No such file or directory in /var/www/hostname/sites/all/modules/civicrm/CRM/Core/BAO/File.php on line 115.
It looks like the initial comma is to blame for the "directory not found" error - the config files look ok and other custom data fields work fine.  Any thoughts?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Error when uploading files to custom data field
June 02, 2008, 07:37:57 am
This is probably specific to file uploads and is not being triggered by other custom data if they are not for uploading purposes. It looks like your path is wrong or doesn't exist.

Go to CiviCRM › Administer CiviCRM › Global Settings > Directories

and look at the "custom file" path. Make sure that it is correct AND the path exists and is writable by web server. By what is in your error, I am assuming the path SHOULD be:
/var/www/hostname/files/civicrm/custom/

but it might have an extra trailing slash which is causing a problem. So make sure the path is right, then double check that your files/civicrm directory is writable by web server.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error when uploading files to custom data field

This forum was archived on 2017-11-26.