Page MenuHomePhabricator

SMW 1.8 / MW 1.21 Call to undefined method Job::extractBlob()
Closed, ResolvedPublic

Description

Probably through the JobQueue re-design in MW 1.21 SMW_SpecialSMWAdmin.php throws now an error:

Fatal error: Call to undefined method Job::extractBlob() in ...\SemanticMediaWiki\specials\SMWAdmin\SMW_SpecialSMWAdmin.php on line 48

Well extractBlob() didn't do much other than doing an unserialize:

if ( (string)$blob !== '' ) {
return unserialize( $blob );
} else {
return false;
}

Therefore we do it ourselves:

$blob = (string)$row->job_params !== '' ? unserialize( $row->job_params ) : false;
$refreshjob = Job::factory( $row->job_cmd, $title, $blob, $row->job_id );


Version: unspecified
Severity: normal

Details

Reference
bz41685

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:06 AM
bzimport set Reference to bz41685.