Author |
Message |
MODERATOR
New Member


Joined: Jan 02, 2005
Posts: 2
|
Posted:
Sun Jan 02, 2005 2:04 pm |
|
Fatal error: Call to undefined function: encode_ip() in /home/mike/public_html/modules/Forums/common.php on line 215 i get this code when i try to enter the forum dat comes with phpnuke 7.5 any idea wat it could be? |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sun Jan 02, 2005 3:48 pm |
|
there isnt any reason to point to why this happends to you....i searched a bit,just reinstall it or take the 7.6 |
|
|
|
 |
Data-Base
New Member


Joined: Feb 23, 2005
Posts: 9
Location: Norway
|
Posted:
Wed Feb 23, 2005 6:35 pm |
|
I got the same proble with new installed site !!!!
PHPNuke 7.5 and the BBtoNuke is 2.0.12
do you think the problem is the include files are not included in common.php for some reson ?
Code:if (defined('FORUM_ADMIN')) {
//@include("../../../db/db.php");
@include("../../../includes/constants.php");
@include("../../../includes/template.php");
@include("../../../includes/sessions.php");
@include("../../../includes/auth.php");
@include("../../../includes/functions.php");
} else {
@include("includes/constants.php");
@include("includes/template.php");
@include("includes/sessions.php");
@include("includes/auth.php");
@include("includes/functions.php");
@include("db/db.php");
}
|
?????????????????????????
Thank you again |
|
|
|
 |
hitwalker

|
Posted:
Wed Feb 23, 2005 6:47 pm |
|
Well at that time i did some searching and its hard to tell...
It can be a path problem ...i dont know....there isnt a clear answer to that..
i suggest you just do a clean install with the 7.6..... |
|
|
|
 |
Data-Base

|
Posted:
Wed Feb 23, 2005 6:58 pm |
|
but 7.6 is not released for public yet ?? .. or they did release it ?
and what do you mean by Clean install .. like delet all portal files from the server and add the new .. or just overwrite it ?
and what about the DataBase ? |
Last edited by Data-Base on Wed Feb 23, 2005 7:00 pm; edited 1 time in total |
|
|
 |
Data-Base

|
Posted:
Wed Feb 23, 2005 6:59 pm |
|
Pleas delet this one it's become dublicated !!! |
|
|
|
 |
hitwalker

|
Posted:
Wed Feb 23, 2005 7:06 pm |
|
well with clean i mean....
it depends on your site....is it an active one?
or are you just starting...?
You can just overwrite every file...
Yes the 7.6 is available...and can be downloaded everywhere...
Dont get it from phpnuke.org cause thats the hack me version...
just get it here or whatever....you always get the save version....
And after overwriting...just run the upgrade....
Or delete everything and install new.......make your choice... |
|
|
|
 |
Data-Base

|
Posted:
Wed Feb 23, 2005 7:08 pm |
|
I'll see what I can do
Thanks alot for your tme  |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Wed Feb 23, 2005 9:06 pm |
|
Nuke 7.5's includes/functions.php does have the above function, if yours is missing it you might have mixed files from another version.
Code:function encode_ip($dotquad_ip)
{
$ip_sep = explode('.', $dotquad_ip);
return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}
function decode_ip($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}
|
|
|
|
|
 |
Data-Base

|
Posted:
Thu Feb 24, 2005 2:36 am |
|
thanks alot  |
|
|
|
 |
|