MyBB Community Forums

Full Version: ERROR - functions_user.php on line 847
You're currently viewing a stripped down version of our content. View the full version with proper formatting.


functions_user.php on line 847

I did the change 1.8.22 upgrade fine but cannot gain access to my admin panel.

This is where it has the issue below.. its at the end of the php file too.

Looking for some advice

thanks very much



Parse error: syntax error, unexpected end of file in /home1/mhz/public_html/kmc/inc/functions_user.php on line 847



834 function purgespammer_show($post_count, $usergroup, $uid)
835 {
836 global $mybb, $cache;
837
838 // only show this if the current user has permission to use it and the user has less than the post 839 limit for using this tool
839 $bangroup = $mybb->settings['purgespammerbangroup'];
840 $usergroups = $cache->read('usergroups');
841 
842 return ($mybb->user['uid'] != $uid && is_member($mybb->settings['purgespammergroups']) && !844 is_super_admin($uid)
843 && !$usergroups[$usergroup]['cancp'] && !$usergroups[$usergroup]['canmodcp'] && !846 $usergroups[$usergroup]['issupermod']
844 && (str_replace($mybb->settings['thousandssep'], '', $post_count) <= $mybb->settings['purgespammerpostlimit'] || $mybb->settings['purgespammerpostlimit'] == 0)
845 && !is_member($bangroup, $uid) && !$usergroups[$usergroup]['isbannedgroup']);
846 }
847

Well another lesson learned.

I took the functions_user.php file from the full install and replaced it. This corrected the error and I can now enter the Admin panel.

Sorry for the inconvenience

thanks