Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 09:37 am EST
Geeklog Forums
Call to undefined function: isvalidinetaddress()
Phattmatt
Anonymous
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.
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.
9
8
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
A search brings up:
http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=26835&highlight=isvalidinetaddress
You can try the fix there and see if it works.
http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=26835&highlight=isvalidinetaddress
You can try the fix there and see if it works.
10
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
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):
if( ini_set( 'include_path', $_CONF['path_pear'] . ':'
. $curPHPIncludePath ) === false )
bye, Dirk
Text Formatted Code
$curPHPIncludePath = ini_get( 'include_path' ); if( ini_set( 'include_path', $_CONF['path_pear'] . PATH_SEPARATOR
. $curPHPIncludePath ) === false )
Text Formatted Code
$curPHPIncludePath = ini_get( 'include_path' ); if( ini_set( 'include_path', $_CONF['path_pear'] . ':'
. $curPHPIncludePath ) === false )
bye, Dirk
12
7
Quote
Phattmatt
Anonymous
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.
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.
8
9
Quote
Phattmatt
Anonymous
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.
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.
8
8
Quote
Status: offline
druid
Forum User
Junior
Registered: 01/11/04
Posts: 34
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 haveThe problem is that PATH_SEPARATOR exists only as of PHP 4.3.0. Replace it with ':' (if your on a Unix system - ';' for Windows):
bye, Dirk
Text Formatted Code
$curPHPIncludePath = ini_get( 'include_path' ); <br /> if( ini_set( 'include_path', $_CONF['path_pear'] . PATH_SEPARATOR <br /> . $curPHPIncludePath ) === false )<br />Text Formatted Code
$curPHPIncludePath = ini_get( 'include_path' ); <br /> if( ini_set( 'include_path', $_CONF['path_pear'] . ':' <br /> . $curPHPIncludePath ) === false )<br />bye, Dirk
I have this:
Text Formatted Code
198-203
$curPHPIncludePath = ini_get( 'include_path' );
if( defined( 'PATH_SEPARATOR' ))
{
$separator = PATH_SEPARATOR;
}
So I must change to this?:
Text Formatted Code
$curPHPIncludePath = ini_get( 'include_path' );
if( defined( ':' ))
{
$separator = ':';
}
http://www.spph.org/
10
9
Quote
Status: offline
druid
Forum User
Junior
Registered: 01/11/04
Posts: 34
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
http://www.spph.org/
Text Formatted Code
Fatal error: Call to undefined function: isvalidinetaddress() in /home/spphr/public_html/lib-common.php on line 3154
http://www.spph.org/
12
10
Quote
Status: offline
druid
Forum User
Junior
Registered: 01/11/04
Posts: 34
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
http://www.spph.org/
Fatal error: Call to undefined function: isvalidinetaddress() in /home/spphr/public_html/lib-common.php on line 3160
http://www.spph.org/
10
10
Quote
Status: offline
druid
Forum User
Junior
Registered: 01/11/04
Posts: 34
Now disable pear and working fine
http://www.spph.org/
http://www.spph.org/
10
7
Quote
All times are EST. The time is now 09:37 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content