Last modified: 2013-07-11 17:37:26 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 T52256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50256 - Import fails with PHP errors in Semantic MediaWiki Code
Import fails with PHP errors in Semantic MediaWiki Code
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
REL1_20-branch
Macintosh Mac OS X 10.8
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-26 20:58 UTC by Dan Smith
Modified: 2013-07-11 17:37 UTC (History)
4 users (show)

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


Attachments

Description Dan Smith 2013-06-26 20:58:37 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
Comment 1 Jeroen De Dauw 2013-06-26 22:41:02 UTC
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.
Comment 2 MWJames 2013-07-08 17:07:00 UTC
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.
Comment 3 Dan Smith 2013-07-11 17:37:26 UTC
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.

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


Navigation
Links