Results 1 to 6 of 6
  1. #1
    New Pligger starguy's Avatar
    Joined
    Jun 2007
    Posts
    7
    Thanks
    Received:0
    Given: 0

    [SOLVED] Clean install: Submit New Story = Fatal error: Call to undefined function:

    On an absolute fresh clean install of Pligg on Linux/Apache, when I do STEP 1 of Submit a New Story, the browser returns the following error:


    Fatal error: Call to undefined function: utf8_decode() in /home/mark/public_html/drive0/www/pligg2/libs/utf8/native/core.php on line 217


    Every other function of PLIGG seems to function fine, other than I can't submit stories at all because of this error. I thought maybe I had screwed up a configuration, so I did an absolute total clean install from scratch, without changing a single setting, and still get this error.


    I look at line 217 of core.php, and find this call to utf8_decode()

    if (!isset($strlen)) {
    // see notes
    $strlen = strlen(utf8_decode($str));
    }


    I look all through core.php where other related subroutines are defined, and can not find any subroutine defintion for utf8_decode()

    Where is this subroutine supposed to be defined...

  2. #2
    New Pligger starguy's Avatar
    Joined
    Jun 2007
    Posts
    7
    Thanks
    Received:0
    Given: 0
    I assume utf8_decode() is a function built into PHP? I'm using PHP 4.3 / Linux / Apache. How do I test if its present, or figure out what is going wrong? Is there anyway I can hack around and bypass this function?


    Register for a username, and try and submit a story, and you run into the error:

    http://shellprompt.no-ip.info/drive0...g/register.php

  3. #3
    New Pligger starguy's Avatar
    Joined
    Jun 2007
    Posts
    7
    Thanks
    Received:0
    Given: 0

    You need PHP 5.x

    I figured it out, you need PHP 5.x to run with Pligg 9.x.

    PHP 4.3 does not apparently have the utf8_decode() function.

  4. #4
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    I'm working with someone to try to figure this out. They're running PHP 5.0.4 and are also missing the utf8_decode function. As a temporary fix, we added this to the end of config.php.

    PHP Code:
    function utf8_decode($in_str)
    {
        return 
    $in_str;


  5. #5
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    Another user had this same problem and was able to resolve it by installing the php-xml package.

  6. #6
    New Pligger Johane's Avatar
    Joined
    Jan 2012
    Posts
    1
    Thanks
    Received:0
    Given: 0
    I have been visiting various blogs for my dissertation study. I have found your blog to be fairly beneficial. Keep updating your blog with useful information…...Regards>>Musician Community.

Similar Threads

  1. Replies: 1
    Last Post: 12-15-2007, 02:09 PM
  2. Fatal error: Call to undefined function checklevel() in
    By evansun in forum Questions & Comments
    Replies: 0
    Last Post: 09-14-2007, 07:45 PM
  3. Fatal error: Call to undefined function
    By sanchopanza in forum Questions & Comments
    Replies: 1
    Last Post: 08-23-2007, 07:46 PM
  4. Fatal error: Call to undefined function: get_server_name()
    By tobycoke in forum Questions & Comments
    Replies: 1
    Last Post: 03-11-2007, 01:01 PM
  5. Fatal error: Call to undefined function: mb_strtolower() ?
    By dust in forum Questions & Comments
    Replies: 4
    Last Post: 03-18-2006, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg