Results 1 to 2 of 2

Thread: SugarCRM 5.2 Import Module error

  1. #1
    jgirdner is offline Junior Member
    Join Date
    Jan 2009
    Posts
    3

    Default SugarCRM 5.2 Import Module error

    Centos 5.2, php 5.1, sugarcrm 5.2

    I encountered a problem with the import module and found a solution that partially fixed the problem...

    The import module failing once I tried importing my .csv file, regardless of the file size, when I looked in my apache log I found the following error.

    [Sun Jan 11 09:04:39 2009] [error] [client x.x.x.x] PHP Warning: mb_detect_encoding() [<a href='function.mb-detect-encoding'>function.mb-detect-encoding</a>]: Illegal argument in /var/www/html/sugar/modules/Import/views/view.step3.php on line 168, referer: http://x.x.x.x/sugar/index.php

    after some research I found the answer...

    I replaced in view.step3.php

    mb_detect_encoding ..................... I forget what was there, but if you look in the php file you will find it

    with

    mb_detect_encoding (string, "auto");

    and walla I was able to upload my data and now have it in the database, which is reaaaalllly important when you need to import 16k records....typing that would really suck

    but now it creates an error at the end of the import process which freezes my system and causes me to have to restart...not to big of a deal since I don't foresee having to import to many more files, but would be nice to fix...

    here is the error I am getting from my apache log

    [Sun Jan 11 09:34:52 2009] [error] [client x.x.x.x] PHP Notice: Use of undefined constant string - assumed 'string' in /var/www/html/sugar/modules/Import/views/view.step3.php on line 168, referer: http://x.x.x.x/sugar/index.php

    all is not perfect but at least I can import data now, just have to restart once the process is complete.

  2. #2
    samson smith is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    37

    Default Re: SugarCRM 5.2 Import Module error

    Thanks for share your problem of SugarCRM 5.2 Import Module with us.This thread is useful and you receive nice advices from the others members.
    samson smith
    http://www.imr.com.mx/
    samson[dot]smith009[at]gmail[dot]com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM 5.1 Custom Module Import to Module Builder
    By titomarifrancis in forum Developer Help
    Replies: 3
    Last Post: 2012-01-03, 04:52 AM
  2. sugarCRM 5.2 Studio Module php error
    By jgirdner in forum Help
    Replies: 0
    Last Post: 2009-01-11, 08:10 PM
  3. Import in Custom module creating duplicates in related module
    By shailendra001 in forum Developer Help
    Replies: 0
    Last Post: 2008-12-09, 06:06 AM
  4. Replies: 0
    Last Post: 2008-05-16, 11:29 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
  •