Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

opensearch_desc.php not found

  • 3 respuestas
  • 1 tiene este problema
  • 2 visitas
  • Última respuesta de Arnd

more options

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.

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.

Todas las respuestas (3)

more options

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.

more options

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?

more options

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?