Last modified: 2012-11-03 09:45:29 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 T43685, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41685 - SMW 1.8 / MW 1.21 Call to undefined method Job::extractBlob()
SMW 1.8 / MW 1.21 Call to undefined method Job::extractBlob()
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: MWJames
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-02 11:07 UTC by MWJames
Modified: 2012-11-03 09:45 UTC (History)
2 users (show)

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


Attachments

Description MWJames 2012-11-02 11:07:49 UTC
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 );
Comment 1 MWJames 2012-11-02 11:12:13 UTC
This should be it https://gerrit.wikimedia.org/r/#/c/31373/

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


Navigation
Links