Parse error w/EM

Makes it possible for admin to create users from admin panel
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Parse error w/EM

Postby abnaki on Thu 11. Mar, 2004 02:39

Installed with EM on 2.0.6. Get this error when using Mgt. in User Admin
Parse error: parse error in /xxxxxxxx/x/xxxxxx/xxxx/phpbb/admin/admin_users.php on line 1277
8O

Now if I could easily find where line 1277 is ...
abnaki
Poster
Poster
 
Posts: 3
Joined: Thu 11. Mar, 2004 01:52

Postby Gammler on Thu 11. Mar, 2004 07:36

me too

Parse error: parse error in /xxxxxxxx/xx/xxxxxxxxxxxx/forum/admin/admin_users.php on line 1661



if( $board_config['allow_avatar_remote'] == TRUE )
{
$template->assign_block_vars('avatar_remote_link', array() );
}
}

$template->pparse('body');
}
else
{
//
// Default user selection box
//
$template->set_filenames(array(
'body' => 'admin/user_select_body.tpl')
);

// Start add - Admin add user MOD
$template->assign_block_vars('switch_add_user_on', array());
// End add - Admin add user MOD

$template->assign_vars(array(
Gammler
Poster
Poster
 
Posts: 3
Joined: Wed 24. Dec, 2003 04:01

Postby Sujao on Sat 13. Mar, 2004 18:50

got same problem here. I think it is caused by this instruction in line 211 of the installation file.

Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
if ( (
{
$user_id = intval($HTTP_POST_VARS['id']);

#
#-----[ REPLACE WITH ]----------------------------------------
#

// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD


The if and the opening { is removed, but the closing } and the else is still there and this causes the parse-error, since the compiler encounters an unexpected else.

Can anyone fix this ?
Sujao
Poster
Poster
 
Posts: 4
Joined: Mon 08. Mar, 2004 21:13

Postby Gammler on Sun 14. Mar, 2004 20:00

Thanks Suajo

#
#-----[ FIND ]------------------------------------------------
#
if ( (
{
$user_id = intval($HTTP_POST_VARS['id']);

#
#-----[ FIND ]------------------------------------------------
#
$user_id = intval($HTTP_POST_VARS['id']);

#
#-----[ REPLACE WITH ]----------------------------------------
#

// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD



this is ok *fg*
Gammler
Poster
Poster
 
Posts: 3
Joined: Wed 24. Dec, 2003 04:01

Postby Niels on Wed 24. Mar, 2004 15:44

you are all right, I will update the how-to
this "bug" was introduced with version 0.10.3, as this was the FIND tag with was corrected in that version.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Admin add users [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron