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

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2007, 05:18 PM
New Pligger
 
Join Date: Jun 2007
Posts: 7
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...
Reply With Quote
  #2 (permalink)  
Old 06-10-2007, 07:12 PM
New Pligger
 
Join Date: Jun 2007
Posts: 7
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

Last edited by starguy; 06-10-2007 at 07:17 PM.
Reply With Quote
  #3 (permalink)  
Old 06-11-2007, 12:03 AM
New Pligger
 
Join Date: Jun 2007
Posts: 7
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.
Reply With Quote
  #4 (permalink)  
Old 06-11-2007, 12:15 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
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;

Reply With Quote
  #5 (permalink)  
Old 06-21-2007, 11:17 PM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Another user had this same problem and was able to resolve it by installing the php-xml package.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined function: get_server_name() tobycoke Questions and Comments 1 03-11-2007 04:01 PM
Submit Story error after install Kevanski Questions and Comments 1 01-05-2007 04:41 PM
Fatal error: Call to undefined function: getmyurl() pligglover Questions and Comments 1 07-30-2006 12:36 AM
Fatal error: Call to undefined function: mb_strtolower() vbmark Questions and Comments 0 04-06-2006 11:16 AM
Fatal error: Call to undefined function: mb_strtolower() ? dust Questions and Comments 4 03-18-2006 02:55 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development