It seems that the Edit Semantic tab will be available for anonymous user as well. How to set a GroupPermission that only allow registered user to have this privilege and not show this tab for anonymous ?
Extension talk:PageProperties
hello @Lotusccong yes, this is a so to say pre-production version (a production version should be 1.2.5, where this feature is expected to come). So by now there is a system of privileges, but disabled for the mere access to pages. I hope in 2-3 weeks I'll be able to release it !
@Lotusccong done! see section Extension:PageProperties#Rights and privileges !
Hi Thomas, yes, it's working after upgrade to 1.2.4c version. Keep the good works. PageProperties is one of my favourite extensions.
great, if you are using it for professional use, I did a little upgrade yesterday https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageProperties/+/refs/heads/master%5E%21/#F3
Hi, my platform is 1.36. After I installed the extension, all pages in my wiki occured error as below:
EasyRdf\Parser\Exception: XML error: "XML_WAR_NS_URI" on line 44, column 4
Backtrace:
from /var/lib/mediawiki/extensions/PageProperties/vendor/easyrdf/easyrdf/lib/Parser/RdfXml.php(811)
#0 /var/lib/mediawiki/extensions/PageProperties/vendor/easyrdf/easyrdf/lib/Graph.php(245): EasyRdf\Parser\RdfXml->parse()
#1 /var/lib/mediawiki/extensions/PageProperties/vendor/easyrdf/easyrdf/lib/Graph.php(370): EasyRdf\Graph->parse()
#2 /var/lib/mediawiki/extensions/PageProperties/includes/PageProperties.php(249): EasyRdf\Graph->load()
#3 /var/lib/mediawiki/includes/HookContainer/HookContainer.php(338): PageProperties::BeforePageDisplay()
#4 /var/lib/mediawiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#5 /var/lib/mediawiki/includes/HookContainer/HookRunner.php(1000): MediaWiki\HookContainer\HookContainer->run()
#6 /var/lib/mediawiki/includes/OutputPage.php(2629): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay()
#7 /var/lib/mediawiki/includes/MediaWiki.php(927): OutputPage->output()
#8 /var/lib/mediawiki/includes/MediaWiki.php(940): MediaWiki::{closure}()
#9 /var/lib/mediawiki/includes/MediaWiki.php(546): MediaWiki->main()
#10 /var/lib/mediawiki/index.php(53): MediaWiki->run()
#11 /var/lib/mediawiki/index.php(46): wfIndexMain()
#12 {main}
How can I fix it? Thanks!@Thomas-topway-it
@JayLiu7319 I'm not sure, can you try to install semsol/arc2 and using the following
$parser = ARC2::getRDFParser( ); $parser->parse( $rdf_export ); $serialiser = ARC2::getSer('JSONLD'); $triples = $parser->getTriples(); $index = $parser->getSimpleIndex( $triples, false ); //$index = $parser->getSimpleIndex( 0 ); $output = $serialiser->getSerializedIndex($index);
in the function includes/PageProperties.php => BeforePageDisplay
instead than
$foaf = new \EasyRdf\Graph( $rdf_export ); $foaf->load(); $format = \EasyRdf\Format::getFormat( 'jsonld' ); $output = $foaf->serialise( $format, [ 'compact' => true, ] );
Thank you very much! @Thomas-topway-it It works!
so EasyRDF is not working and ARC2 does ?
I think we should investigate more about that ...
Hello. i tried to install but "php maintenance/update.php" doesnt work and an error occurs. this is error log:
[25-Jul-2022 23:01:17 Europe/Rome] PHP Fatal error: Uncaught Error: Non-static method PageProperties::__constructStatic() cannot be called statically in /home/public_html/wiki/extensions/PageProperties/includes/PageProperties.php:715
Stack trace:
#0 /home/public_html/wiki/includes/AutoLoader.php(116): require()
#1 [internal function]: AutoLoader::autoload('PageProperties')
#2 /home/public_html/wiki/includes/registration/ExtensionRegistry.php(568): is_callable('PageProperties:...')
#3 /home/public_html/wiki/includes/registration/ExtensionRegistry.php(258): ExtensionRegistry->exportExtractedData(Array)
#4 /home/public_html/wiki/includes/Setup.php(252): ExtensionRegistry->loadFromQueue()
#5 /home/public_html/wiki/maintenance/doMaintenance.php(96): require_once('/home/...')
#6 /home/public_html/wiki/maintenance/update.php(264): require_once('/home/...')
#7 {main}
thrown in /home/public_html/wiki/extensions/PageProperties/includes/PageProperties.php on line 715
@Brunodapei we are reviewing this extension right now, it could take a few days more ...
@Brunodapei Can you check the latest version ? (1.02) the error should have been fixed
I tried. but the error now is:
[YuhTRtLN0XNfzjNi9D_4-AAAmg8] /wiki/Dapei EasyRdf\Http\Exception: HTTP request for https://www.wikimilano.it/wiki/Speciale:ExportRDF/Bruno_Dapei?recursive=1&backlinks=0 failed: Not Found
Backtrace:
from /home/public_html/wiki/extensions/PageProperties/vendor/easyrdf/easyrdf/lib/Graph.php(354)
#0 /home/public_html/wiki/extensions/PageProperties/includes/PageProperties.php(249): EasyRdf\Graph->load()
#1 /home/public_html/wiki/includes/HookContainer/HookContainer.php(338): PageProperties::BeforePageDisplay(OutputPage, Vector\SkinVector)
#2 /home/public_html/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#3 /home/public_html/wiki/includes/HookContainer/HookRunner.php(939): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#4 /home/public_html/wiki/includes/OutputPage.php(2802): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, Vector\SkinVector)
#5 /home/public_html/wiki/includes/MediaWiki.php(926): OutputPage->output(boolean)
#6 /home/public_html/wiki/includes/MediaWiki.php(939): MediaWiki::{closure}()
#7 /home/public_html/wiki/includes/MediaWiki.php(563): MediaWiki->main()
#8 /home/public_html/wiki/index.php(53): MediaWiki->run()
#9 /home/public_html/wiki/index.php(46): wfIndexMain()
#10 {main}
@Brunodapei I saw it just now, this is because you haven't Semantic Mediawiki installed, in this case just remove easyrdf and ml/json-ld using composer
Hi, this isn't working on 1.35. But it works on 1.37. Would it be possible to update it to allow it to work on 1.35?
@InnerCitadel I'll check it soon, I did not realize there was an issue on 1.35
@InnerCitadel hello, the latest version (1.02) should work on 1.35 as well !
@Thomas-topway-it Thank you it works great!
I've tried to install this but the special pages don't show up and when trying to access Special:SpecialPages I get get an error: [997d297178632560cb2cb442] /wiki/Special:SpecialPages Wikimedia\Services\NoSuchServiceException from line 468 of /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php: No such service: WikiPageFactory
I'm running MediaWiki 1.35.5, PHP 7.4.3, MariaDB 10.3.34, Semantic MediaWiki 4.0.1
I've tried all three available branches: main, master, and REL1_38
Full error:
[997d297178632560cb2cb442] /wiki/Special:SpecialPages Wikimedia\Services\NoSuchServiceException from line 468 of /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php: No such service: WikiPageFactory Backtrace:
- 0 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
- 1 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(424): Wikimedia\Services\ServiceContainer->getService()
- 2 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(161): Wikimedia\Services\ServiceContainer->get()
- 3 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(102): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
- 4 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(470): Wikimedia\ObjectFactory\ObjectFactory->createObject()
- 5 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(502): MediaWiki\SpecialPage\SpecialPageFactory->getPage()
- 6 /var/www/mediawiki/includes/specials/SpecialSpecialpages.php(56): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages()
- 7 /var/www/mediawiki/includes/specials/SpecialSpecialpages.php(44): SpecialSpecialpages->getPageGroups()
- 8 /var/www/mediawiki/includes/specialpage/SpecialPage.php(600): SpecialSpecialpages->execute()
- 9 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
- 10 /var/www/mediawiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- 11 /var/www/mediawiki/includes/MediaWiki.php(945): MediaWiki->performRequest()
- 12 /var/www/mediawiki/includes/MediaWiki.php(548): MediaWiki->main()
- 13 /var/www/mediawiki/index.php(53): MediaWiki->run()
- 14 /var/www/mediawiki/index.php(46): wfIndexMain()
- 15 {main}
@InnerCitadel this should have been fixed in the latest version, 1.02
Hi, where exactly to create feature requests and bug reports?
Because the updated library is on gerrit (rather than on github) I think this talk page would be a good fit provided that the user who posts a comment receives an email notification. If not, I would consider an alternate solution. (Thomas)
Thanks. Could you please explicitly state on the extension homepage where to post feature requests and bug reports? Phabricator is always offered for project planning and ticket management. However, if the extension talk page is preferred instead, then folks could close any potential issues brought up in Phabricator and point people to the extension talk page instead.
hello Andre, an optimal way it is to use the Issue tracker as in this page Extension:Newsletter, I will check it out as soon as possible. (Thomas)
Hi, if you'd like to have a project in Phabricator and use Phabricator for issue tracking, it would be very welcome. :) See the link I provided in my previous comment to request a project tag in Phabricator for this extension.
There are no older topics