Title: Parse error on line 2866 with https wordpress site
Last modified: September 5, 2017

---

# Parse error on line 2866 with https wordpress site

 *  [madhatterwales](https://wordpress.org/support/users/madhatterwales/)
 * (@madhatterwales)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/)
 * When trying to activate WP Migrate DB on a https website (works fine on other
   WP sites without https) I keep getting the following error and then it blocks
   my whole wp-admin access with the following error:
 * Parse error: syntax error, unexpected ‘:’ in /agx/wp-content/plugins/wp-migrate-
   db/class/wpmdb.php on line 2686
 * At present only way out of this is to then remove WP migrate DB directory from
   plugins folder.
 * Any help on this much appreciated.
    -  This topic was modified 8 years, 9 months ago by [madhatterwales](https://wordpress.org/support/users/madhatterwales/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-on-line-2866-with-https-wordpress-site%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [JRGould](https://wordpress.org/support/users/jrgould/)
 * (@jrgould)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/#post-9469958)
 * Hi, what PHP version are you running on this site?
 *  Thread Starter [madhatterwales](https://wordpress.org/support/users/madhatterwales/)
 * (@madhatterwales)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/#post-9471737)
 * This site is running on PHP 5.2.17
 * Do you think that could be it?
 *  [bydlo](https://wordpress.org/support/users/bydlo/)
 * (@bydlo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/#post-9475718)
 * I got almost the same – except the line.
    Parse error: syntax error, unexpected‘:’
   in /kunden/192222_10965/webseiten/diaboloqueen.com/wp-content/plugins/wp-migrate-
   db/class/wpmdb.php on line 2686
 * Updating PHP from 5.2.17 to the latest stable worked.
 *  [JRGould](https://wordpress.org/support/users/jrgould/)
 * (@jrgould)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/#post-9476274)
 * Yes, PHP 5.2 reached end of life nearly 7 years ago. We’ll try to fix the backwards
   compatibility for our next release, but in the meantime I’d recommend updating
   to a currently supported version of PHP.
 * If that’s not an option, you can update that line to read:
 * $main_domain_replace = $this->get_domain_replace() ? $this->get_domain_replace():
   $this->get_domain_current_site();

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Parse error on line 2866 with https wordpress site’ is closed to new 
replies.

 * ![](https://ps.w.org/wp-migrate-db/assets/icon.svg?rev=2851356)
 * [WP Migrate Lite - Migration Made Easy](https://wordpress.org/plugins/wp-migrate-db/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-migrate-db/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-migrate-db/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-migrate-db/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-migrate-db/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-migrate-db/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [JRGould](https://wordpress.org/support/users/jrgould/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-line-2866-with-https-wordpress-site/#post-9476274)
 * Status: not resolved