Page 1 of 1

Junior Admin error

PostPosted: Mon Dec 18, 2006 6:58 pm
Author: Neva
Any know how to fix this error?
I tried to use Junior Admin for the first time and it seems yo not be working. <img>

Warning: jr_admin_check_file_hashes(./../admin/modules/) [function.jr-admin-check-file-hashes]: failed to open stream: Permission denied in c:inetpubwwwrootforumincludesfunctions_jr_admin.php on line 154

Warning: jr_admin_check_file_hashes() [function.include]: Failed opening './../admin/modules/' for inclusion (include_path='.;c:php4pear') in c:inetpubwwwrootforumincludesfunctions_jr_admin.php on line 154

Warning: Invalid argument supplied for foreach() in c:inetpubwwwrootforumincludesfunctions_jr_admin.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at c:inetpubwwwrootforumincludesfunctions_jr_admin.php:154) in c:inetpubwwwrootforumadminpage_header_admin.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at c:inetpubwwwrootforumincludesfunctions_jr_admin.php:154) in c:inetpubwwwrootforumadminpage_header_admin.php on line 138

Warning: Cannot modify header information - headers already sent by (output started at c:inetpubwwwrootforumincludesfunctions_jr_admin.php:154) in c:inetpubwwwrootforumadminpage_header_admin.php on line 139


General Error
The requested module does not exist or you are not an authorized user.

DEBUG MODE

Line : 52
File : pagestart.php

Re: Junior Admin error

PostPosted: Tue Dec 19, 2006 3:26 am
Author: dan0042
Code: Select all
# #-----[ OPEN ]------------------------------------------ #  login.php  # #-----[ FIND ]------------------------------------------ #      //    // Do a full login page dohickey if    // user not already logged in    //    if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN))  # #-----[ REPLACE WITH ]------------------------------------------ #      //       // Do a full login page dohickey if       // user not already logged in       //       include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);       $jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);       if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN ||  $jr_admin_userdata))

Re: Junior Admin error

PostPosted: Tue Dec 19, 2006 6:04 pm
Author: Neva
eek, can't login to my forum after I tried this fix. <img>
Good think I backed up the file.

Re: Junior Admin error

PostPosted: Tue Dec 19, 2006 9:41 pm
Author: Teelk
What's your phpBB version? I believe it was the 2.0.18 or .19 update that broke the junior admin login for ACP. It was fixed in the following update.

There's a [quote] bbcode tag in that edit dan0042, but it should be correct other then that. Here it is again.

Open login.php
FIND
Code: Select all
if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN))

REPLACE WITH
Code: Select all
include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);$jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);  if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && (!empty($jr_admin_userdata['user_jr_admin']) || $userdata['user_level'] == ADMIN)))

Re: Junior Admin error

PostPosted: Wed Dec 20, 2006 6:50 pm
Author: Neva
I seem to already have this code and still get the erorr above.

Re: Junior Admin error

PostPosted: Thu Dec 21, 2006 12:21 pm
Author: Teelk
Hmmm... ok. Check admin/pagestart.php

FIND
Code: Select all
    redirect(append_sid("login.$phpEx?redirect=admin/&admin=1", true));
REPLACE WITH
Code: Select all
    redirect(append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));

That may also already be done, however.

Re: Junior Admin error

PostPosted: Thu Dec 21, 2006 6:49 pm
Author: Neva
Yep, this one was also done.