{"id":3389100,"date":"2013-01-22T16:54:18","date_gmt":"2013-01-22T16:54:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/syntax-errors-database-syncphp\/"},"modified":"2016-08-20T20:50:36","modified_gmt":"2016-08-20T20:50:36","slug":"syntax-errors-database-syncphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/syntax-errors-database-syncphp\/","title":{"rendered":"Syntax errors (database-sync.php)"},"content":{"rendered":"<p>When attempting to activate, there is a syntax error in database-sync.php:<br \/>\n<code>$tokens = get_option(&#039;outlandish_sync_tokens&#039;) ? : array();<\/code><\/p>\n<p>This actually occurs in three separate places in the file. I replaced them all with:<br \/>\n<code>$tokens = get_option(&#039;outlandish_sync_tokens&#039;) ? get_option(&#039;outlandish_sync_tokens&#039;) : array();<\/code><\/p>\n<p>That fixed the problem. I was able to successfully sync a local dev site with a remote staging site.<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/database-sync\/<\/p>\n","protected":false},"template":"","class_list":["post-3389100","topic","type-topic","status-closed","hentry","topic-tag-syntax-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3389100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3389100\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3389100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}