Last modified: 2013-04-30 04:49:47 UTC
I'm on the master branch of SMW 1.9a (http://wikiapiary.com/wiki/Special:Version) and trying to execute SMW_conceptCache.php throws a fatal error if any concepts are defined. php SMW_conceptCache.php --create --update --old 60 PHP Fatal error: Cannot use object of type SMW\DIConcept as array in .../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 147
Related URL: https://gerrit.wikimedia.org/r/61507 (Gerrit Change I846682b975c8eb4f9d0b09c827d34a8cf130f54a)
Thanks for reporting, if possible please confirm if the patch solves the reported issue before merging with the master.
(Just an FYI, this is my first time using concept caching in SMW so I'm really only looking at the output of SMW_conceptCache.php and not inside of SMW itself.) I applied the patch: % git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticMediaWiki refs/changes/07/61507/1 && git format-patch -1 --stdout FETCH_HEAD | patch -p1 From https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticMediaWiki * branch refs/changes/07/61507/1 -> FETCH_HEAD patching file includes/storage/SQLStore/SMW_SQLStore3_Queries.php patching file maintenance/SMW_conceptCache.php and it looks like it's working great now! SMW Concept caching for wikiapiary.com... Mon Apr 29 20:28:17 CDT 2013 Displaying concept cache status information. Use CTRL-C to abort. (0) Status of cache for "Concept:Websites to share": Not cached. (1) Status of cache for "Concept:Extensions to share": Not cached. (2) Status of cache for "Concept:Farms to share": Not cached. (3) Status of cache for "Concept:Websites never audited": Not cached. (4) Status of cache for "Concept:Websites expired audit": Not cached. Done. Creating/updating concept caches. Use CTRL-C to abort. (0) Creating cache for "Concept:Websites to share" ... (1) Creating cache for "Concept:Extensions to share" ... (2) Creating cache for "Concept:Farms to share" ... (3) Creating cache for "Concept:Websites never audited" ... (4) Creating cache for "Concept:Websites expired audit" ... Done. Displaying concept cache status information. Use CTRL-C to abort. (0) Status of cache for "Concept:Websites to share": Cache created at 2013-04-30 01:28:35 (0 minutes old), 4755 elements in cache (1) Status of cache for "Concept:Extensions to share": Cache created at 2013-04-30 01:28:35 (0 minutes old), 1189 elements in cache (2) Status of cache for "Concept:Farms to share": Cache created at 2013-04-30 01:28:35 (0 minutes old), 53 elements in cache (3) Status of cache for "Concept:Websites never audited": Cache created at 2013-04-30 01:28:40 (0 minutes old), 0 elements in cache (4) Status of cache for "Concept:Websites expired audit": Cache created at 2013-04-30 01:28:40 (0 minutes old), 0 elements in cache Done.
https://gerrit.wikimedia.org/r/61507 (Gerrit Change I846682b975c8eb4f9d0b09c827d34a8cf130f54a) | change APPROVED and MERGED [by jenkins-bot]
Thanks, the information was utterly sufficient. The issue was a result of [1] and while I'm at it I fixed a "real" bug where $this->compileQueries( $desc ) would return -1 and break with $this->executeQueries( $this->m_queries[$qid] ) due to a problem when trying to access an array with index -1. [1] https://gerrit.wikimedia.org/r/#/c/44609/