• Resolved paaacman

    (@paaacman)


    Hello,

    I had an error while updating to 0.5.6:

    Parse error: syntax error, unexpected ':' in /homepages/42/d350639641/htdocs/fraternite-en-irak/wordpress/wp-content/plugins/fb-photo-sync/fb-photo-sync.php on line 377

    I corrected it be replacing line 377:
    $saved_album = get_option( 'fbps_album_' . $album['id'] ) ?: $album;

    by:
    $saved_album = get_option( 'fbps_album_' . $album['id'] ) ?null: $album;

    https://www.ads-software.com/plugins/fb-photo-sync/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter paaacman

    (@paaacman)

    I corrected it be replacing line 377:
    $saved_album = get_option( 'fbps_album_' . $album['id'] ) ?: $album;

    by:
    $saved_album = get_option( 'fbps_album_' . $album['id'] ) ?null: $album;

    I am getting the same error at the exact same location, line 377. I made the correction suggested above, added “null” between the “?” and the “:” but am still getting the same error. Any thoughts?

    OK, it is working now. I refreshed the site and it worked fine. Thanks.

    Plugin Author Mike Auteri

    (@mauteri)

    You must be using an older version of PHP (less than PHP 5.3). I just updated to 0.5.7 which will fix this for you.

    Thread Starter paaacman

    (@paaacman)

    The version of PHP is the cause yes. I was using 5.2 before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error while updating to 0.5.6’ is closed to new replies.