Last modified: 2013-11-18 22:55:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47524, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45524 - Validator throws tons of warnings, leading to page time-out on 'save with form'
Validator throws tons of warnings, leading to page time-out on 'save with form'
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Validator (Other open bugs)
REL1_19-branch
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-27 23:35 UTC by Dan Bolser
Modified: 2013-11-18 22:55 UTC (History)
2 users (show)

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


Attachments

Description Dan Bolser 2013-02-27 23:35:27 UTC
I recently updated my site to the latest version of Semantic Bundle:
http://www.mediawiki.org/wiki/Semantic_Bundle

version 71c6a938845739bab8523772841332db0f7e7942

which gives me SMW/SF version 1.8.x/2.5.2. (My wiki is 1.19.3)


Lots of pages give me errors like this on 'first' view (first after update):
Warning: file() [function.file]: Filename cannot be empty in /home/seqadmin/seqanswers.com/w/extensions/Validator/includes/definitions/ParamDefinition.php on line 956

I can recreate this by setting 'action=purge', e.g. 
http://seqanswers.com/wiki/FastQ_Screen?action=purge

which gives 13 such errors (unlucky me!)


If I click 'Edit with form' and then 'Save page', I get many many errors like this:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /home/seqadmin/seqanswers.com/w/extensions/Validator/includes/definitions/ParamDefinition.php on line 898

and ultimately:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/seqadmin/seqanswers.com/w/extensions/Validator/includes/definitions/ParamDefinition.php on line 901


My PHP version is:
PHP 5.2.17 (cli) (built: Mar  1 2012 16:44:05)
Comment 1 Jeroen De Dauw 2013-03-13 14:27:50 UTC
This is an issue occurring on PHP < 5.3 and MW < 1.20 (or 1.21, not sure). Since SMW 1.9 no longer supports PHP 5.2 anyway we won't be fixing this.

If you can, upgrade your PHP version.
Comment 2 amelia.ireland 2013-11-18 22:55:27 UTC
(In reply to comment #1)
> This is an issue occurring on PHP < 5.3 and MW < 1.20 (or 1.21, not sure).
> Since SMW 1.9 no longer supports PHP 5.2 anyway we won't be fixing this.
> 
> If you can, upgrade your PHP version.

I have a similar problem (a screen full of the following message:

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /var/lib/mediawiki/extensions/Validator/includes/definitions/ParamDefinition.php on line 898

) and upgrading the server PHP is not viable for me without a full scale server OS upgrade (server is on an ancient debian, has other services running on it). Can you suggest any hacks that can be used to bypass this error and serve pages?

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


Navigation
Links