Jump to content

Extension talk:PageProperties

Add topic
From mediawiki.org

Issue tracker

[edit]

Hi, where exactly to create feature requests and bug reports? AKlapper (WMF) (talk) 13:45, 15 February 2022 (UTC)Reply

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) Thomas-topway-it (talk) 14:26, 15 February 2022 (UTC)Reply
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. AKlapper (WMF) (talk) 18:12, 15 February 2022 (UTC)Reply
@Thomas-topway-it ^ AKlapper (WMF) (talk) 14:33, 17 February 2022 (UTC)Reply
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) Thomas-topway-it (talk) 14:49, 17 February 2022 (UTC)Reply
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. AKlapper (WMF) (talk) 15:22, 17 February 2022 (UTC)Reply

"No such service: WikiPageFactory"

[edit]

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:

  1. 0 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
  2. 1 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(424): Wikimedia\Services\ServiceContainer->getService()
  3. 2 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(161): Wikimedia\Services\ServiceContainer->get()
  4. 3 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(102): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
  5. 4 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(470): Wikimedia\ObjectFactory\ObjectFactory->createObject()
  6. 5 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(502): MediaWiki\SpecialPage\SpecialPageFactory->getPage()
  7. 6 /var/www/mediawiki/includes/specials/SpecialSpecialpages.php(56): MediaWiki\SpecialPage\SpecialPageFactory->getUsablePages()
  8. 7 /var/www/mediawiki/includes/specials/SpecialSpecialpages.php(44): SpecialSpecialpages->getPageGroups()
  9. 8 /var/www/mediawiki/includes/specialpage/SpecialPage.php(600): SpecialSpecialpages->execute()
  10. 9 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
  11. 10 /var/www/mediawiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
  12. 11 /var/www/mediawiki/includes/MediaWiki.php(945): MediaWiki->performRequest()
  13. 12 /var/www/mediawiki/includes/MediaWiki.php(548): MediaWiki->main()
  14. 13 /var/www/mediawiki/index.php(53): MediaWiki->run()
  15. 14 /var/www/mediawiki/index.php(46): wfIndexMain()
  16. 15 {main} InnerCitadel (talk) 09:48, 26 April 2022 (UTC)Reply
@InnerCitadel this should have been fixed in the latest version, 1.02 Thomas-topway-it (talk) 09:19, 27 July 2022 (UTC)Reply

Only working of 1.37

[edit]

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 (talk) 22:21, 30 April 2022 (UTC)Reply

@InnerCitadel I'll check it soon, I did not realize there was an issue on 1.35 Thomas-topway-it (talk) 17:54, 3 May 2022 (UTC)Reply
@InnerCitadel hello, the latest version (1.02) should work on 1.35 as well ! Thomas-topway-it (talk) 09:18, 27 July 2022 (UTC)Reply
@Thomas-topway-it Thank you it works great! InnerCitadel (talk) 09:32, 27 July 2022 (UTC)Reply

Error when installing on 1.38

[edit]

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 (talk) 21:13, 25 July 2022 (UTC)Reply

@Brunodapei we are reviewing this extension right now, it could take a few days more ... Thomas-topway-it (talk) 09:28, 26 July 2022 (UTC)Reply
@Brunodapei Can you check the latest version ? (1.02) the error should have been fixed Thomas-topway-it (talk) 09:17, 27 July 2022 (UTC)Reply
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 (talk) 22:29, 1 August 2022 (UTC)Reply
@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 Thomas-topway-it (talk) 15:30, 3 August 2022 (UTC)Reply

XML error: "XML_WAR_NS_URI" on line 44

[edit]

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 (talk) 12:03, 1 August 2022 (UTC)Reply

@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,
				] );
Thomas-topway-it (talk) 18:46, 1 August 2022 (UTC)Reply
Thank you very much! @Thomas-topway-it It works! JayLiu7319 (talk) 05:36, 7 August 2022 (UTC)Reply
@JayLiu7319
so EasyRDF is not working and ARC2 does ?
I think we should investigate more about that ... Thomas-topway-it (talk) 09:50, 10 August 2022 (UTC)Reply

Edit Semantic

[edit]

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 ? Lotusccong (talk) 10:01, 5 January 2023 (UTC)Reply

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 ! Thomas-topway-it (talk) 09:31, 6 January 2023 (UTC)Reply
@Lotusccong done! see section Extension:PageProperties#Rights and privileges ! Thomas-topway-it (talk) 11:22, 9 January 2023 (UTC)Reply
Hi Thomas, yes, it's working after upgrade to 1.2.4c version. Keep the good works. PageProperties is one of my favourite extensions. Lotusccong (talk) 14:56, 9 January 2023 (UTC)Reply
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 Thomas-topway-it (talk) 07:41, 11 January 2023 (UTC)Reply

what about wikienterprise.org ?

[edit]

@Thomas-topway-it Related to question -> https://www.mediawiki.org/wiki/Project:Support_desk/Flow/2023/11#h-what_about_wikienterprise.org_?-20231118155500 what is the status of wikienterprise.org ? The site seems not to accept any Logon account creation and remains in a non updated state concerning the described extension.

Additionally some security problems appear with certificate too old when accessing the main page -> NET::ERR_CERT_DATE_INVALID

Thanks -- Christian 🇫🇷 FR (talk) 20:57, 18 November 2023 (UTC)Reply

@Wladek92 hello Christian I've fixed the certificate issue at wikienterprise. The installed version of PageProperties should be the latest. However I'm working on a much powerful version that I hope to publish in about 1 week, if possible less.
Here you can see a demo
https://wikisphere.org/wiki/Test_pageproperties_2.0
I will post more demo as long as I can release the new version on Gerrit and update the extension page Thomas-topway-it (talk) 20:57, 20 November 2023 (UTC)Reply
good for certificates. Concerning https://wikisphere.org/w/index.php?title=Test_pageproperties_2.0&action=editsemantic i still get the "outdated" message... although it seems to be the latest version as you say.
Editing Test pageproperties 2.0 (semantic)
This version of PageProperties is outdated. Update
....
--Christian 🇫🇷 FR (talk) 21:36, 20 November 2023 (UTC)Reply
@Wladek92 this happened because the extension page wasn't yet updated, and the related version number. Now it is Extension:PageProperties Thomas-topway-it (talk) 23:36, 9 December 2023 (UTC)Reply
@Wladek92 just updated Wikienterprise https://wikienterprise.org/wiki/Main_Page that can also be used as a sandbox for PageProperties Thomas-topway-it (talk) 14:14, 10 December 2023 (UTC)Reply

Incorrect namespace capitalization in includes/aliases/Html.php

[edit]

Incorrect namespace capitalization in includes/aliases/Html.php

On MediaWiki 1.45.4, PageProperties can fail when displaying a page with the following error:

Error: Class "Mediawiki\Html\Html" not found

The stack trace points to includes/aliases/Html.php, line 32, called by PageProperties::setJsonLD().

Changing Mediawiki\Html\Html to MediaWiki\Html\Html resolved the error.

I also checked the code intended for MediaWiki 1.46 and found the same lowercase w. Could this capitalization be corrected there as well? Quīlubet (talk) 08:48, 22 September 2026 (UTC)Reply