Answers.Body: <p>Error found: I downloaded the correct 4.7.7 to my computer, but then uploaded 4.6.7 to the server by mistake and ran that installation. Thanks @davejenx for noticing this.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-05T15:58:56.577Z
Answers.LastActivityDate: 2016-05-05T15:58:56.577Z
Answers.UserDisplayName: tabletguy
Body: <p>Joomla 3.5.1, Linux, Php 5.6.20</p>
  
  <p>Is there a "quick fix" I could make to a script to allow it to either recognize the database, or would it be OK to manually change the database version number only back to 4.6.15?</p>
  
  <p>When I try to upgrade from 4.6.16, to 4.7.7 it says that it doesn't recognize database version 4.6.16. It says:</p>
  
  <p><strong><em>Your database is marked with an unexpected version number: 4.6.16.</strong> The automated upgrade to version 4.6.7 can not be run - and the 4.6.7 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using prior to beginning this upgrade until you resolve this problem.</em></p>
  
  <p>In addition, the actual error message is NOT formatted correctly. The full message (as it appears on screen) is:</p>
  
  <pre><code>An error has occurred.
   0 &lt;div id="crm-container" class="crm-container" lang="en" xml:lang="en"&gt; &lt;style type="text/css" media="screen"&gt; @import url(/main/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/main/administrator/components/com_civicrm/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css); &lt;/style&gt; &lt;div class="messages status no-popup"&gt; &lt;div class="icon red-icon ui-icon-alert"&gt;&lt;/div&gt; &lt;span class="status-fatal"&gt;Sorry but we are not able to provide this at the moment.&lt;/span&gt; &lt;div class="crm-section crm-error-message"&gt;Your database is marked with an unexpected version number: 4.6.16. The automated upgrade to version 4.6.7 can not be run - and the 4.6.7 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using prior to beginning this upgrade until you resolve this problem.&lt;/div&gt; &lt;p&gt;&lt;a href="http://ahymsin.org/main/administrator/" title="Main Menu"&gt;Return to home page.&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;script language="JavaScript"&gt; function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } &lt;/script&gt;
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-05T09:44:53.793Z
Comments.Text: Could you confirm which version you are trying to upgrade to, as your question mentions 3 versions: 4.7.4 in the title, 4.7.7 in the description and 4.6.7 in the error message.
Comments.UserDisplayName: davejenx
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-05T14:57:00.940Z
Comments.Text: Sorry. Yes, to 4.7.7. Title corrected
Comments.UserDisplayName: tabletguy
Tags: <upgrade><database><4.7><4.6>
Title: Unrecognized database version from 4.6.16 to 4.7.7
ThreadText: # Unrecognized database version from 4.6.16 to 4.7.7
  
  (Asked by: username_0 on 2016-05-05)
  
  Joomla 3.5.1, Linux, Php 5.6.20
  Is there a "quick fix" I could make to a script to allow it to either recognize the database, or would it be OK to manually change the database version number only back to 4.6.15?
  When I try to upgrade from 4.6.16, to 4.7.7 it says that it doesn't recognize database version 4.6.16. It says:
  Your database is marked with an unexpected version number: 4.6.16. The automated upgrade to version 4.6.7 can not be run - and the 4.6.7 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using prior to beginning this upgrade until you resolve this problem.
  In addition, the actual error message is NOT formatted correctly. The full message (as it appears on screen) is:
  An error has occurred.
   0     Sorry but we are not able to provide this at the moment. Your database is marked with an unexpected version number: 4.6.16. The automated upgrade to version 4.6.7 can not be run - and the 4.6.7 codebase may not be compatible with your database state. You will need to determine the correct version corresponding to your current database state. You may want to revert to the codebase you were using prior to beginning this upgrade until you resolve this problem. Return to home page.
  
  **Tags:** upgrade, database, 4.7, 4.6
  
  > **Comments:**
  > **username_1**: Could you confirm which version you are trying to upgrade to, as your question mentions 3 versions: 4.7.4 in the title, 4.7.7 in the description and 4.6.7 in the error message.  
  > **username_0**: Sorry. Yes, to 4.7.7. Title corrected  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-05-05. Score: 2
  
  Error found: I downloaded the correct 4.7.7 to my computer, but then uploaded 4.6.7 to the server by mistake and ran that installation. Thanks @username_1 for noticing this.
  
  
  ---
  
  