Topic on Extension talk:Semantic MediaWiki

Property annotation error message-"0" has not been listed as valid URI

2
Lotusccong (talkcontribs)

MW - 1.39.3

SMW- 4.1.1

PHP- 7.4.33

Page Forms- 5.6.1

Page Schemas - 0.7.1

I have created a Page form with various fields with semantic properties.

My questions are as below -

1. How to know this error message applies to which property annotation?

2. Does this error message valid?  I don't see any annotation using the invalid URI scheme .

3. If we don't want to display the warning message on the page,  I set the $smwgParserFeatures configuration as below

$smwgParserFeatures = SMW_PARSER_NONE | SMW_PARSER_UNSTRIP|SMW_PARSER_LINV;

  • SMW_PARSER_NONE – Disables query features related to the parsing of annotations on pagesIt still showed the warning message, with SMW_PARSER_NONE, it should stop show the warning message ?

When I set to SMW_PARSER_INL_ERROR , it doesn't show the warning, right after the problematic input in annotations.

Lotusccong (talkcontribs)

I managed to fixed the above issues as below -

  1. Just add the SMW_PARSER_INL_ERROR in $smwgParserFeatures.
  2. The invalid URI scheme message is due to the datatype of URL is set to hide in Page Schemas even you have the valid URI. It seems that you meed to set Display this field always or Display if not empty to avoid this error message.
  3. Just need to disable SMW_PARSER_INL_ERROR. you can check the processing error from Browse property.
Reply to "Property annotation error message-"0" has not been listed as valid URI"