Last modified: 2006-11-13 07:57:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7887 - PHP Syntax Error
PHP Syntax Error
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
PC Linux
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-11-12 17:26 UTC by Nayef
Modified: 2006-11-13 07:57 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Nayef 2006-11-12 17:26:29 UTC

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.

Comment 1 Rotem Liss 2006-11-12 17:28:09 UTC
Did you change something? Did the PHP configuration change? This error is
specific for PHP 4, while recent MediaWiki version support only PHP 5.
Comment 2 Nayef 2006-11-12 21:31:36 UTC
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?
Comment 3 Rob Church 2006-11-12 23:16:25 UTC
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.
Comment 4 Nayef 2006-11-13 04:54:52 UTC
I de-upgraded PHP to PHP 4.. and re-upgraded to 5, it worked :)


Note You need to log in before you can comment on or make changes to this bug.