Page MenuHomePhabricator

rebuildall.php job fails with fatal error in SMW_SQLStore2.php
Closed, ResolvedPublic

Description

Author: rjchallen

Description:
Following these instructions:

http://www.mediawiki.org/wiki/Manual:Moving_a_wiki
http://lists.wikimedia.org/pipermail/mediawiki-l/2008-August/028294.html

resulted in a wiki where the pages all were reproduced, their history could be reviewed but had no displayable content but in them, and could not be edited. Presumably because of some breakage between the version numbering.

Calling a rebuildall.php or a SMW_refreshData.php on the migrated wiki does not seem to work.

PHP Fatal error: Call to a member function isValid() on a non-object in /usr/local/apache2/htdocs/informatics/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 776

Version details:
MediaWiki 1.15.1
PHP 5.3.0 (apache2handler)
MySQL 5.1.37
Semantic MediaWiki (Version 1.5.1.1)


Version: unspecified
Severity: major
OS: Linux

Details

Reference
bz24363

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport set Reference to bz24363.

Note - I'm working with Rob on this one (I'm the sysadmin for the server we're trying to put it on). The MySQL is actually 5.0.77 and the PHP is 5.1.6, both the system packages from RHEL 5.5.

rjchallen wrote:

The root cause looks like it is a Latin1 / UTF8 encoding mix up during the database dump (ahem). Will try and confirm whether the problem persists when we have corrected this.

The root cause for the problem showing up, however, was a wrong check in SMW: it was ensured that the value was not "null" but it should have been checked that it was not "false". So the above error is now fixed (hence the topic of this bug, which I close now). The fix will be released in SMW 1.5.2.