Discussion:
[Semediawiki-user] PageForms 4.1.2 on MW 1.28.0
Phil Legault
2017-07-21 14:06:27 UTC
Permalink
I run update.php and get the following,

...ldap_domains table already exists.
...hitcounter table does not exist, skipping modify field patch.
...hit_counter_extension table already exists.
...hit_counter table already exists.
...page table does not contain page_counter field.

Selected storage engine is "SMWSQLStore3" (or an extension thereof)

Setting up standard database configuration for SMW ...


And on the trace:


[cb361b7ee6bac337637b063f] /index.php/Main_Page MWException from line 176 of /app/mediawiki/mw/includes/Hooks.php: Invalid callback PFHooks::initProperties in hooks for smwInitProperties

Backtrace:

#0 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyRegistry.php(500): Hooks::run(string)
#1 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyRegistry.php(86): SMW\PropertyRegistry->registerPredefinedProperties(boolean)
#2 /app/mediawiki/mw/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(90): SMW\PropertyRegistry::getInstance()
#3 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/DataItemFactory.php(44): SMW\DIProperty->__construct(string, boolean)
#4 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyAnnotators/SortKeyPropertyAnnotator.php(38): SMW\DataItemFactory->newDIProperty(string)
#5 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyAnnotators/PropertyAnnotatorDecorator.php(61): SMW\PropertyAnnotators\SortKeyPropertyAnnotator->addPropertyValues()
#6 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/ParserAfterTidy.php(164): SMW\PropertyAnnotators\PropertyAnnotatorDecorator->addAnnotation()
#7 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/ParserAfterTidy.php(121): SMW\MediaWiki\Hooks\ParserAfterTidy->updateAnnotationsOnAfterParse(SMW\PropertyAnnotatorFactory, SMW\SemanticData)
#8 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/ParserAfterTidy.php(77): SMW\MediaWiki\Hooks\ParserAfterTidy->performUpdate(string)
#9 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php(166): SMW\MediaWiki\Hooks\ParserAfterTidy->process(string)
#10 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(Parser, string)
#11 /app/mediawiki/mw/includes/Hooks.php(195): call_user_func_array(Closure, array)
#12 /app/mediawiki/mw/includes/parser/Parser.php(1397): Hooks::run(string, array)
#13 /app/mediawiki/mw/includes/parser/Parser.php(444): Parser->internalParseHalfParsed(string, boolean, boolean)
#14 /app/mediawiki/mw/extensions/DynamicPageList/classes/Parse.php(945): Parser->parse(string, Title, ParserOptions)
#15 /app/mediawiki/mw/extensions/DynamicPageList/classes/Parse.php(380): DPL\Parse->triggerEndResets(string, NULL, NULL, boolean)
#16 /app/mediawiki/mw/extensions/DynamicPageList/DynamicPageList.hooks.php(307): DPL\Parse->parse(string, Parser, NULL, NULL, boolean)
#17 [internal function]: DynamicPageListHooks::dplParserFunction(Parser, string, string, string, string, string)
#18 /app/mediawiki/mw/includes/parser/Parser.php(3379): call_user_func_array(array, array)
#19 /app/mediawiki/mw/includes/parser/Parser.php(3103): Parser->callParserFunction(PPFrame_DOM, string, array)
#20 /app/mediawiki/mw/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
#21 /app/mediawiki/mw/includes/parser/Parser.php(2917): PPFrame_DOM->expand(PPNode_DOM, integer)
#22 /app/mediawiki/mw/includes/parser/Parser.php(1265): Parser->replaceVariables(string)
#23 /app/mediawiki/mw/includes/parser/Parser.php(441): Parser->internalParse(string)
#24 /app/mediawiki/mw/includes/content/WikitextContent.php(330): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#25 /app/mediawiki/mw/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#26 /app/mediawiki/mw/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#27 /app/mediawiki/mw/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#28 /app/mediawiki/mw/includes/page/Article.php(651): PoolCounterWork->execute()
#29 /app/mediawiki/mw/includes/actions/ViewAction.php(71): Article->view()
#30 /app/mediawiki/mw/includes/MediaWiki.php(495): ViewAction->show()
#31 /app/mediawiki/mw/includes/MediaWiki.php(289): MediaWiki->performAction(Article, Title)
#32 /app/mediawiki/mw/includes/MediaWiki.php(851): MediaWiki->performRequest()
#33 /app/mediawiki/mw/includes/MediaWiki.php(512): MediaWiki->main()
#34 /app/mediawiki/mw/index.php(43): MediaWiki->run()
#35 {main}
Yaron Koren
2017-07-21 14:25:42 UTC
Permalink
Hi,

A web search reveals that you had this same problem last year:

https://sourceforge.net/p/semediawiki/mailman/message/35537332/

As before, I don't know what the cause is. I would do a search through your
code for "PFHooks::initProperties" (a method that was removed a long time
ago) to see where it's getting called.

-Yaron
Post by Phil Legault
I run update.php and get the following,
...ldap_domains table already exists.
...hitcounter table does not exist, skipping modify field patch.
...hit_counter_extension table already exists.
...hit_counter table already exists.
...page table does not contain page_counter field.
Selected storage engine is "SMWSQLStore3" (or an extension thereof)
Setting up standard database configuration for SMW ...
[cb361b7ee6bac337637b063f] /index.php/Main_Page MWException from line 176
of /app/mediawiki/mw/includes/Hooks.php: Invalid callback
PFHooks::initProperties in hooks for smwInitProperties
Hooks::run(string)
SMW\PropertyRegistry->registerPredefinedProperties(boolean)
#2 /app/mediawiki/mw/extensions/SemanticMediaWiki/includes/
dataitems/SMW_DI_Property.php(90): SMW\PropertyRegistry::getInstance()
SMW\DIProperty->__construct(string, boolean)
#4 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyAnnotators/
SortKeyPropertyAnnotator.php(38): SMW\DataItemFactory->
newDIProperty(string)
#5 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/PropertyAnnotators/
PropertyAnnotatorDecorator.php(61): SMW\PropertyAnnotators\
SortKeyPropertyAnnotator->addPropertyValues()
SMW\PropertyAnnotators\PropertyAnnotatorDecorator->addAnnotation()
SMW\MediaWiki\Hooks\ParserAfterTidy->updateAnnotationsOnAfterParse(SMW\PropertyAnnotatorFactory,
SMW\SemanticData)
SMW\MediaWiki\Hooks\ParserAfterTidy->performUpdate(string)
#9 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
MediaWiki/Hooks/HookRegistry.php(166): SMW\MediaWiki\Hooks\
ParserAfterTidy->process(string)
#10 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(Parser,
string)
call_user_func_array(Closure, array)
Hooks::run(string, array)
#13 /app/mediawiki/mw/includes/parser/Parser.php(444): Parser->
internalParseHalfParsed(string, boolean, boolean)
Parser->parse(string, Title, ParserOptions)
DPL\Parse->triggerEndResets(string, NULL, NULL, boolean)
#16 /app/mediawiki/mw/extensions/DynamicPageList/
DynamicPageList.hooks.php(307): DPL\Parse->parse(string, Parser, NULL,
NULL, boolean)
#17 [internal function]: DynamicPageListHooks::dplParserFunction(Parser,
string, string, string, string, string)
call_user_func_array(array, array)
Parser->callParserFunction(PPFrame_DOM, string, array)
Parser->braceSubstitution(array, PPFrame_DOM)
PPFrame_DOM->expand(PPNode_DOM, integer)
Parser->replaceVariables(string)
Parser->internalParse(string)
Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean,
ParserOutput)
AbstractContent->getParserOutput(Title, integer, ParserOptions)
PoolWorkArticleView->doWork()
PoolCounterWork->execute()
#29 /app/mediawiki/mw/includes/actions/ViewAction.php(71): Article->view()
#30 /app/mediawiki/mw/includes/MediaWiki.php(495): ViewAction->show()
MediaWiki->performAction(Article, Title)
MediaWiki->performRequest()
#33 /app/mediawiki/mw/includes/MediaWiki.php(512): MediaWiki->main()
#34 /app/mediawiki/mw/index.php(43): MediaWiki->run()
#35 {main}
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
Laurent Alquier
2017-07-22 02:49:55 UTC
Permalink
Hi Yaron

I didn't see an update from Phil (unless he replied directly) so here is
one.

We didn't find the root cause of the issue but we did find an indirect
cause for it.

If we use the 4.1.2 'download' link on the Page Form Install page, the
error happens.
If we use the latest snapshot from git, everything is fine.

- Laurent
Post by Yaron Koren
Hi,
https://sourceforge.net/p/semediawiki/mailman/message/35537332/
As before, I don't know what the cause is. I would do a search through your
code for "PFHooks::initProperties" (a method that was removed a long time
ago) to see where it's getting called.
-Yaron
Post by Phil Legault
I run update.php and get the following,
...ldap_domains table already exists.
...hitcounter table does not exist, skipping modify field patch.
...hit_counter_extension table already exists.
...hit_counter table already exists.
...page table does not contain page_counter field.
Selected storage engine is "SMWSQLStore3" (or an extension thereof)
Setting up standard database configuration for SMW ...
[cb361b7ee6bac337637b063f] /index.php/Main_Page MWException from line 176
of /app/mediawiki/mw/includes/Hooks.php: Invalid callback
PFHooks::initProperties in hooks for smwInitProperties
#0 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
Hooks::run(string)
#1 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
SMW\PropertyRegistry->registerPredefinedProperties(boolean)
#2 /app/mediawiki/mw/extensions/SemanticMediaWiki/includes/
dataitems/SMW_DI_Property.php(90): SMW\PropertyRegistry::getInstance()
#3 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
SMW\DIProperty->__construct(string, boolean)
#4 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
PropertyAnnotators/
Post by Phil Legault
SortKeyPropertyAnnotator.php(38): SMW\DataItemFactory->
newDIProperty(string)
#5 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
PropertyAnnotators/
Post by Phil Legault
PropertyAnnotatorDecorator.php(61): SMW\PropertyAnnotators\
SortKeyPropertyAnnotator->addPropertyValues()
#6 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/
SMW\PropertyAnnotators\PropertyAnnotatorDecorator->addAnnotation()
#7 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/
SMW\MediaWiki\Hooks\ParserAfterTidy->updateAnnotationsOnAfterParse(
SMW\PropertyAnnotatorFactory,
Post by Phil Legault
SMW\SemanticData)
#8 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/
SMW\MediaWiki\Hooks\ParserAfterTidy->performUpdate(string)
#9 /app/mediawiki/mw/extensions/SemanticMediaWiki/src/
MediaWiki/Hooks/HookRegistry.php(166): SMW\MediaWiki\Hooks\
ParserAfterTidy->process(string)
#10 [internal function]: SMW\MediaWiki\Hooks\
HookRegistry->SMW\MediaWiki\Hooks\{closure}(Parser,
Post by Phil Legault
string)
call_user_func_array(Closure, array)
Hooks::run(string, array)
#13 /app/mediawiki/mw/includes/parser/Parser.php(444): Parser->
internalParseHalfParsed(string, boolean, boolean)
Parser->parse(string, Title, ParserOptions)
DPL\Parse->triggerEndResets(string, NULL, NULL, boolean)
#16 /app/mediawiki/mw/extensions/DynamicPageList/
DynamicPageList.hooks.php(307): DPL\Parse->parse(string, Parser, NULL,
NULL, boolean)
#17 [internal function]: DynamicPageListHooks::dplParserFunction(Parser,
string, string, string, string, string)
call_user_func_array(array, array)
Parser->callParserFunction(PPFrame_DOM, string, array)
Parser->braceSubstitution(array, PPFrame_DOM)
PPFrame_DOM->expand(PPNode_DOM, integer)
Parser->replaceVariables(string)
Parser->internalParse(string)
Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
WikitextContent->fillParserOutput(Title, integer, ParserOptions,
boolean,
Post by Phil Legault
ParserOutput)
AbstractContent->getParserOutput(Title, integer, ParserOptions)
PoolWorkArticleView->doWork()
PoolCounterWork->execute()
Article->view()
Post by Phil Legault
#30 /app/mediawiki/mw/includes/MediaWiki.php(495): ViewAction->show()
MediaWiki->performAction(Article, Title)
MediaWiki->performRequest()
#33 /app/mediawiki/mw/includes/MediaWiki.php(512): MediaWiki->main()
#34 /app/mediawiki/mw/index.php(43): MediaWiki->run()
#35 {main}
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
--
- Laurent Alquier
http://www.linfa.net
Yaron Koren
2017-07-25 15:17:56 UTC
Permalink
Hi,

I don't know if you're still looking into this, but if so - when you use
the "download" version, where is PFHooks::initProperties being called from?
I'm guessing that this is somehow a Composer issue, but I don't know much
beyond that.

-Yaron
Post by Laurent Alquier
Hi Yaron
I didn't see an update from Phil (unless he replied directly) so here is
one.
We didn't find the root cause of the issue but we did find an indirect
cause for it.
If we use the 4.1.2 'download' link on the Page Form Install page, the
error happens.
If we use the latest snapshot from git, everything is fine.
- Laurent
Post by Yaron Koren
Hi,
https://sourceforge.net/p/semediawiki/mailman/message/35537332/
As before, I don't know what the cause is. I would do a search through
your
Post by Yaron Koren
code for "PFHooks::initProperties" (a method that was removed a long time
ago) to see where it's getting called.
-Yaron
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
Loading...