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.


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks