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 CiviMember (Moderator: Deepak Srivastava) »
  • Error when attempting to import members in CiviMember
Pages: [1]

Author Topic: Error when attempting to import members in CiviMember  (Read 2911 times)

Michael Mistak

  • Guest
Error when attempting to import members in CiviMember
July 09, 2008, 03:56:47 am
In the past week I've been wrestling quite a bit with my apparent inability to import members (which are already in the DB as contacts). Up until now I've been able to make it all the way through the import process reaching the end where the system would tell me that for one reason or another my data was unable to be imported.

That is until today...

I'm am now getting the following unexpected error upon trying to get past step #1 of the import a batch of members process (i've obscured my root path in the errors below):

Quote
  • warning: move_uploaded_file(/***My Root Path***/files/civicrm/upload/JC Board List (revisions) 2_404f36f557c425e2f42bdff9e177a33f.csv) [function.move-uploaded-file]: failed to open stream: Permission denied in /***My Root Path***/sites/all/modules/civicrm/packages/HTML/QuickForm/file.php on line 203.
  • warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpYtEreR' to '/***My Root Path***/files/civicrm/upload/JC Board List (revisions) 2_404f36f557c425e2f42bdff9e177a33f.csv' in /***My Root Path***/sites/all/modules/civicrm/packages/HTML/QuickForm/file.php on line 203.

I cannot isolate anything that could have changed to cause this error.  Any ideas?

Currently using Drupal 5.7 / CiviCRM 2.0

---

Mike

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Error when attempting to import members in CiviMember
July 09, 2008, 04:04:07 am
Is the file it's borking on called "JC Board List (revisions) 2_404f36f557c425e2f42bdff9e177a33f.csv"?

If it is it might have an issue with the spaces and it's length. Just a thought...

Michael Mistak

  • Guest
Re: Error when attempting to import members in CiviMember
July 09, 2008, 05:15:20 am
In previous attempts the file name also had spaces.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Error when attempting to import members in CiviMember
July 09, 2008, 08:32:20 am
Might be a permission issue. Can you check if upload dir has writable permission OR give a recursive write permission to files/ directory.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Michael Mistak

  • Guest
Re: Error when attempting to import members in CiviMember
July 09, 2008, 08:42:10 am
At the present time the folder has the permissions level 755

Files presently inside the folder appear to be at permissions level 644

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Error when attempting to import members in CiviMember
July 09, 2008, 09:27:58 am
I would experiment with -
1. Giving 777 (for upload dir), if 755 didn't work.
2. If above didn't work, try 755 -R (recursive) for files/ directory.
3. Check if owner / group of upload/ dir is same as that of files/ dir.
4. Make sure /tmp dir has 777 permission.
5. And if nothing worked, i would remove upload directory (having made sure i have the backup of files under it) and visit a civicrm page resulting in making this directory again.
« Last Edit: July 09, 2008, 11:05:50 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Michael Mistak

  • Guest
Re: Error when attempting to import members in CiviMember
July 10, 2008, 11:12:52 am
I posted this issue (and the fact that no change on my part caused it) to my host's support system and received the following response:

Quote
Due to the recent upgrades on your server, some files on your account were no longer owned by your username. We've changed permissions back to your username, so please let us know if you are still running into this or similar issues.

I will verify whether this has resolved the issue later today.

Michael Mistak

  • Guest
Re: Error when attempting to import members in CiviMember
July 11, 2008, 04:43:26 am
This change by my host now allows me to get to Step #4 of the import  ;D

Unfortunately my import now fails at step #4 ???

Membership Type:
Membership: General
Period: rolling
Fixed Start:
Minimum Fee: 0.00   
Duration: 1 lifetime
Visibility: Public
Enabled?: Yes

Membership Status Rules:
Status: Current
Start Event: join date
End Event:
Member: Yes
Admin: No
Enabled?: Yes

I've tried importing several ways:
  • With a Start Date & an arbitrarily distant end date. Error: Status in import row (Current) does not match calculated status based on your configured Membership Status Rules (New). Record was not imported.
  • With a Start Date & an empty end date. Error: Status in import row (Current) does not match calculated status based on your configured Membership Status Rules (New). Record was not imported.
  • With a Start Date / Not importing the end date column. Error: Required parameter missing

Each of the above methods fails to successfully import my members.
« Last Edit: July 11, 2008, 04:47:18 am by Michael Mistak »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error when attempting to import members in CiviMember
July 11, 2008, 10:53:03 am
The errors for your 1st and 2nd cases indicate that your Membership Status Rules include a status of "New". This is distributed in the default status rules - and (by default) covers the period from Join Date thru Join Date+3 months. I think if you either disable this status rule, or change your import row statuses to "New" for any record which meets this criteria - things should work.

Also some "improvements / bug fixes" have been made to membership import in 2.1 - which might relate to some of your issues:
http://issues.civicrm.org/jira/browse/CRM-2737
Protect your investment in CiviCRM by  becoming a Member!

Michael Mistak

  • Guest
Re: Error when attempting to import members in CiviMember
July 14, 2008, 04:55:37 am
Thanks! it worked!  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Error when attempting to import members in CiviMember

This forum was archived on 2017-11-26.