Extension talk:QrCode

I am getting the following error on using this extension on my MediaWiki 1.12 version:

Fatal error: Class 'Job' not found in /var/lib/mediawiki/extensions/QrCode/QrCode.php on line 162

The requirement does say 1.12 or above so it should have worked...Any ideas?

--Modest 16081982 22:44, 27 October 2010 (UTC)


 * I'm not sure when exactly the Job class was introduced, but from what I can judge, it has been in mw 1.6. Thus it should work with 1.12.

Can you check whether you have the /includes/JobQueue.php file? --Kwisatz

MW1.16 : Call to a member function addWikiText
Hi,

when saving page, I get following message in the apache logfile : PHP Fatal error: Call to a member function addWikiText on a non-object in /server/www/trunk/mediawiki/extensions/QrCode/QrCode.php on line 191

and following in the browser : Detected bug in an extension! Hook fnAddToWatch failed to return a value; should return true to continue hook processing or false to abort. Backtrace:
 * 1) 0 /server/www/trunk/mediawiki/includes/Article.php(2099): wfRunHooks('ArticleSaveComp...', Array)
 * 2) 1 /server/www/trunk/mediawiki/includes/Article.php(1791): Article->doEdit(MediaWiki wu...', '', 98)
 * 3) 2 /server/www/trunk/mediawiki/includes/EditPage.php(1047): Article->updateArticle(MediaWiki wu...', , false, false, false, )
 * 4) 3 /server/www/trunk/mediawiki/includes/EditPage.php(2552): EditPage->internalAttemptSave(false, false)
 * 5) 4 /server/www/trunk/mediawiki/includes/EditPage.php(389): EditPage->attemptSave
 * 6) 5 /server/www/trunk/mediawiki/includes/EditPage.php(271): EditPage->edit
 * 7) 6 /server/www/trunk/mediawiki/includes/Wiki.php(553): EditPage->submit
 * 8) 7 /server/www/trunk/mediawiki/includes/Wiki.php(70): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
 * 9) 8 /server/www/trunk/mediawiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
 * 10) 9 {main}

Any idea what's going on ? Adding a global $wgOut didn't help

Thanks

Use another URL
unfortunately label parameter gets sanitized. To specify an URL, code needs to be changed like this : public function showCode( $label = false ){ // Check for a provided label and use the page URL as default. // Also strip all non-alphanumeric characters if ( $label ) { if(eregi('^(http|https)://',$label)) { $this->_label = $label; } else { $this->_label = preg_replace("/[^0-9a-zA-Z_]+/", "", $label); } 			$this->_uploadComment = $label;	// should we sanitize this?