Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 12:33 pm EDT

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.
 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.
 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
Text Formatted Code
    $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):
Text Formatted Code
    $curPHPIncludePath = ini_get( 'include_path' );                            
    if( ini_set( 'include_path', $_CONF['path_pear'] . ':'          
                                 . $curPHPIncludePath ) === false )
 

bye, Dirk
 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.
 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.




 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 have
Text Formatted Code
    $curPHPIncludePath = ini_get( 'include_path' );                            <br />    if( ini_set( 'include_path', $_CONF['path_pear'] . PATH_SEPARATOR          <br />                                 . $curPHPIncludePath ) === false )<br />
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):
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/
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by druid: So I must change to this?

No, you shouldn't need to change anything. You are running 1.3.9rc2 where that bug has been fixed.

bye, Dirk
 Quote

Status: offline

druid

Forum User
Junior
Registered: 01/11/04
Posts: 34
When I try change user settings i see this error message

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/
 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/
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

druid

Forum User
Junior
Registered: 01/11/04
Posts: 34
PHP Version: 4.3.4
$_CONF['have_pear'] = true;

Here is PHP Info
http://www.spph.org/
 Quote

Status: offline

druid

Forum User
Junior
Registered: 01/11/04
Posts: 34
Now disable pear and working fine Big Grin
http://www.spph.org/
 Quote

All times are EDT. The time is now 12:33 pm.

  • 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