Extension talk:SemanticComments
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
SemanticComments Error Message when Running Jobs
We installed SemanticComments today and it looked good on our internal wiki. However, when we ran the runJobs script, we got an error. We have MediaWiki 1.20.2, Semantic MediaWiki 1.8 installed.
[root@gestalt-dev]# php runJobs.php FauxRequest::getRequestURL() not implemented Backtrace: #0 /usr/share/mediawiki-1.20.2/includes/WebRequest.php(1305): FauxRequest->notImplemented('FauxRequest::ge...') #1 /usr/share/mediawiki-1.20.2/extensions/SemanticComments/includes/CE_GlobalFunctions.php(96): FauxRequest->getRequestURL() #2 [internal function]: cefSetupExtension() #3 /usr/share/mediawiki-1.20.2/includes/Setup.php(551): call_user_func('cefSetupExtensi...') #4 /usr/share/mediawiki-1.20.2/maintenance/doMaintenance.php(103): require_once('/usr/share/medi...') #5 /usr/share/mediawiki-1.20.2/maintenance/runJobs.php(122): require_once('/usr/share/medi...') #6 {main} 129.83.31.2 20:18, 8 February 2013 (UTC)
- We currently have the same problem using mw 1.20.2.
- Quick and dirty workaround:
- Replace the include in LocalSettings.php with
if( !defined('DO_MAINTENANCE') )//do not include if running maintenance scripts { include_once("$IP/extensions/SemanticComments/SemanticComments.php"); enableSemanticComments(); }
- This will deactivate the extension for the running of the script and activate it for regular use of the wiki.
- Kind regards 80.149.87.126 11:26, 22 March 2013 (UTC)
- Update to the workaround: This will corrupt the Article has average rating property (until page is being purged or resaved). Uncool if you use the rating functionality and make changes that let the maintenancescript run over commented pages.
- Kind regards 80.149.87.126 08:32, 5 April 2013 (UTC)
- Sorry for the late reply. I did the same workaround when I ran into the problem, so it's nice to hear that fails so it can be fixed correctly. Most extensions don't access the request block. The workaround should be changed to access a global, and it should be applied there at least. Hypergrove (talk) 18:09, 30 April 2013 (UTC)
- Not sure if anyone is still using this, but I've been messing around with it. If you edit extensions/SemanticCOmments/includes/CE_GlobalFunctions.php and change it to look like this it better solves the issue and doesn't mess up the property
if( !defined('DO_MAINTENANCE') ) {
$url = $wgRequest->getRequestURL();
if( stripos( $url, $spns_text . ":SemanticComments" ) !== false
|| stripos( $url, $spns_text . "%3ASemanticComments" ) !== false ) {
$wgOut->addModules( 'ext.ce.comment.specialpage' );
} else {
$wgOut->addModules( 'ext.ce.comment' );
}
}
66.189.214.233 01:45, 11 July 2014 (UTC)
Minor Bug and update of the rating property
Hi and thanks for the port from smw+ - well done!
First, you should comment CE_Comment.js:386: alert("wgCEScriptPath="+wgCEScriptPath );
Somewhat irritates. ;)
Secondly, it seems, that Property:Article has average rating is not getting updated in my wiki after rating comments. Maybe because its language is set to german - any idea where to look after?
Thanks and kind regards 80.149.87.126 19:25, 21 March 2013 (UTC)
- Will do - thanks Hypergrove (talk) 18:11, 30 April 2013 (UTC)
Adding a comment deletes modification date
Hi,
using MW 1.20.2, SMW 1.8.0.2 and SemanticComments (Version 1.0) in german language, the saving of a comment deletes the system property 'Modification date' in my wiki.
Any idea where to look after?
thx and kind regards 80.149.87.126 12:23, 8 April 2013 (UTC)
- It may be a return value from a hook that's called during normal page save, saving pages in a way that doesn't call that hook. I'll look into it unless you get to it before me. Hypergrove (talk) 19:21, 30 April 2013 (UTC)
{{vardefine: ... showing on insall
I'm getting an odd error on install, where everything works correctly, but I'm seeing code/template bits in the display. In particular, {{#vardefine:resID|}}, {{#vardefine:myID|, and {{#vardefine:userimage| }} show up.
Screenshot here:http://prntscr.com/10gnco
Any idea what needs fixed? Aekki99 (talk) 18:26, 13 April 2013 (UTC)
- iss this still a problem Hypergrove (talk) 19:23, 30 April 2013 (UTC)
- Yup. No idea how to begin solving it, so I've just put it on the backburner. Let me know if more info would be helpful. Aekki99 (talk) 13:05, 1 May 2013 (UTC)
- #vardefine is a parser function from the variables extension -- it should be listed as a prerequisite, and I'll update the doc to that effect. Hypergrove (talk) 04:50, 26 June 2013 (UTC)
- Yup. No idea how to begin solving it, so I've just put it on the backburner. Let me know if more info would be helpful. Aekki99 (talk) 13:05, 1 May 2013 (UTC)
Using User pictures if availabe
It would be a great feature if user pictures/icons would be displayed if available instead of the standard icon.
There is a similar extension: http://www.mediawiki.org/wiki/Extension:WikiTweet unfortunately it is quite unmaintained. Maybe you can borrow some code from there. For the icons, it just looks for username.png (or .jpg) file and displays it if available. 178.190.75.68 07:57, 11 June 2013 (UTC)
- i agree - and it should come from Semantic Social Profile foaf:image property. However I'm noticing that right now, even when one is logged on, an IP address is shown, which needs to be fixed. Hypergrove (talk) 04:53, 26 June 2013 (UTC)
Retrieve a list of pages in a particular category with comments?
Is it possible to do this? What I really want is to be able to show a list of most recent comments within a certain category - right now, I can't discover a way to do this, because any ask referring to a category affects the comments themselves, and not the pages they attach to.
What would be ideal is if adding a comment to a page added a 'Has comments' sort of property to that page, so that one could search for pages in a category that also have comments.
Is this possible at all? Am I missing something important? I tried to poke around in help, but the link given on the Semantic Comments page (http://smwforum.ontoprise.com/smwforum/index.php/Help:SemanticComments_Extension) gives me a 403.
A few comments
I was just considering whether I should be using Semantic Forms as a means of building structured, queryable discussion pages when I stumbled on your promising extension! That was a welcome surprise. A few questions and comments:
- As can be seen on your own test page (http://www.bestpracticeswiki.net/view/Test_page), the user icon appears to be broken. Apparently, a default icon should be added to Template:Comment.
- The first time I tried, no comments were submitted even if new pages in the Comments namespace were created. I suspect that this may have something to do with the extension not being on friendly terms with internal links or other types of syntax.
- Once a comment is submitted, the page appears to be reloading forever. If you refresh the page, however, the comments does appear to have been added.
- Should this extension be regarded as the successor to Extension:SMWCollaboration (also listed here)? The description is similar, but much of the documentation was added a couple of months later (in March this year).
- What about subject headings? Can the rating option be switched off? Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2} 11:09, 4 July 2013 (UTC)
After Rating Article Parts of the Comment Header Disapear
Once I put a vote into the semantic comments system it will just be text that says 16x in a gray box. Everything else just disappears. 82.244.54.167 22:42, 17 July 2013 (UTC)
Error in MW 1.23, SMW 2.0
Hi, I just upgraded from MW 1.20, SMW 1.8.0.5 to MW 1.23 and SMW 2.0. I downloades SC for MW 1.23 and recieve the following error: Fatal error: Call to undefined function wfLoadExtensionMessages() in .../extensions/SemanticComments/includes/CE_GlobalFunctions.php on line 87 Krabina (talk) 10:11, 19 September 2014 (UTC)
- ah, the lastest dev version works! Krabina (talk) 10:14, 19 September 2014 (UTC)
- correction: it works, but it breaks Special:Specialpages:
- Warning: require_once(.../includes/SpecialPage.php) [function.require-once]: failed to open stream: No such file or directory in .../extensions/SemanticComments/specials/Comment/CE_CommentSpecial.php on line 37
- Fatal error: require_once() [function.require]: Failed opening required '.../includes/SpecialPage.php' (include_path='...:.../includes:.../languages:.../pear:.../vendor/phpunit/php-text-template:.../vendor/phpunit/php-timer:.../vendor/phpunit/php-file-iterator:.../vendor/phpunit/php-code-coverage:.../vendor/phpunit/phpunit:.../vendor/symfony/yaml:.:/usr/lib/php:/usr/local/lib/php') in .../extensions/SemanticComments/specials/Comment/CE_CommentSpecial.php on line 37 Krabina (talk) 08:14, 20 October 2014 (UTC)
Parser function not recognized
Whenever I typed in {{ShowComments|true}} to my installation, I get a template redlink.
I am running MW1.23, SMW2.0, ParserFunctions1.6, and Variables2.0.1 DaNASCAT (talk) 18:52, 27 December 2014 (UTC)
AjaxDispatcher deprecated
AjaxDispatcher will be removed from MediaWiki core with version 1.26. Since this extension probably uses it, it should be migrated to an API module as this e-mail suggests. There is also a tracking bug. Thanks and cheers [[kgh]] (talk) 15:02, 26 March 2015 (UTC)
Not working in MW 1.23.10 and SMW 2.2.2
I upgraded to MW 1.23.10 and SMW 2.2.2. No error messages are displayed but when you enter a comment, it says everything is fine, the page reloads, but then the comments are gone!
Can anybody confirm this? Krabina (talk) 08:53, 28 September 2015 (UTC)
Completely broken in MW 1.25
in MW 1.25 I can see the orange exclamation mark, but nothing else. It is not working at all. Krabina (talk) 15:21, 20 November 2015 (UTC)
- the solution for this is to replace
'dependencies' => array( 'ext.smw.sorttable' )
- with
'dependencies' => array( 'ext.smw.sorttable', 'ext.jquery.migration.browser.js', )
- in CE_GlobalFunctions.php on line 181. And to put the script ext.jquery.migration.browser.js from /extensions/SemanticResultFormats/resources/jquery/ to the scripts directory of SemanticComments.
- Then it seems to work, but no new comments can be added (see my remark "Not working in MW 1.23.10" below). Krabina (talk) 12:05, 11 December 2015 (UTC)
Not working in MW 1.27
Tried it on a fresh install on MS 1.27.
The yellow excamation mark is shown, but no form for entering comments.Console shows:
"Exception in module-execute in module ext.ce.comment:load.php:178:411
TypeError: $.browser is undefined TypeError: $.browser is undefined" Krabina (talk) 07:10, 29 September 2016 (UTC)