Everytime when I run refreahLinks.php without any options, the complete semantic data from SMW is destroyed in the database (not on the pages).
The complete Attributes are destroyed, and semantic querys leats to no results.
After editing and safing a random page, the semantic data of this single random page is recovered. This is working with every page.
I have figured out the following:
when I comment out the line ~244 in refreshLinks.php
$updates = $content->getSecondaryDataUpdates( $page->getTitle());
the semantic data is not destroyed.
-> https://github.com/wikimedia/mediawiki-core/blob/master/maintenance/refreshLinks.php
Also I have figured out that inside the RefreshLinksJob.php
there is a very similar function in line 172
$updates = $content->getSecondaryDataUpdates( $title, null, false, $parserOutput );
with much more source code in front.
https://doc.wikimedia.org/mediawiki-core/master/php/html/RefreshLinksJob_8php_source.html
I have the feeling this second script is the one that runs after a single page edit with saving. This one seems to work fine.
Am I right? What can I do to fix the problem?
Version: unspecified
Severity: normal