Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
Contact the Webmasters of RCFContact   Invite a friend to Join usRecommend   Chat in IRCChat   EZ Template Change OptionEZStyle   Listen to Internet Radio while you browse...iRadio   See your private message.Login for PMs   Important LinksLinks
Member Website LinksWeb Links   Play/View our GamesGames   Register.Register
calendar_open_closeCalendar 
Install Mod Help
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Install Mod Help
PostPosted: 06/07/2006 10:01 PM Reply with quote
Hawk
Rizzo
Hawk
Posts 178
Word Cnt. 4,784
BDay Mar 26
Sign Aries
Sex Sex:Female
Joined: Oct 28, 2005
Local time: 12:22 PM
Location: New Zealand
newzeaC3.gif
I am getting this error in Easymod

Code:
FIND FAILED: In file [common.php] could not find:

$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}


Now i know why i'm getting this error, Nightrider taught me it's because the FIND is too long, i need to shorten it, BUT i can't remember HOW to shorten it... someone able to help?
Back to Top
View user's profile Find all posts by Rizzo Send private message   Visit poster's website ICQ Number
Re: Install Mod Help
PostPosted: 06/07/2006 10:17 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
peace.gif
What MOD are you trying to install???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Install Mod Help
PostPosted: 06/12/2006 8:42 PM Reply with quote
Hawk
Rizzo
Hawk
Posts 178
Word Cnt. 4,784
BDay Mar 26
Sign Aries
Sex Sex:Female
Joined: Oct 28, 2005
Local time: 12:22 PM
Location: New Zealand
newzeaC3.gif
That's actually irrelevent in this question. I know that the FIND is too long, as that section above is EXACTLY the find that is there that i need to find. But i know it can't find it because the find is too long, as you taught me. I know i need to edit the find to make it shorter, but i can't remember, do i just delete the end of each line?
Back to Top
View user's profile Find all posts by Rizzo Send private message   Visit poster's website ICQ Number
Re: Install Mod Help
PostPosted: 06/13/2006 5:37 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
peace.gif
The command that follows the FIND statement should be used to determine what to do with the FIND statement.  That's why it was important to see the MOD script that you are attempting to install.  If the following command is an AFTER, ADD or BEFORE, ADD, then shortening the FIND statement is the best option.  But if the next command is a REPLACE WITH, then you might have to adjust it too...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Install Mod Help
PostPosted: 06/24/2006 2:37 AM Reply with quote
Hawk
Rizzo
Hawk
Posts 178
Word Cnt. 4,784
BDay Mar 26
Sign Aries
Sex Sex:Female
Joined: Oct 28, 2005
Local time: 12:22 PM
Location: New Zealand
newzeaC3.gif
It is a replace with, here it is here

Code:
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT *
   FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
   $board_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT *
   FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
   if(!isset($board_config[$row['config_name']])) {
       $board_config[$row['config_name']] = $row['config_value'];
    }
}
Back to Top
View user's profile Find all posts by Rizzo Send private message   Visit poster's website ICQ Number
Re: Install Mod Help
PostPosted: 06/24/2006 12:03 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:22 PM
Location: St Pete, FL
peace.gif
Yep, the MOD author provided far too much information in the FIND statement and he was trying to modify far more than is necessary...

Ok, do this:

OPEN
Your MOD file

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT *
   FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
   $board_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT *
   FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
   if(!isset($board_config[$row['config_name']])) {
       $board_config[$row['config_name']] = $row['config_value'];
    }
}

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
$board_config[$row['config_name']]
#
#-----[ REPLACE WITH ]------------------------------------------
#
   if(!isset($board_config[$row['config_name']])) {
       $board_config[$row['config_name']] = $row['config_value'];
    }

Save, upload, and try again using EM...

Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

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
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group
  ImageShack  
  Putfile  
  TinyURL  
  CommonDreams  
  Log in  

Page generation time: 0.1138s (PHP: 83% - SQL: 17%) - SQL queries: 49 - GZIP enabled - Debug on