Extension talk:PageProperties

About this board

what about wikienterprise.org ?

5
Wladek92 (talkcontribs)
Thomas-topway-it (talkcontribs)

@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

Wladek92 (talkcontribs)
Thomas-topway-it (talkcontribs)
Thomas-topway-it (talkcontribs)
Reply to "what about wikienterprise.org ?"
Lotusccong (talkcontribs)

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 ?

Thomas-topway-it (talkcontribs)

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 (talkcontribs)
Lotusccong (talkcontribs)

Hi Thomas, yes, it's working after upgrade to 1.2.4c version. Keep the good works. PageProperties is one of my favourite extensions.

Thomas-topway-it (talkcontribs)
Reply to "Edit Semantic"

XML error: "XML_WAR_NS_URI" on line 44

4
JayLiu7319 (talkcontribs)

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

Thomas-topway-it (talkcontribs)

@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,
				] );
JayLiu7319 (talkcontribs)
Thomas-topway-it (talkcontribs)

@JayLiu7319

so EasyRDF is not working and ARC2 does ?

I think we should investigate more about that ...

Reply to "XML error: "XML_WAR_NS_URI" on line 44"

Error when installing on 1.38

5
Brunodapei (talkcontribs)

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

Thomas-topway-it (talkcontribs)

@Brunodapei we are reviewing this extension right now, it could take a few days more ...

Thomas-topway-it (talkcontribs)

@Brunodapei Can you check the latest version ? (1.02) the error should have been fixed

Brunodapei (talkcontribs)

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}

Thomas-topway-it (talkcontribs)

@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

Reply to "Error when installing on 1.38"

Only working of 1.37

4
InnerCitadel (talkcontribs)

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?

Thomas-topway-it (talkcontribs)

@InnerCitadel I'll check it soon, I did not realize there was an issue on 1.35

Thomas-topway-it (talkcontribs)

@InnerCitadel hello, the latest version (1.02) should work on 1.35 as well !

InnerCitadel (talkcontribs)
Reply to "Only working of 1.37"

"No such service: WikiPageFactory"

2
InnerCitadel (talkcontribs)

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}
Thomas-topway-it (talkcontribs)

@InnerCitadel this should have been fixed in the latest version, 1.02

Reply to ""No such service: WikiPageFactory""
AKlapper (WMF) (talkcontribs)

Hi, where exactly to create feature requests and bug reports?

Thomas-topway-it (talkcontribs)

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)

AKlapper (WMF) (talkcontribs)

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) (talkcontribs)
Thomas-topway-it (talkcontribs)
AKlapper (WMF) (talkcontribs)

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.

Reply to "Issue tracker"
There are no older topics
Return to "PageProperties" page.