Results 1 to 5 of 5

Thread: Need Help: Error While Importing Users

  1. #1
    machineghost is offline Senior Member
    Join Date
    Oct 2008
    Posts
    51

    Default Need Help: Error While Importing Users

    I'm trying to import a list of users in to SugarCRM (community edition), but I'm having no luck, and I can't find any mention of the error I'm getting in any existing forum posts. Basically when I do the upload I get the following:

    WARNING: [2] touch() [function.touch]: Unable to create file because No such file or directory on line 161 in file /var/www/crm/include/utils/sugar_file_utils.php
    WARNING: [2] fputcsv() expects parameter 1 to be resource, boolean given on line 227 in file /var/www/crm/modules/Import/ImportFile.php
    WARNING: [2] fclose(): supplied argument is not a valid stream resource on line 228 in file /var/www/crm/modules/Import/ImportFile.php

    repeated once per user (I think ... it's definitely repeated A LOT).

    Does anyone have any idea what the error is about, and how I can resolve it?

  2. #2
    machineghost is offline Senior Member
    Join Date
    Oct 2008
    Posts
    51

    Default Re: Need Help: Error While Importing Users

    Alternatively, if anyone can tell me how to safely import users directly in to the database (bypassing SugarCRM) that would work too; basically I just have 70+ users, and I REALLY don't want to have to enter them all by hand in to the system.

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Need Help: Error While Importing Users

    Hi machineghost

    Make sure the sugar folder is writable by the user under which apache is running.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    machineghost is offline Senior Member
    Join Date
    Oct 2008
    Posts
    51

    Default Re: Need Help: Error While Importing Users

    Thanks for the suggestion, but I tried that already. My Sugar folder and everything in it is owned by the apache user ("www-data", which I think is the Debian default), and they've all been chmoded 755. Any other suggestions?

  5. #5
    machineghost is offline Senior Member
    Join Date
    Oct 2008
    Posts
    51

    Default Re: Need Help: Error While Importing Users

    I take my previous post back.

    I just did:
    chmod -R a+w mySugarDirectory
    (terrible permissioning, I know, but I was only doing it temporarily to "prove" to myself that your suggestion wouldn't help)

    When I did that the import worked (well, actually it didn't, but now at least the error is related to the data I'm importing, not to some PHP failure). So I guess I need to look at the permissions on the files in that folder more carefully ...

    Anyhow, thanks a ton for your assistance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2008-05-29, 11:51 AM
  2. Importing Users, Cases, Projects
    By preginald in forum General Discussion
    Replies: 2
    Last Post: 2008-03-26, 08:02 AM
  3. Importing Users
    By Kalendrinn in forum Help
    Replies: 0
    Last Post: 2008-01-28, 06:43 PM
  4. Importing users problems
    By anthony5104 in forum Help
    Replies: 2
    Last Post: 2007-11-28, 11:13 AM
  5. Importing Users
    By cfgurney in forum Help
    Replies: 5
    Last Post: 2006-03-08, 11:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •