Page MenuHomePhabricator

Pages will not load, gives a php error
Closed, DeclinedPublic

Description

Author: mkbz7b

Description:
I get a php error whenever I try to load a page with the wiki script. I was
adding articles to it, when all of a sudden this happened. I have not messed
with the code.

This is the error that I get:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or
T_FUNCTION or T_VAR or '}' in
/my/direcotry/tree/foo/livingoffcampus/info/includes/Exception.php on line 114

The error refers to these lines of code:

class ErrorPageError extends MWException {
public $title, $msg;

/**

  • Note: these arguments are keys into wfMsg(), not text!
	 */

function __construct( $title, $msg ) {

		$this->title = $title;
		$this->msg = $msg;
		parent::__construct( wfMsg( $msg ) );

}

function report() {

		global $wgOut;
		$wgOut->showErrorPage( $this->title, $this->msg );
		$wgOut->output();

}
}

PLEASE HELP ME!!


Version: 1.7.x
Severity: critical
OS: Windows XP
Platform: PC
URL: http://www.livingoffcampus.info/info

Details

Reference
bz7151

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 9:24 PM
bzimport added a project: MediaWiki-Interface.
bzimport set Reference to bz7151.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Aug 28 2006, 7:22 PM

MediaWiki 1.7x requires php 5 or later. If you are sure you are using php 5,
feel free to reopen the bug.

mkbz7b wrote:

I am DEFINITELY using PHP 5, I made my host upgrade the server just for this script.

Complain to your host, then. HTTP header says: X-Powered-By: PHP/4.4.4