Last modified: 2013-07-11 17:37:26 UTC
When I try to use Special:Import, I get a bunch of warnings like the following (possibly one for each page I'm trying to import): Warning: array_key_exists() expects parameter 2 to be array, boolean given in /Library/WebServer/jwsmith/w/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Writers.php on line 386 Followed by one of these: Warning: Invalid argument supplied for foreach() in /Library/WebServer/jwsmith/w/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Writers.php on line 188 And a final error message: "Import failed: Unable to free MySQL result" I get similar results if I run importDump.php. I do not know a workaround, short of turning off SMW completely or hacking the code. Versions: MediaWiki 1.20.3 PHP 5.3.15 MySQL 5.5.28 Semantic MediaWiki 1.8.0.4
Not sure if there warning are related to the error you run into. The thing causing the warnings is a know issue which is fixed on master and is not critical (ie can be ignored) on 1.8.x.
As earlier noted the SMW_SQLStore3_Writers/array_key_exists() issue has been fixed with SMW 1.9 master which will probably also solve the issue with Special:Import.
I think the failure was because this was a new wiki and I'd forgotten to initialize SMW. (I haven't tested import again after fixing that, but it seems the likely explanation.) Thanks for helping me understand the warnings.