Last modified: 2005-01-11 00:07:35 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 1205 - Article saving impossible in PHP 5.1
Article saving impossible in PHP 5.1
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
  Show dependency treegraph
Reported: 2004-12-26 22:29 UTC by Robbert Broersma
Modified: 2005-01-11 00:07 UTC (History)
0 users

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


Description Robbert Broersma 2004-12-26 22:29:30 UTC
When you save the page there is reported a '''FATAL error''', and the processing
''completely shuts down'':

<pre>Fatal error: [] operator not supported for strings in
/www/mediawiki/includes/Article.php on line 534</pre>

It concerns the function 'getSelectOptions', and if I understand the code
correctly that functio can take either an array or a string as argument. Since
there is no type checking an error is produced because the string is manipulated
as if it were an array. The solution is quite simple: check wheter the argument
is an array or a string.

Concretely, it means that line (533):
<pre>if ( $options ) {</pre>
Has to be changed in this.
<pre>if ( is_array( $options ) ) {</pre>

Now I can use my Wiki again!
Comment 1 JeLuF 2005-01-11 00:07:35 UTC
Fixed in CVS HEAD and CVS REL1_4.

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