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

Never mind. I just upgraded to 1.15 and now will test it with it.--Modest 16081982 06:19, 13 December 2010 (UTC)

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?

Not working with MW1.15.5 also
I added the following wikitext in one of my pages on my Mediawiki version 1.15 on my Debian Lenny system: {#qrcode:}} This is Test Page 2 and I get the following warning messages at the top of the page with NO QR Code image generated: Warning: file_put_contents(/usr/share/mediawiki-extensions/QrCode/phpqrcode/qrcode7AaP9U-errors.txt) function.file-put-contents: failed to open stream: Permission denied in /usr/share/mediawiki-extensions/QrCode/phpqrcode/qrtools.php on line 106 Also there is specific version of QRCode that I should be using with MW1.15? --Modest 16081982 06:23, 13 December 2010 (UTC)

QrCodes not placed on page?
It seems that the QrCodes on my pages are created, as i can see in my FTP program. The issue is that they don't appear on the page itself. I wrote a template for it, that worked a while for me. There are some pages that have the codes on the pages itself. The new created pages have the same template and the QrCode isn't showing up while it is created. Any idea?

What are the required folders on the server for this extension to have it worked and what CHMODS are required to those folders?