MyBB Community Forums

Full Version: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/xxxxx
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I've an issue about "Error Type: (8192)" to the Mybb forum.

Then i've tried to these changes:
http://community.mybb.com/thread-52195-p...#pid372017

And now, the site shows this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/xxxxxx/public_html/inc/class_core.php on line 400

These are the class_core.php lines:

397
/**
398
* Do this here because the core is used on every MyBB page
399
*/
400
$grouppermignore = array("gid", "type", "title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
401
$groupzerogreater = array("pmquota", "maxpmrecipients", "maxreputationsday", "attachquota", "maxemails", "maxwarningsday");
402
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
403
// These are fields in the usergroups table that are also forum permission specific.
What MyBB version are you running?
And whats your PHP version?
Why are you applying those changes?? Huh That was fixed in the core code like a year ago. If you were still having that problem you'd have been running an older version, just upgrade to 1.4.14...
I've upgraded to 1.6. It works now. Thanks. Smile