Answers.Body: <p>I stumbled across a work around purely by accident but to cut a long story short:</p>
  <p>Problem is that since the upgrade database url points to an unsecure http file, my server then wants to redirect to the secure url - resetting the session - requiring an admin login (not sure why this is since automatic SSL redirects have been disabled). Using the upgrade url, I deliberately added an additional character/integer to the url end, forcing the browser to navigate to a http page that doesn't exist. Now that I was sitting in a unsecure 404 page, I simply deleted the previously added character/integer and voila; no redirect to a secure page and consequently the upgrade screen correctly loads.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-01T15:32:45.160Z
Answers.Text: Glad you made it work.  As you found a http/https mix causes problems.  Also 'www.' and no www causes problems.  Decide what you want to use and make sure civicrm.settings.php is consistent.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-01T19:00:27.527Z
Answers.Text: Ah, consistency in civicrm.settings.php. I'll review and amend. Thanks Aidan
Answers.UserDisplayName: Ben Russell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-28T19:03:09.887Z
Answers.LastActivityDate: 2021-03-01T01:15:24.770Z
Answers.LastEditDate: 2021-03-01T01:15:24.770Z
Answers.UserDisplayName: Ben Russell
Body: <p>Experiencing a strange situation where the database upgrade url worked perfectly for a testing site but not for the live site.</p>
  <p>I successfully tested the upgrade with a cloned staging site without a hitch in the upgrade process.</p>
  <p><a href="https://staging.islandnaturetrust.ca/" rel="nofollow noreferrer">https://staging.islandnaturetrust.ca/</a></p>
  <p>By following the CiviCRM Wordpress upgrade guide: <a href="https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/</a></p>
  <p>However, as soon as I attempted on the main site the updgrade database url loops back to the WP login page.</p>
  <p><a href="https://www.islandnaturetrust.ca/" rel="nofollow noreferrer">https://www.islandnaturetrust.ca/</a></p>
  <p>Steps:</p>
  <ol>
  <li>Login as administrator for wordpress site</li>
  <li>Paste upgrade database url into browser <a href="http://islandnaturetrust.ca/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/upgrade&amp;reset=1" rel="nofollow noreferrer">http://islandnaturetrust.ca/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm/upgrade&amp;reset=1</a></li>
  <li>Page redirects to WP login page with no errors.</li>
  <li>Login once more</li>
  <li>Paste URL</li>
  <li>Returned back to WP login page</li>
  </ol>
  <p>I've checked the CiviCRM debug log but no errors reported.</p>
  <p>Thoughts anyone?</p>
  <p>UPDATE: Upgrading from 5.25 to 5.34</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-27T17:05:55.643Z
Comments.Text: Would be useful to know what version of CiviCRM you are upgrading from and to.
Comments.UserDisplayName: Mick Kahn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-01T19:01:07.510Z
Comments.Text: My bad. 5.25 to 5.34
Comments.UserDisplayName: Ben Russell
Tags: <wordpress><upgrade><database>
Title: Upgrade database URL loops to WP login screen but works on a cloned staging site
ThreadText: # Upgrade database URL loops to WP login screen but works on a cloned staging site
  
  (Asked by: username_0 on 2021-02-27)
  
  Experiencing a strange situation where the database upgrade url worked perfectly for a testing site but not for the live site.
  
  I successfully tested the upgrade with a cloned staging site without a hitch in the upgrade process.
  
  <https://staging.islandnaturetrust.ca/>
  
  By following the CiviCRM Wordpress upgrade guide: <https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/>
  
  However, as soon as I attempted on the main site the updgrade database url loops back to the WP login page.
  
  <https://www.islandnaturetrust.ca/>
  
  Steps:
  
  1. Login as administrator for wordpress site
  2. Paste upgrade database url into browser <http://islandnaturetrust.ca/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1>
  3. Page redirects to WP login page with no errors.
  4. Login once more
  5. Paste URL
  6. Returned back to WP login page
  
  I've checked the CiviCRM debug log but no errors reported.
  
  Thoughts anyone?
  
  UPDATE: Upgrading from 5.25 to 5.34
  
  **Tags:** wordpress, upgrade, database
  
  > **Comments:**
  > **username_1**: Would be useful to know what version of CiviCRM you are upgrading from and to.  
  > **username_0**: My bad. 5.25 to 5.34  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-02-28. Score: 1 | Accepted answer
  
  I stumbled across a work around purely by accident but to cut a long story short:
  
  Problem is that since the upgrade database url points to an unsecure http file, my server then wants to redirect to the secure url - resetting the session - requiring an admin login (not sure why this is since automatic SSL redirects have been disabled). Using the upgrade url, I deliberately added an additional character/integer to the url end, forcing the browser to navigate to a http page that doesn't exist. Now that I was sitting in a unsecure 404 page, I simply deleted the previously added character/integer and voila; no redirect to a secure page and consequently the upgrade screen correctly loads.
  
  > **Comments:**
  > **username_2**: Glad you made it work.  As you found a http/https mix causes problems.  Also 'www.' and no www causes problems.  Decide what you want to use and make sure civicrm.settings.php is consistent.  
  > **username_0**: Ah, consistency in civicrm.settings.php. I'll review and amend. Thanks username_2  
  
  ---
  
  