opensearch_desc.php not found
Configuration: 52.5.0 (32-Bit) - German version Web-Application: Latest MediaWiki (which supports OpenSearch)
When trying to add our MediaWiki as a search engine via the "+" in the search box (which is properly displayed) we get a popup with the following (manually translated from German) content:
"Download error
Firefox could not download: https://xyz/wiki/opensearch_desc.php"
However, when trying to download this file (https://xyz/wiki/opensearch_desc.php) via the adress line everything works and the XML is properly displayed.
Could it be that the download via adress line and the download made to add a search engine are done differently? Maybe in the latter case there is a problem with HTTPS or some redirects/rewrites we are doing behind the URL?
How can we debug this to give more details? The Web developer tools do not give any insights.
All Replies (3)
ok, lets get this out of the way. You are running a nonsupport and insecure browser. You should be Moving to the 52.5.2 ESR It will continue to get security updates until May 2018, and you can download and install it from this page: https://www.mozilla.org/en-US/firefox/organizations/all/ Note : Legacy Extensions will be deleted or removed in any version update after May 2018.
Please Uninstall Flash 24.0 r0 Flash Player Version: 28.0.0.126 Current Version https://get.adobe.com/flashplayer/otherversions/ Step 1: Select Operating System Step 2: Select A Version (Firefox, . . . .) Note: Other software is offered in the download. <Windows Only>
Trying to figure out why you would want to download a .php file. is the same as wanting to download a .asp file you do not.
Sorry we do not do those things here as a practice as most of us do not know.
But you can run your code through W3C.org who is in charge of standards and practices and future and experimental deployment of Web Browsers and Web Page Code. HTML https://validator.w3.org/ CSS https://jigsaw.w3.org/css-validator/ and https://validator.w3.org/i18n-checker/ and http://mobile.css-validator.org/
Try Google Searching within https://stackoverflow.com/ for your answers.
Please let us know if this solved your issue or if need further assistance.
Thanks for the quick answer. Unfortunately, it did not help.
The version i am using is not under my control. So i need to live with it.
I did not mean that i want to download a php. But as in Wikipedia (which is also MediaWiki installation) there is in header something link this: "<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (de)"/>". So the opensearch description links to that opensearch_desc.php which then generates the requested content. This works for Wikipedia etc., also in my browser. And so it should for us too. Of course, i do not want to download the php file itself but to access the resulting XML describing the opensearch. This access works correctly from adress line but obviously not from where i can add a new search eninge (see error message in popup). So the question here is, why this popup appears although the opensearch description file is accessable?
After further investigations I found that there is a newline at the beginning of the returned opensearchdescription-xml cause this error. So it seems that the error is on the MediaWiki side. However for Firefox two questions arise, why Firefox does not tolerate this newline? And why the error message states that there is a download problem and not a parsing problem of the xml?