• Resolved misterant

    (@misterant)


    I just installed the plugin in a new WordPress.
    It’s running version 6.0, no other plugins running.
    PHP version 5.6
    And after activation it gave me this error:

    PHP Parse error: syntax error, unexpected ‘)’ in wp-content/plugins/object-sync-for-salesforce/classes/class-object-sync-sf-salesforce-push.php on line 535

    Have you seen this before?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    I haven’t seen this. I will say that I haven’t tested the plugin in a version of PHP that low in some time, so it’s possible that something has been introduced into the plugin that is not backward-compatible. I’d like to fix it if possible, and if it’s not possible I would like ta raise the minimum version of PHP that the plugin supports. I’m not sure how quickly that would happen, unless you can identify exactly where the problem is, but that is likely how the issue would get resolved.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Looking at that code, I can see what might be the problem, and if it is that it would be an easy fix. If you’d like to test it, here’s a pull request: https://github.com/MinnPost/object-sync-for-salesforce/pull/483

    I will try to get an environment set up with PHP 5.6 in the next few days and see if the fix is this simple, and if it is I’ll release it as a plugin update. But any testing you could do would be appreciated.

    Thread Starter misterant

    (@misterant)

    Hello Jonathan, so it is a version problem with 5.6.
    Updated the PHP version to 7.4 an it’s working now.

    I tried the pull request, but has a lot of other commas to delete and I would to check all the syntax in the file. It was faster to change the PHP version (plus it really was very old)

    Thanks for your help!

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Ok. Well, I’m going to consider this as resolved for now, but with the understanding that some work needs to happen to either bring back 5.6 compatibility, or to remove it.

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

The topic ‘Installation problem’ is closed to new replies.