I just can't leave it alone now I have Fatal error

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   I just can't leave it alone now I have Fatal error
Tankdfm
CZ Newbie
 Codezwiz Site Donator
Tankdfm has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Nov 18, 2004
0.00 posts per day
Posts: 13
Points: 2,420
   
Hi all

After getting Telli to sort out my last problem ( thanks M8 ), I was not going to mess about with my site but I spotted a few good things I wanted. So I installed them all went well till I tried to install submit screen and subdomain.

I installed submit screen first every thing works on this except it does not email that there has been a submission, so I deactivated it while I pondered the problem and did some research. While going through the various web site's looking for answers I came across a hack that allows you to give sub domain names to people. This would be ideal for anyone wanting to have a totaly seperate clan forum with a bit of personalisation. So I installed it now I get the following error when accessing the forums or any page connected to the forums Eg: PM's, Members, New registrations etc.

Fatal error: Call to undefined function: encode_ip() in /home/www/dogfightmod.com/modules/Forums/common.php on line 207

Can any one help

Thanks




_________________
Leader of the Mod. Death to all unbelievers awaits at the end of my guns. Worship the ONE MOD or DIE.



[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You made a backup right? Sounds like you had to edit the common.php and maybe made a mistake. Double check that.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: I just can't leave it alone now I have Fatal error
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
From my experiences with that type of error the problem isn't actually in the file it tells you...but in an 'includes' file. In this case I would check root/includes/functions.php and make sure that this line (or something similar) is in there:

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]);
}

That error on line 207 is just telling you that the function encode_ip has not been defined.

If that doesn't do it then check to make sure that a line similar to this is in common.php probably around line 180

global $forum_admin;
if ($forum_admin == 1) {
//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");

}




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   re: I just can't leave it alone now I have Fatal error
Tankdfm
CZ Newbie
 Codezwiz Site Donator
Tankdfm has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Nov 18, 2004
0.00 posts per day
Posts: 13
Points: 2,420
   
Thanks to both of you I have managed to get my forums back up and working. The only problem left is that when some one registers, when they click on the link in the email it takes them to [ Register or login to view links on this board. ] which is because of how the subdomain mod worked I think and linked to the sql I had to install. I have a backup of my sql before I installed the subdomain mod in tar.gz format but I have no idea how to use it to return mysql to that state.

I have removed all the files relating to the subdomain mod and would be greatfull if some one could explain how I use the mysql back up in myphp to return it to previous state.

I hope this make sence

Thanks




_________________
Leader of the Mod. Death to all unbelievers awaits at the end of my guns. Worship the ONE MOD or DIE.



[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: I just can't leave it alone now I have Fatal error
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Go to your admin Forums control panel and find the option to restore database...that should do it. If not you'll prolly hafta copy and paste your backup file into your MySQL.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#6   re: I just can't leave it alone now I have Fatal error
Tankdfm
CZ Newbie
 Codezwiz Site Donator
Tankdfm has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Nov 18, 2004
0.00 posts per day
Posts: 13
Points: 2,420
   
Hi m8

Thanks for the info I tried that but I get the following error.

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '

Any idea what that means




_________________
Leader of the Mod. Death to all unbelievers awaits at the end of my guns. Worship the ONE MOD or DIE.



[ Register or login to view links on this board.]
Back to top Reply with quote
#7   re: I just can't leave it alone now I have Fatal error
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Yes i do..lol...I got that the one time i tried it as well...ended up having to copy paste straight from the backup file to MySQL. I think it has something to do with the codes that backing up puts into the backup file...not sure how to get around that yet..so had to do it the hard way. If Codezhost is your server I can help you on doing it the hard way..if not..I can try but this site is my first experience with online DB's and SQL. You can hit me up on Yahoo IM if ya like at PTMTOP and I can try to work with ya on this.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#8   
Tankdfm
CZ Newbie
 Codezwiz Site Donator
Tankdfm has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Nov 18, 2004
0.00 posts per day
Posts: 13
Points: 2,420
   
pnclthnmstsh thanks for your help, I'll install Yahoo IM asap (later tonight) as I'm not exactly sure I know where I have to put the info in Mysql.

Talk to you later.




_________________
Leader of the Mod. Death to all unbelievers awaits at the end of my guns. Worship the ONE MOD or DIE.



[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum