Can anyone tell me why I am getting this error when I attempt to change permissions.
Parse error: parse error, unexpected ',', expecting ')' in /home2/manicom/public_html/forum/Sources/ManagePermissions.php on line 1305
I am also posting this question on SMF forum just in case it is strictly a SMF error.
Thanks
This is telling you to open ManagePermissions.php in an editing program, and look at line 1305 for an extra "," Just look at the code around that line for a pattern in the use of punctuation, and try to copy it.
Or post your code around this line here in a code box(It's like a quote box) and we may advise you, if you like.
I know I am going to sound ignorant, but where is this done. I don't think it can be done in TP-SMF program itself, does it mean I need to go to my cPanel? Please be aware I am very illiterate in this. Thanks for your tolerance.
I'm assuming you have added other mods to your SMF board? Can you attach the ManagePermissions.php file to your next post MAN?
I hope I did this correctly, I went to my cPanel, forum, sources and found the name you mentioned. It was ManagePermissions.php is that right?
I opened the file and copied it to word, but I also saw where it could be edit there, but I didn't. I am attaching it here, I guess you know it is very large as far the page goes.
Thank you for helping me, I was not sure how to find this file and I might have did things backwards. I would have thought it could have been edited in TP-SMF itself, but there is no place there that I could find to do so. It won't upoload, I'll try to change its format.
Quote from: MAN on February 26, 2006, 01:15:05 PM
I know I am going to sound ignorant, but where is this done. I don't think it can be done in TP-SMF program itself, does it mean I need to go to my cPanel? Please be aware I am very illiterate in this. Thanks for your tolerance.
No worries mate,
Yes, either use CPanel, or your FTP program to copy the file from your server and save it to your PC's hard drive. I find a My Documents folder called "My website" works well. I keep a copy of my whole SMF installation there for easy access. Well less the databases.
Once you have the file on your harddrive, then right click it and open it with a good php editing program. YOu can download ConTEXT here http://www.context.cx/ (http://www.context.cx/) or use another one you find. You can read the file with notepad, but do not use wordpad.
The better editors have the lines pre-numbered, and save lots of time. THen follow the directions from my first post. OR Do as IchBin suggested, post it here for one of us to check it out.
I think this is it, this is where the number 1305 appeared on the scroll bar when I scroll down.
Quote// All permission groups that will be shown in the left column.
$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'general_board',
'topic',
'post',
);
Maybe I didn't give enough information above, so I copied the section above and below line 1305, I cannot see what the error is talking about. As far as I can tell, they begin and end the same, but that's my inexperience eye, what say you?
Also line 1305 is an empty space.
// This is just a helpful array of permissions guests... cannot have.
$non_guest_permissions = array(
'karma_edit',
'pm_read',
'pm_send',
'profile_identity',
'profile_extra',
'profile_title',
'profile_remove',
'profile_server_avatar',
'profile_upload_avatar',
'profile_remote_avatar',
'poll_vote',
'mark_any_notify',
'mark_notify',
'admin_forum',
'manage_boards',
'manage_attachments',
'manage_smileys',
'edit_news',
'moderate_forum',
'manage_membergroups',
'manage_permissions',
'manage_bans',
'send_mail',
);
[color=red](<- line 1305)[/color]
// All permission groups that will be shown in the left column.
$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'general_board',
'topic',
'post',
);
$context['permissions'] = array();
foreach ($permissionList as $permissionType => $permissionGroups)
{
I ask for help also on the SMF and they told me that I installed TP twice, and I did I remember doing it, but I had un-installed it accidentaly when I was removing another mod, so I did re-installed it. Would the best solution be to un-install TP?
Best way is to simply upload the original ManagePermissions.php..in fact just upload the whole "upgrade" version of SMF, with the same version as your current. Run upgrade.php and it will reset any mod, giving you fresh files again. Then try to install TP, it will find the old tables with your data.
OK, thanks