--- title: 修復 KumaScript 錯誤 slug: MDN/Tools/KumaScript/Troubleshooting translation_of: MDN/Tools/KumaScript/Troubleshooting ---
網頁上出現一塊又大又醜的 KumaScript 錯誤會惹惱讀者,好險任何擁有 MDN 帳號的人,可以編輯文件來修復錯誤。當一個頁面出現錯誤的時候,該面會被列在有錯誤的文件裡面。網站編輯者會透過這份清單,找出並修復錯誤。這篇文章列出 KumaScript 錯誤的四種類型,還有解決他們的步驟。
DocumentParsingError
errors appear when KumaScript has trouble understanding something in the document itself. The most common cause is a syntax error in a macro.
Check for:
\\{
\\
or \"
\{\{anch("top", "Back to top")}}
.</code>
tag may have appeared inside the macro code in the source code. Check the source view to see what's there, and remove any unnecessary styling.TemplateLoadingError
errors appear when KumaScript has trouble finding which macro to include on a page.
Check for:
https://developer.mozilla.org/en-US/docs/Template: —
for example the template page for \{\{anch("top", "Back to top")}}
is https://developer.mozilla.org/en-US/docs/Template:anch.Tip: You can make it quick and easy to jump to a specific macro by adding a search keyword to Firefox. <<<MORE SOON>>
TemplateExecutionError
errors appear when KumaScript encounters an error in the macro. These errors can only be fixed by admin users and need to be reported as bugs.
Before reporting an error check to see that it hasn't already been fixed. You can do this by forcing KumaScript to give you a fresh copy of the page by holding down Shift while you refresh the page (Shift + Ctrl + R on Windows/Linux, Shift + Cmd + R on Mac).
If the error persists, report a bug, including the URL of the page and the text of the error.
如果錯誤並不屬於上述任何一項時,將被歸類為未知.
Check for fixes and report persistent bugs like described under TemplateExecutionError.