I am struggling to incorporate extra special properties link _EUSER or _CUSER into a wiki-page. I am trying to automatically display the authors of an article within this article.
What would this query look like? Thanks..
Content is available under CC BY-SA 3.0 unless otherwise noted.
I am struggling to incorporate extra special properties link _EUSER or _CUSER into a wiki-page. I am trying to automatically display the authors of an article within this article.
What would this query look like? Thanks..
MediaWiki 1.35.1 PHP 7.4.15 (apache2handler) MySQL 8.0.23 Semantic MediaWiki 3.2.2 Semantic Extra Special Properties 2.1.0
When running the php maintenance\update.php, Im getting the following error.
Importing from sesp.groups.json ...
... smw/schema:Group:Extra special properties ... [FAILED]
├ smw-schema-error-input-schema, property-group-schema.v1
└ smw-schema-error-violatio ... lue found, but an object is required
... smw/schema:Group:Exif special properties ... [FAILED]
├ smw-schema-error-input-schema, property-group-schema.v1
└ smw-schema-error-violatio ... lue found, but an object is required
... done.
Importing from smw.groups.json ...
... smw/schema:Group:Schema properties ...PHP Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267
Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267
[EXISTS,REPLACE]
... smw/schema:Group:Predefined properties ...PHP Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267
Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267
[EXISTS,REPLACE]
Any help would be great,
I think I read that it is now possible to extend SESP to include additional user defined properties. Am I understanding this correctly? If so, does anyone know off-hand if it is possible in theory for a site to add the user's real name to the list of SESP properties or user pages?
In my perfect world -- SESP would provide the number of duplicates for every file as a property so one could write a statement like:
[[{{{1}}}]] has {{#show:{{{1}}}|?Has Num Of Duplicates}} duplicates. Is that
Semantic Properties for Approval status do not update until the next page edit.
I was told that this problem would be fixed by upgrading to SMW 3.0.0, but it is not. Am I missing something?
In an enterprise environment, being able to query the page watchers would be a valuable feature. Can we add "Watch List Users" to SESP please?
Either update to SMW 3.0.0 or use cron to rebuild data for user pages on a regular basis or just refresh the respective user page after assigning a new user group.
The SESP parameter "_USERGROUP" which adds a property to user pages with the users assigned groups .. works well for built-in mw groups, however, I can not seem to get it to work for custom groups. For example, I add:
$wgGroupPermissions['team-A']['read'] = true;
to my LocalSettings.php and the group exists in the Modify User Rights spacial page
I add the user to the group "team-A" and that works well.
SESP however does not pick up on this.
Am I missing a step?
Can someone confirm this.
Works for me. You did refresh the semantic data of the respective user's page?
yes. i had to do that to get the custom groups to show in SESP.. but it seems that it's not tracking the updates even after I make sure the job queue is clear
See the issue on GitHub
How hard would it be to get a CDATE magic word from SESP that provides the page creation date similar to the CUSER magic word that provides the User who created the page.
I've been attempting to write an #ask query that excludes the current page from the result set. I found it discussed here: http://smw.referata.com/wiki/Excluding_a_page_from_an_inline_query
I enabled the _REVID extra special property, ran the maintenance task SMW_refreshData.php, and waited for it to finish.
My query is very simple, but doesn't exclude the current page:
{{#ask: [[Category:MyCategory]] [[Revision ID::!{{REVISIONID}}]] |format=ul }}
When I embed {{REVISIONID}}
in the page, I get the correct revision number: 22586
When I view Browse Properties, I get a completely different number: 1136
Not sure what to try next.
I seem to be experiencing this as well. Is there an explanation to this problem? @MWJames, are you saying there is solution to this issue? I read the github link you provided, but I couldn't figure out what I was supposed to be learning from the comment that applies to this issue. Can you clarify, please?
Installing manually without Composer is not possible. A individual file release is a way out.
Hi,
I've tried to install this extension without Composer by adding the following line to LocalSettings.php:
require_once("$IP/extensions/SemanticExtraSpecialProperties/SemanticExtraSpecialProperties.php");
However, I get a white screen with the following error message. Could this be a problem with the extension loader? Any pointers welcome.
TIA
Frank
MediaWiki 1.27.4 | PHP 5.6.25 | Semantic MediaWiki 2.5.6 | BlueSpice 2.27.3
/hamwiki/ MWException from line 176 of /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Hooks.php: Invalid callback \SESP\HookRegistry::onBeforeConfigCompletion in hooks for SMW::Config::BeforeCompletion Backtrace: #0 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Settings.php(181): Hooks::run(string, array) #1 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/Services/SharedServicesContainer.php(69): SMW\Settings::newFromGlobals() #2 [internal function]: SMW\Services\SharedServicesContainer->SMW\Services\{closure}(Onoi\CallbackContainer\CallbackContainerBuilder) #3 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(260): call_user_func_array(Closure, array) #4 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(288): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromCallbackHandlerFor(string, array) #5 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(195): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromSingletonFor(string, array) #6 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/ApplicationFactory.php(230): Onoi\CallbackContainer\CallbackContainerBuilder->singleton(string) #7 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/MediaWiki/MwCollaboratorFactory.php(149): SMW\ApplicationFactory->getSettings() #8 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(108): SMW\MediaWiki\MwCollaboratorFactory->newMediaWikiDatabaseConnectionProvider(string) #9 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(55): SMW\Setup->registerConnectionProviders() #10 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(132): SMW\Setup->run() #11 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(54): SemanticMediaWiki::onExtensionFunction() #12 [internal function]: SemanticMediaWiki::{closure}() #13 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Setup.php(838): call_user_func(Closure) #14 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/WebStart.php(137): require_once(string) #15 /opt/rh/httpd24/root/var/www/html/hamwiki/index.php(40): require(string) #16 {main}
You could do something like an individual file release on a laptop or so which has Composer and move over the files to your webspace.