Troubleshooting MDN problems - The MDN project 编辑
This article describes common issues that may occur while using MDN, and ways to remedy them.
My old login doesn't work
- Symptom
- You had a login on MDN years ago, but now the only way to log in is with GitHub, so you can't log in. Or, you created a profile using GitHub, but it's not connected to your old account.
- Cause
- Support for other login methods besides GitHub authentication was removed from MDN as of November 1, 2016. If you didn't link your MDN profile to your GitHub account by that date, you won't be able to log into .
- Remedy
- File an "Account Help" bug on Bugzilla. Provide info (but not passwords!) about your old account, and your new profile if you have one. An MDN engineer will respond to help you.
Unable to save a page
- Symptom
- You try to save some change that you have made, and you get an error message indicating that your change couldn't be saved.
- Cause
- Your change has been caught in MDN's spam trap. As we all know, they make mistakes sometimes.
- Remedy
- Save a copy of your revision and send an email to the MDN site administrators, 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.
Your published changes do not appear on the page
- Symptom
- You make some changes to an article and click Publish; the changes that you just made are not reflected in the normal view of the page.
- Cause
- The page content is cached on the server, and has not been refreshed since the page was changed.
- Remedy
- 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 do a regular refresh to see if the page has been updated.
Macro-generated content is out of date
- Symptom
- 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.
- Cause
- The macro output is cached, and has not been refreshed since the macro was updated. At this time, changes made to macros' code do not automatically cause pages that use the macros to be updated.
- Remedy
- 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 do a regular refresh to see if the page has been updated.
Scripting error on a page
- Symptom
- You see a scary red box like this on a page:
- Cause
- 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.
- Remedy
- If you modified a macro call, you can check the name and parameters of the macro against the KumaScript GitHub repo. If you are in the midst of modifying the macro in question, Troubleshooting KumaScript errors may be helpful.
Scripting error while previewing a page
- Symptom
- You are editing a page, and click the Preview button. The preview of the page contains a scripting error message (as shown in the previous section).
- Cause
- 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.
- Remedy
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).
If you are still unsure whether you introduced the error, then you can open a copy of the same page in a new window (so you have the last saved version of the page), enter Edit mode, and immediately click Preview. 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 Preview 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 Preview 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).
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论