aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/mdn/troubleshooting/index.html
blob: 4282a39570abdcf9f3c67e0c891198339943c608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Resolução de Problemas
slug: MDN/Troubleshooting
tags:
  - resolução de problemas
translation_of: MDN/Troubleshooting
---
<div>{{MDNSidebar}}</div><p>Este artigo descreve problemas comuns que podem ocorrer durante a utilização da MDN, e como os resolver.</p>

<h2 id="Não_consegue_guardar_uma_página">Não consegue guardar uma página</h2>

<dl>
 <dt>Sintoma</dt>
 <dd>You try to save some change that you have made, and you get an error message indicating that your change couldn't be saved.</dd>
 <dt>Causa</dt>
 <dd>Your change has been caught in MDN's spam trap.</dd>
 <dt>Solução</dt>
 <dd>Save a copy of your revision, and send an email to the <a href="mailto://mdn-admins@mozilla.org">MDN site administrators</a>, as instructed in the error message. One of the admins will verify that it is, in fact, a legitimate change, then train the spam filter not to block edits like yours, and add you to a whitelist so that you don't encounter this problem in the future.</dd>
</dl>

<h2 id="As_suas_alterações_não_aparecem_na_página">As suas alterações não aparecem na página</h2>

<dl>
 <dt>Sintoma</dt>
 <dd>You make some changes to an article and click <strong>Publish</strong>; the changes that you just made are not reflected in the normal view of the page.</dd>
 <dt>Causa</dt>
 <dd>The page content is cached on the server, and has not been refreshed since the page was changed.</dd>
 <dt>Solução</dt>
 <dd>Force a refresh of the page in your browser (for example, Shift+Reload). You might see the updated content, or you might see a message indicating that an update to the page is being processed. In the second case, wait a few minutes and refresh the page again.</dd>
</dl>

<h2 id="Macro-generated_content_is_out_of_date">Macro-generated content is out of date</h2>

<dl>
 <dt>Sintoma</dt>
 <dd>You see a page that contains content generated by a macro. You know that this macro has been updated and put into production, but the page is showing outdated values.</dd>
 <dt>Causa</dt>
 <dd>The macro output is cached, and has not been refreshed since the macro was updated.</dd>
 <dt>Solução</dt>
 <dd>Force a refresh of the page in your browser (for example, Shift+Reload). You might see the updated output, or you might see a message indicating that an update to the page is being processed. In the second case, wait a few minutes and refresh the page again.</dd>
</dl>

<h2 id="Erro_de_scripting_numa_página">Erro de <em>scripting</em> numa página</h2>

<dl>
 <dt>Sintoma</dt>
 <dd>You see a scary red box like this on a page:<br>
 <img alt="There was a scripting error on this page. While it is being addressed by site editors, you can view partial content below. More information about this error" src="https://mdn.mozillademos.org/files/15259/macro_error_box.png" style="height: 114px; width: 590px;"></dd>
 <dt>Causa</dt>
 <dd>This is caused by a Kumascript error in a macro on the page. This issue is less common in production now that macros are stored on Github and go through a review and testing process before being put into production. You might see it if you modify a macro call or its arguments in a way that breaks the macros. You might also see it  if you are editing macros on a local build of the MDN platform.</dd>
 <dt>Solução</dt>
 <dd>If you modified a macro call, you can check the name and parameters of the macro against the <a href="https://github.com/mdn/kumascript/tree/master/macros">Kumascript Github repo</a>. If you are in the midst of modifying the macro in question, <a href="/en-US/docs/MDN/Contribute/Tools/KumaScript/Troubleshooting">Troubleshooting Kumascript errors</a> may be helpful.</dd>
</dl>

<h2 id="Scripting_error_while_previewing_a_page">Scripting error while previewing a page</h2>

<dl>
 <dt>Sintoma</dt>
 <dd>You are editing a page, and click the <strong>Preview</strong> button. The preview of the page contains a scripting error message (as shown in the previous section).</dd>
 <dt>Causa</dt>
 <dd>Either there was an existing scripting error in the page you were editing, or you have introduced an error, possibly by changing arguments to a macro.</dd>
 <dt>Solução</dt>
 <dd>
 <p>Be assured that as long as you have not modified or added any macros or templates in the page, you can safely ignore this error; you can expect it to go away when the edited page is finally saved and viewed normally again (unless the error was already there in the normal view).</p>

 <p>If you are still unsure whether <em>you</em> introduced the error, then you can open a <em>copy</em> of the normal page in a new window, enter Edit mode, and immediately click <strong>Preview</strong>. If any errors occur now, you can be confident that you did not cause them, and that they will likely disappear as previously described. As for your changes, if these new errors are the same as the old errors from the old window, then  close the new window and continue working in the old one.  However, if they are different errors, then you indeed might have damaged something in the old window, so just start carefully copying your changes to the new window, and click <strong>Preview</strong> after each copy.  If the old errors suddenly appear here too, then your last changes have likely caused them, and you should carefully examine that work.  Finally, as a side benefit, if you click <strong>Preview</strong> frequently and always leave that Preview window open, you will have a quick but unsaved copy of most of your changes in case the editor fails or somehow loses your work (as may happen when trying to use Discard.)</p>

 <p> </p>
 </dd>
 <dt> </dt>
</dl>