Topic on Project:Support desk

Links and pages not updated when uploading files

6
Robenrb (talkcontribs)

I have the following issue when trying to insert and upload images into pages since some time now (1.27+ update?) and was not able to find any solution:I insert a link to a not yet existing image into a page, i. e. [[Image:testfile.png]] and save the page. The file link is red now, since the file does not exist. After clicking on it, I can upload a file which works just fine, but after that the issues begin: The upload mask tells me that "There are no pages that link to this file.". And when reloading the modified page it still shows the red file link. Only after re-editing and saving the page the image is shown and the usage is reported correctly. Any hints?

My mediawiki version is 1.28.2 but the issue also appeared on 1.27.x. I am using MsUpload and MsLinks but disabling them does not change the behaviour.

Googling was not really helpful with this issue since it does not seem common and I only get results containing uploaded files with no links...

Robenrb (talkcontribs)

Update: I just noticed that a second wiki with identical configuration, extensions, versions and so on does not have this issue. The only difference was an extended .htaccess file for http authentication. After removing the authentication part, the issue was gone. Are there any internal http request going on when uploading?

TheDJ (talkcontribs)

Have you tried increasing the jobrate ? Or running a jobrunner to clear out the jobqueue ? Manual:Job_queue

Robenrb (talkcontribs)

I don't think that this could change anything related to http authentication. But we now just use user permissions for the cause skipping http auth completely which circumvents the issue

87.123.249.69 (talkcontribs)

Like DJ my guess would as well be that the configuration of the job queue might be a problem. Yes, depending on configuration, MediaWiki may be creating requests to itself to get jobs run.

So if I understand you correctly, you are basically trying to make MediaWiki run jobs with certain HTTP auth credentials. Sounds like a feature request to me, which you should report to Phabricator...

Ciencia Al Poder (talkcontribs)

Set $wgRunJobsAsync to false (it's false by default in your version though)