Az oldal korlátolt funkcionalitással fog rendelkezni, amíg elvégezzük a felhasználói élményt javító karbantartást. Ha egy leírás nem oldja meg a problémáját, és kérdést tenne fel, akkor a támogatási közösségünk a @FirefoxSupport Twitter oldalon tud segíteni, vagy az /r/firefox oldalon a Redditen.

Támogatás keresése

Kerülje el a támogatási csalásokat. Sosem kérjük arra, hogy hívjon fel egy telefonszámot vagy osszon meg személyes információkat. Jelentse a gyanús tevékenységeket a „Visszaélés bejelentése” lehetőséggel.

További tudnivalók

A témacsoportot lezárták és archiválták. Tegyen fel új kérdést, ha segítségre van szüksége.

Updated to Firefox 76.0.1 and now I get the error "Failed to read the configuration file", config file is custom new tab

  • 5 válasz
  • 1 embernek van ilyen problémája
  • 1 megtekintés
  • Utolsó üzenet ettől: cor-el

more options

I have recently updated to Firefox 76.0.1 and when I launch the browser I get the error "Failed to read the configuration file". When I delete the configuration file, this error no longer persists. I use the configuration for a custom new tab page. I found this issue and I have updated my file with the solution but this error still persists.

I have recently updated to Firefox 76.0.1 and when I launch the browser I get the error "Failed to read the configuration file". When I delete the configuration file, this error no longer persists. I use the configuration for a custom new tab page. I found this [https://support.mozilla.org/en-US/questions/1283835 issue] and I have updated my file with the solution but this error still persists.

Módosította: Tyler Wolf,

Összes válasz (5)

more options

Tyler Wolf said

I found this issue and I have updated my file with the solution but this error still persists.

So that is:

//
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
/* set new tab page */
try {
  Cu.import("resource:///modules/AboutNewTab.jsm");
  var newTabURL = "file:///C:/example.html";
  AboutNewTab.newTabURL = newTabURL;
} catch(e) {
  // report errors in the Browser Console
  Cu.reportError(e);
}

What is your current code? You can put <pre> before and </pre> after your code block so the forum doesn't mangle it. Also, you can change the URL after file:/// since we have no way of knowing what the correct file location is.

Módosította: jscher2000 - Support Volunteer,

more options

jscher2000 said

Tyler Wolf said

I found this issue and I have updated my file with the solution but this error still persists.

So that is:

//
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
/* set new tab page */
try {
  Cu.import("resource:///modules/AboutNewTab.jsm");
  var newTabURL = "file:///C:/example.html";
  AboutNewTab.newTabURL = newTabURL;
} catch(e) {
  // report errors in the Browser Console
  Cu.reportError(e);
}

What is your current code? You can put <pre> before and </pre> after your code block so the forum doesn't mangle it. Also, you can change the URL after file:/// since we have no way of knowing what the correct file location is.

The code of firefox.cfg is

//
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;

/* set new tab page */
try {
  Cu.import("resource:///modules/AboutNewTab.jsm");
  var newTabURL = "file:///home/tyler/startpage/index.html";
  AboutNewTab.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console

and the autoconfig.js is

// First line should be a comment
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);

I have made sure that I have the correct path to the local file.

Módosította: Tyler Wolf,

more options

Did you check the Browser Console for more detail ?

more options

cor-el said

Did you check the Browser Console for more detail ?

I have attached the Browser Console here.

more options

This screenshot is with the two files in place and where you get the error alert ?

If you get the error message and nothing related in the Browser Console then it sounds that Firefox isn't finding the firefox.cfg file at all.

Where is Firefox installed (Home directory or root access location) ? Did you check the read/write permissions of both files ?

The autoconfig.js file that specifies to use autoconfig.cfg is placed into the "defaults/pref" directory where channel-prefs.js is located.

The autoconfig.cfg file is placed at the top level of the Firefox directory where you find the firefox startup script.

  • autoconfig.cfg and autoconfig.js need to start with a comment line (//)
  • autoconfig.js needs to use Unix line endings (LF instead of CR/LF)

See also: