Last modified: 2013-11-18 22:55: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)
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.
(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?