Database Sync
[resolved] instalation error (4 posts)

  1. daniloprates
    Posted 1 year ago #

    I've got the following message when tried to install it:

    Parse error: syntax error, unexpected ':' in /home/(...)/wp-content/plugins/database-sync/database-sync.php on line 36


  2. DiGiBoY
    Posted 1 year ago #

    You are most probably using a php version older than 5.3.
    from version 5.3, php allows to use the ternary operator, i.e.:
    (expr1) ? (expr2) : (expr3)
    in a new format.

    Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.

    database-sync.php uses this new style. so you either neeed to upgrade your php or you should edit this file and change those lines to:
    (expr1) ? (expr1) : (expr3)

  3. Samuel Costa
    Posted 10 months ago #

    I have the same error on activation.
    But my PHP version is 5.5 (the newer).


  4. tamlyn
    Plugin Author

    Posted 10 months ago #

    That's strange. Is it exactly the same error, pointing to the same line? If so, are you certain that the version being used is 5.5? It is possible to have multiple PHP versions on the same server.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Database Sync
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.