Results 1 to 4 of 4

Thread: Forum Extension Thread Error

  1. #1
    jscherber is offline Sugar Community Member
    Join Date
    Oct 2004
    Posts
    77

    Default Forum Extension Thread Error

    I've just installed the Forum Extension. I've created my first thread. When I attempt to access it, I get this error message:

    Fatal error: Call to undefined function: iconv() in /home/scherber/public_html/crm/modules/Threads/DetailView.php on line 90

    Anyone have any thoughts what might be causing this?

    Best, James Scherber

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Forum Extension Thread Error

    Hi

    It seems that your PHP is lacking the iconv() function. If you're using PHP 4, your PHP needs to be compiled with the --with-iconv option.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    sadek's Avatar
    sadek is offline Sugar Team Member
    Join Date
    Sep 2005
    Posts
    244

    Default Re: Forum Extension Thread Error

    I'm currently looking into a way to remove necessity for the iconv() function, which will make it compliant with your PHP version. If waiting until the next release is not an option, following ruchida's instruction will do the trick.
    Sadek Baroudi
    Software Engineer
    SugarCRM

  4. #4
    jjustus is offline Member
    Join Date
    Feb 2007
    Location
    Fairfax, VA
    Posts
    6

    Lightbulb Re: Forum Extension Thread Error

    I'm having this problem too, and since I'm in a hosted environment, recompiling PHP isn't an option for me. What I did, instead, was fudge the iconv() function as follows:

    <?php in index.php:
    /**** BEGIN HACK ****/
    /* This is a hack to mimick the iconv() behavior */
    function iconv($dummy1, $dummy2, $instr)
    {
    // we do NOTHING :-)
    return $instr;
    }
    /**** END HACK ****/

    Now, this only works if you don't need to do any conversions between character encodings - but, it's better than nothing. :-) If anyone has a pure PHP implementation of iconv(), please reply with the function, but in the meantime, I hope this helps!
    Last edited by jjustus; 2007-03-06 at 09:22 PM. Reason: Added iconv() function

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: 2006-09-19, 01:12 AM
  2. Replies: 0
    Last Post: 2006-09-15, 04:50 PM
  3. Module builder help
    By sjilumudi in forum Downloads
    Replies: 3
    Last Post: 2006-08-18, 11:25 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
  •