Posted on: 02/17/04 05:53pm
By: Anonymous (Phattmatt)
Hi All,
I've succesfully installed Geeklog to my hosted space (hosted by www.oneandone.co.uk).
I am however experiencing an error:
Fatal error: Call to undefined function: isvalidinetaddress() in /homepages/3/d83945532/htdocs/www.dummy.co.uk/public_html/lib-common.php on line 3118
I've changed the path and domain name here, but I've checked them, they are correct.
I've also checked lib-common.php, it's not corrupt and is in the Unix style of text files.
The error appears to manifest whenever an e-mail is sent from the site.
The server is running PHP 4.2.3 and I've set Geelog to use the Geeklog included PEAR library.
I am running Geeklog 1.3.9 rc1.
Does anyone have a suggestion on how to progress?
Thanks,
Matt.
Call to undefined function: isvalidinetaddress()
Posted on: 02/17/04 06:17pm
By: Turias
Call to undefined function: isvalidinetaddress()
Posted on: 02/18/04 02:25am
By: Dirk
The problem occurs when running 1.3.9rc1 on a PHP version older than 4.3.0. In lib-common.php, around line 198, you have
$curPHPIncludePath = ini_get( 'include_path' );
if( ini_set( 'include_path', $_CONF['path_pear'] . PATH_SEPARATOR
. $curPHPIncludePath ) === false )
The problem is that PATH_SEPARATOR exists only as of PHP 4.3.0. Replace it with ':' (if your on a Unix system - ';' for Windows):
$curPHPIncludePath = ini_get( 'include_path' );
if( ini_set( 'include_path', $_CONF['path_pear'] . ':'
. $curPHPIncludePath ) === false )
bye, Dirk
Call to undefined function: isvalidinetaddress()
Posted on: 02/18/04 06:18am
By: Anonymous (Phattmatt)
Thanks for the quick and positive replies Guys.
I'll attempt the second fix suggested (PATH_SEPARATOR to ':') this evening (when I have access to the site).
I'll report back on my success/failure then....
Best Regards, Matt.
Call to undefined function: isvalidinetaddress()
Posted on: 02/19/04 06:20pm
By: Anonymous (Phattmatt)
Hi All,
Just to report on how I got on. I changed lib-common.php as Dirk suggested above.
This solved the problem I was seeing.
But when I tried to signup a new user I saw the following error:
Fatal error: Call to a member function on a non-object in /homepages/blah/www.dummy.co.uk/public_html/lib-common.php on line 3211
I overcame this by changing the 'backend' setting in config.php from 'mail' to 'sendmail'.
It all seems to work fine now.
Thanks for your help Dirk.
Regards,
Matt.
Call to undefined function: isvalidinetaddress()
Posted on: 03/07/04 12:46pm
By: druid
[QUOTE BY= Dirk] The problem occurs when running 1.3.9rc1 on a PHP version older than 4.3.0. In lib-common.php, around line 198, you have
$curPHPIncludePath = ini_get( 'include_path' );
if( ini_set( 'include_path', $_CONF['path_pear'] . PATH_SEPARATOR
. $curPHPIncludePath ) === false )
The problem is that PATH_SEPARATOR exists only as of PHP 4.3.0. Replace it with ':' (if your on a Unix system - ';' for Windows):
$curPHPIncludePath = ini_get( 'include_path' );
if( ini_set( 'include_path', $_CONF['path_pear'] . ':'
. $curPHPIncludePath ) === false )
bye, Dirk[/QUOTE]
I have this:
198-203
$curPHPIncludePath = ini_get( 'include_path' );
if( defined( 'PATH_SEPARATOR' ))
{
$separator = PATH_SEPARATOR;
}
So I must change to this?:
$curPHPIncludePath = ini_get( 'include_path' );
if( defined( ':' ))
{
$separator = ':';
}
Call to undefined function: isvalidinetaddress()
Posted on: 03/07/04 12:58pm
By: Dirk
[QUOTE BY= druid] So I must change to this?[/QUOTE]
No, you shouldn't need to change anything. You are running 1.3.9rc2 where that bug has been fixed.
bye, Dirk
Call to undefined function: isvalidinetaddress()
Posted on: 03/07/04 05:02pm
By: druid
When I try change user settings i see this error message
Fatal error: Call to undefined function: isvalidinetaddress() in /home/spphr/public_html/lib-common.php on line 3154
Call to undefined function: isvalidinetaddress()
Posted on: 03/07/04 05:14pm
By: druid
Now I try update lib-common.php from version rc3 but I see
Fatal error: Call to undefined function: isvalidinetaddress() in /home/spphr/public_html/lib-common.php on line 3160
Call to undefined function: isvalidinetaddress()
Posted on: 03/07/04 05:17pm
By: Dirk
Which version of PHP are you on? What's your setting for $_CONF['have_pear'] (i.e. are you using the PEAR classes installed on your server or the ones that ship with Geeklog)?
bye, Dirk
Call to undefined function: isvalidinetaddress()
Posted on: 03/08/04 05:41am
By: druid
PHP Version: 4.3.4
$_CONF['have_pear'] = true;
Here is
PHP Info[*2]
Call to undefined function: isvalidinetaddress()
Posted on: 03/08/04 05:49am
By: druid
Now disable pear and working fine