Installation Failed

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
marcman
Registered User
Posts: 5
Joined: Wed Mar 01, 2006 4:39 am

Installation Failed

Post by marcman »

Installation Failed
The mod download link is...
http://sourceforge.net/project/showfile ... _id=136984" target="_blank
V0.3.0

Running current 2.0.19

Critical Error
IN-LINE FIND FAILED: In file [memberlist.php] could not find:
'joined'
MOD script line #296

More info:

MOD Title: Last visit 1.2.9em last_visit_1.2.9em.txt
Author: Niels ncr@db9.dk Niels Chr. Rød http://mods.db9.dk" target="_blank
Processed Themes: subSilver
Processed Languages: english
Files Edited: 2
Commands Processed: 12
Unprocessed Commands: 0

EasyMOD successfully processed the following commands:

Commands Processed
COPY #155
OPEN #177
index.php

FIND #182
//
// Start output of page

BEFOREADD #188
// Start add - Last visit MOD
$time_now=time();
$time1Hour=$time_now-3600;
$minutes = date('is', $time_now);
$hour_now = $time_now - (60*($minutes[0].$minutes[1])) - ($minutes[2].$minutes[3]);
$dato=create_date('H', $time_now,$board_config['board_timezone']);
$timetoday = $hour_now - (3600*$dato);
$sql = 'SELECT session_ip, MAX(session_time) as session_time FROM '.SESSIONS_TABLE.' WHERE session_user_id="'.ANONYMOUS.'" AND session_time >= '.$timetoday.' AND session_time< '.($timetoday+86399).' GROUP BY session_ip';
if (!$result = $db->sql_query($sql)) message_die(GENERAL_ERROR, "Couldn't retrieve guest user today data", "", __LINE__, __FILE__, $sql);
while( $guest_list = $db->sql_fetchrow($result))
{
if ($guest_list['session_time'] >$time1Hour) $users_lasthour++;
}
$guests_today = $db->sql_numrows($result);
$sql = 'SELECT user_id,username,user_allow_viewonline,user_level,user_lastlogon FROM ' . USERS_TABLE . ' WHERE user_id!="'.ANONYMOUS.'" AND user_session_time >= '.$timetoday.' AND user_session_time< '.($timetoday+86399).' ORDER BY username';
if (!$result = $db->sql_query($sql)) message_die(GENERAL_ERROR, "Couldn't retrieve user today data", "", __LINE__, __FILE__, $sql);
while( $todayrow = $db->sql_fetchrow($result))
{
$style_color = "";
if ($todayrow['user_lastlogon']>=$time1Hour)
{
$users_lasthour++;
}
switch ($todayrow['user_level'])
{
case ADMIN :
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
break;
case MOD :
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
break;
}
$users_today_list.=( $todayrow['user_allow_viewonline'])?' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'>' . $todayrow['username'] . '</a>,' : (($userdata[user_level]==ADMIN) ? ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $todayrow['user_id']) . '"' . $style_color .'><i>' . $todayrow['username'] . '</i></a>,' : '');
if (!$todayrow['user_allow_viewonline']) $logged_hidden_today++;
else $logged_visible_today++;
}
if ($users_today_list)
{
$users_today_list[ strlen( $users_today_list)-1] = ' ';
} else
{
$users_today_list = $lang['None'];
}
$total_users_today = $db->sql_numrows($result)+$guests_today;

$users_today_list = $lang['Registered_users'].' ' . $users_today_list;
$l_today_user_s = ($total_users_today) ? ( ( $total_users_today == 1 )? $lang['User_today_total'] : $lang['Users_today_total'] ) : $lang['Users_today_zero_total'];
$l_today_r_user_s = ($logged_visible_today) ? ( ( $logged_visible_today == 1 ) ? $lang['Reg_user_total'] : $lang['Reg_users_total'] ) : $lang['Reg_users_zero_total'];
$l_today_h_user_s = ($logged_hidden_today) ? (($logged_hidden_today == 1) ? $lang['Hidden_user_total'] : $lang['Hidden_users_total'] ) : $lang['Hidden_users_zero_total'];
$l_today_g_user_s = ($guests_today) ? (($guests_today == 1) ? $lang['Guest_user_total'] : $lang['Guest_users_total']) : $lang['Guest_users_zero_total'];
$l_today_users = sprintf($l_today_user_s, $total_users_today);
$l_today_users .= sprintf($l_today_r_user_s, $logged_visible_today);
$l_today_users .= sprintf($l_today_h_user_s, $logged_hidden_today);
$l_today_users .= sprintf($l_today_g_user_s, $guests_today);
// End add - Last visit MOD

FIND #250
'FORUM_LOCKED_IMG' =>

AFTERADD #255
// Start add - Last visit MOD
'USERS_TODAY_LIST' => $users_today_list,

'L_USERS_LASTHOUR' =>($users_lasthour)?sprintf($lang['Users_lasthour_explain'],$users_lasthour):$lang['Users_lasthour_none_explain'],
'L_USERS_TODAY' =>$l_today_users,
// End add - Last visit MOD

OPEN #266
memberlist.php

FIND #271
$mode_types_text =

IN-LINE FIND #276
$lang['Sort_Joined']

IN-LINE AFTERADD #281
, $lang['Last_logon']

FIND #286
$mode_types =

IN-LINE FIND #291
'joined'

That's it...Thanks for taking a look.

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: Installation Failed

Post by Nux »

I'm getting an error like "FIND FAILED: In file [some file name] could not find: ...".
Answer:
viewtopic.php?p=128935#p128935" target="_blank

marcman
Registered User
Posts: 5
Joined: Wed Mar 01, 2006 4:39 am

Re: Installation Failed

Post by marcman »

I sort of expected, it was a "previous" mod issue.

I've done a number of mods with time, this problem and others like it will only persists with EasyMOD.

Thanks for the link and prompt reply.

I'll simply remove the EasyMOD.

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: Installation Failed

Post by Nux »

:?:
Well as you wish, but I belive it's faster to do it with EasyMOD and if you are advance enough (can install MODs by hand) then you can probably figure out what is wrong. Further more if you are not able to solve the problem then the MOD author (or someone at the support topic for that MOD) can help you with that.

marcman
Registered User
Posts: 5
Joined: Wed Mar 01, 2006 4:39 am

Re: Installation Failed

Post by marcman »

I guess I had not intended to be working with MOD authors.

I guess it was the "Easy" in EasyMOD that convinced me to give it a try.

Thanks for your help, support, and suggestions.

Best regards.

Locked