PDA

View Full Version : 3.8.2 upgrade gone wrong


mhackl
06-10-2009, 03:45 AM
I just upgraded my forum to the latest version and now get the following error when I attempt to view the forums threads.

Parse error: syntax error, unexpected ')', expecting T_FUNCTION in ...www/themodelhangar.com/forums/includes/class_postbit.php on line 965

Denver Jackson
06-10-2009, 06:02 AM
You can try downloading that file again from the members area and checking on line 965 to see if it is different to the default one.

--------------- Added 1244617518 at 1244617518 ---------------

/**
* Processes miscellaneous post items at the beginning of the construction process.
*/
function prep_post_start()
{
parent::prep_post_start();
$this->post['checkbox_value'] += ($this->post['visible'] == 0 OR ($this->thread['firstpostid'] == $this->post['postid'] AND $this->thread['visible'] == 0)) ? POST_FLAG_INVISIBLE : 0;
$this->post['checkbox_value'] += ($this->post['visible'] == 2 OR ($this->thread['firstpostid'] == $this->post['postid'] AND $this->thread['visible'] == 2)) ? POST_FLAG_DELETED : 0;
$this->post['checkbox_value'] += is_array($this->post['attachments']) ? POST_FLAG_ATTACH : 0;
$this->post['checkbox_value'] += $this->post['userid'] == 0 ? POST_FLAG_GUEST : 0;
}

This what should be from line 965 - 975.