Help:Locating broken scripts/ast

Si tienes problemes con complementos llocales o scripts d'usuariu, de vezu esos problemes tán creaos por códigu frañáu de JavaScript (el llinguax de programación nel que s'escriben los gadgets) o dependencies sin declarar n'otru códigu.

P'alcontrar el códigu problemáticu ya'l llugar onde necesita iguase, tendrás qu'usar les ferramientes de desendolcador del restolador web. Esta ferramienta, combinada con una URL especial ayudaráte a identificar los scripts frañaos.

Probar si tienes problemes rellacionaos con un script
First, ensure your browser is up to date. MediaWiki features and some scripts are not supported by old browsers for safety reasons.

To test if your problem is linked to scripts, you can try to temporarily deactivate all scripts and gadgets at once.

To do so, add  to the web address (URL) of the page on which you see the problem. Example:

If the URL already includes a , append  instead. Example:

If you still have problems on the page you are testing with the safe mode and your browser is up to date, please contact a developer of MediaWiki. If you don't have the problem anymore using the safe mode, it means you have a script issue. You have to identify the problem.

Identificar los problemes
The following links explain how to do this for the following browsers: Chrome/Chromium, Firefox, Internet Explorer, Opera and Safari.

After opening them, please append   to the web address (URL) of the page on which you see the problem. Example:

If the URL already includes a , append  instead. Example:

For more technical information you can check how to Toggle debug mode (but you do not have to read that to follow the next steps.)

If there is a problem with JavaScript, an error should be printed in the 'console' of the developer tools.

Make sure that "JavaScript" or "JS" is enabled here, and potentially disable other output so the output does not get too noisy:



Click on the file name on the right. This will open the "Debugger" view. The right pane will show the code which needs to be fixed. The left pane will show which file needs to be fixed (you might need to scroll through the list to find the one file that is highlighted). Right-click on the file, to open the file that needs fixing in a new tab:



Due to how files are "loaded", the exact URL of the file might not always be obvious. So you may have to scroll to the top of the file to see its name.

This name may just be a comment (something like ).

Problems that need fixing could be in the local MediaWiki:Common.js file on that wiki, in your personal files such as User:MyUserName/common.js (or other .js files that you have under ), or in the code of one of the gadgets available on that wiki, or in the code dependency definitions of the gadget defined in MediaWiki:Gadgets-definition on that wiki.

Iguar el problema
Problem on scripts can be due to multiple causes. We advise you to contact someone who knows JavaScript to help you. (If you have basic technical knowledge of JavaScript, see T164242 for hints and links to additional information.)

In the meantime, you can disable the scripts.

If the broken script is identified as a gadget, disable the gadget in your preferences.

If the broken script is on a .js page or yours, disable the gadget by commenting it. Add  at the beginning of the concerned code and   at the end.

Otres maneres d'identificar scripts frañaos

 * 1) note the gadgets and scripts you are using on your account
 * 2) disable all scripts and gadgets on your account
 * 3) re-enable one gadget
 * 4) clear your cache
 * 5) test if you still have problems:
 * 6) * If not, go to step 3
 * 7) * If yes, fix the script and go back to step 3 for other potentially broken scripts