Page MenuHomePhabricator

PHP Syntax Error
Closed, DeclinedPublic

Description

Author: nayefpearl

Description:
Hi

I never edited Exceptions.php
Now I get this error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or
T_FUNCTION or T_VAR or '}' in
/home/nayef/public_html/mwiki/includes/Exception.php on line 114

I have a project due 15 days, PLEASE PLEASE help me.

Thanks,


Version: unspecified
Severity: critical
OS: Linux
Platform: PC
URL: http://www.nayefcopty.com/mwiki

Details

Reference
bz7887

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:27 PM
bzimport set Reference to bz7887.
bzimport added a subscriber: Unknown Object (MLST).

rotemliss wrote:

Did you change something? Did the PHP configuration change? This error is
specific for PHP 4, while recent MediaWiki version support only PHP 5.

nayefpearl wrote:

I've downloaded this in around July. I dont know which PHP version it was
compatible with.

2 days ago, I installed GD Image Libraries.. Could that be the problem?
Should I try removing them, or maybe de-upgrading php5 to php4 and see if it works?

robchur wrote:

The problem *appears* to be that the PHP version MediaWiki is now running as is
less than 5.x. MediaWiki 1.7 and above require at least PHP 5.0.x and 5.1.x is
strongly recommended. Rotem's trying to help you work out whether something
degraded in the environment which would cause this apparent jump.

nayefpearl wrote:

I de-upgraded PHP to PHP 4.. and re-upgraded to 5, it worked :)

Thx