Help:Errors: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Jaime Prilusky (talk | contribs)
m Protected "Help:Errors" [edit=sysop:move=sysop]
Eric Martz (talk | contribs)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page discusses a few common errors that you might encounter when editing pages. For help with other technical problems when editing, feel free to [[Help:Contact Us|contact us]], or subscribe to and post questions on the [[Proteopedia:Email list]]. For a guide to the many help pages in Proteopedia, see [[Help:Contents]].
__TOC__
== XML error: Mismatched tag at line 1<br>XML error: XML_ERR_NAME_REQUIRED at line 1 ==
== XML error: Mismatched tag at line 1<br>XML error: XML_ERR_NAME_REQUIRED at line 1 ==
*'''When does it happen''': This error appears following a (Save page) from an edit session.
*'''When does it happen''': This error appears following a (Save page) from an edit session.
Line 4: Line 6:
*'''How to avoid it''': Always do a (Show preview) before actually saving the page. If you see the error, use your browser's back button to get back to the wikitext box, where you can look for the mismatched tag to fix it. If you cannot find the mismatched tag, one option is to click ''Cancel'' so the changes that caused the error are not saved. You will lose any changes you made since the previous save, but the error will be gone.
*'''How to avoid it''': Always do a (Show preview) before actually saving the page. If you see the error, use your browser's back button to get back to the wikitext box, where you can look for the mismatched tag to fix it. If you cannot find the mismatched tag, one option is to click ''Cancel'' so the changes that caused the error are not saved. You will lose any changes you made since the previous save, but the error will be gone.


*'''What causes this error''': A mismatched tag, like a missing closing &lt;/scene>, or even a missing "&lt;" or "&gt;" sign, for example in "&lt;/scene" (where the final "&gt;" was inadvertantly deleted).
*'''What causes this error''': A mismatched tag, like a missing closing &lt;/scene>, or even a missing "&lt;" or "&gt;" sign, for example in "&lt;/scene" (where the final "&gt;" was inadvertantly deleted). In May, 2021, the presence of '&' in the caption of a &lt;Structure ... &gt; tag at [[Cystine]] also caused this error. Replacing the '&' with 'and' corrected the problem.


*'''How to fix it''': Lets assume that you saved the page with the mismatched tag error, so all you can see is the XML Error message. Don't worry. You can still open the page in ''edit'' mode and fix it.
*'''How to fix it''': Lets assume that you saved the page with the mismatched tag error, so all you can see is the XML Error message. Don't worry. You can still open the page in ''edit'' mode and fix it.
Line 15: Line 17:
::*If you can find the error, click your browser's ''Back'' button twice to get back to the wikitext containing the error. Fix the error and save the page.
::*If you can find the error, click your browser's ''Back'' button twice to get back to the wikitext containing the error. Fix the error and save the page.
::*If you cannot find the error, go ahead and save the ''undo''. You will lose changes made along with the change that created the error, but the error will be gone.
::*If you cannot find the error, go ahead and save the ''undo''. You will lose changes made along with the change that created the error, but the error will be gone.
== MySQL returned error "1062: Duplicate entry '123456789' for key 'PRIMARY' ==
*'''What causes this error''': One common cause is when you use PMID and DOI to cite the same paper more than once on the page.
*'''When does it happen''': This error appears following a (Save page) from an edit session.
*'''How to avoid it''': Always do a (Show preview) before actually saving the page. If you see the error, use your browser's back button to get back to the wikitext box, where you can look for the conflicting reference to fix it. If you cannot find the mismatched tag, one option is to click ''Cancel'' so the changes that caused the error are not saved. You will lose any changes you made since the previous save, but the error will be gone.
* '''How to fix it''': See '''How to fix it''' above to know how to get back into the edit mode and fix the page.


== We could not process your edit due to a loss of session data ==
== We could not process your edit due to a loss of session data ==
Line 23: Line 35:
*'''When does it happen''': This error appears following a (Save page) from an edit session.
*'''When does it happen''': This error appears following a (Save page) from an edit session.


*'''How to fix it''': First of all, select all contents in the edit box, copy and paste into a safe location (a new plain text file outside the browser) to avoid loosing your work. That will be your backup copy. Then, try one or more of these:
*'''How to fix it''': First of all, select all contents in the edit box, copy and paste into a safe location (a new [[Help:Plain text editors|plain text file]] outside the browser) to avoid loosing your work. That will be your backup copy. Then, try one or more of these:
**Clear the cache in your web browser and try again to save.
**Clear the cache in your web browser and try again to save.
**Follow the advice in the error: cancel the edition, close your Proteopedia session (log out), then reopen your session (log in), go to the page, edit it again, clear all content and paste your backup text. Click the Save button.
**Follow the advice in the error: cancel the edit, close your Proteopedia session (log out), then reopen your session (log in), go to the page, edit it again, clear all content and paste your backup text. Click the Save button.
**Add <code>action=purge</code> to the url of the page (this will clear some cache in the Proteopedia web server). Examples to do this:
**Add <code>action=purge</code> to the url of the page (this will clear some cache in the Proteopedia web server). Examples to do this:
  <nowiki>http://proteopedia.org/</nowiki>w/Pseudouridine<span style="color:red;">?action=purge</span>
  <nowiki>http://proteopedia.org/</nowiki>w/Pseudouridine<span style="color:red;">?action=purge</span>
  <nowiki>http://proteopedia.org/</nowiki>wiki/index.php?title=Pseudouridine<span style="color:red;">&action=purge</span>
  <nowiki>http://proteopedia.org/</nowiki>wiki/index.php?title=Pseudouridine<span style="color:red;">&action=purge</span>
:*Some [https://www.mediawiki.org/wiki/Firefox_users_and_session_loss_bug extra hints] specific for solving a bug in Firefox.
:*Some [https://www.mediawiki.org/wiki/Firefox_users_and_session_loss_bug extra hints] specific for solving a bug in Firefox.