Title: Syntax errors (database-sync.php)
Last modified: August 20, 2016

---

# Syntax errors (database-sync.php)

 *  Resolved [handsofaten](https://wordpress.org/support/users/handsofaten/)
 * (@handsofaten)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-errors-database-syncphp/)
 * When attempting to activate, there is a syntax error in database-sync.php:
    `
   $tokens = get_option('outlandish_sync_tokens') ? : array();`
 * This actually occurs in three separate places in the file. I replaced them all
   with:
    `$tokens = get_option('outlandish_sync_tokens') ? get_option('outlandish_sync_tokens'):
   array();`
 * That fixed the problem. I was able to successfully sync a local dev site with
   a remote staging site.
 * [http://wordpress.org/extend/plugins/database-sync/](http://wordpress.org/extend/plugins/database-sync/)

Viewing 1 replies (of 1 total)

 *  [stevelack](https://wordpress.org/support/users/stevelack/)
 * (@stevelack)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/syntax-errors-database-syncphp/#post-3389541)
 * Thanks for providing that correction. This plug in is exactly what I’ve been 
   needing and I was really disappointed when it failed to initialize. Your solution
   solved the problem. Thank you for sharing it.

Viewing 1 replies (of 1 total)

The topic ‘Syntax errors (database-sync.php)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/database-sync.svg)
 * [Database Sync](https://wordpress.org/plugins/database-sync/)
 * [Support Threads](https://wordpress.org/support/plugin/database-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/database-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/database-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/database-sync/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [stevelack](https://wordpress.org/support/users/stevelack/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/syntax-errors-database-syncphp/#post-3389541)
 * Status: resolved