We got error message at the last step of upgrade:
Parse error: syntax error, unexpected '[' in .../public_html/application/libraries/Engine/Api.php on line 49.
I following the instructions for upgrade, applied the patch as we were upgrading from 4.9.2. Patch uploaded successfully, then when installing the Upgrade, after compatibility check and confirm successfully copied files, when click on Continue, at the last step the above error message occurred. The site is down with the message showing up.
Do you have 3rd party plugins?
Yes, we do have 3rd party plugins.
However, if they cause the error for the upgrade, what would be the process to have successful upgrade?
If you are using either SES' or SEAO's Advanced Feed Plugins, this link might help --> https://community.socialengine.com/forums/topic/518/socialengine-4-10-activity-feed-issues/view/page/2
Yes, please see the thread that gs linked as there can be issues with upgrading when third party plugins modify source files or the default database tables. We recommend only using certified plugins to avoid upgrade issues in the future.
Also, if your plugins are not updated and you are using PHP 7 (which we recommend to use), then it can cause issues such as you show. Please check with third party experts to ensure your plugins are updated and to ensure they didn't modify the database. If they did modify the database, there were steps you needed to take before the upgrade in order for the upgrade to properly work.
Donna,
Thank you for the suggestions.
Could you elaborate what steps are required for the database to assure proper upgrade
I don't know as we didn't make the plugins and wouldn't have that information but each expert has the steps at their sites. Most released blogs and newsletters for it. They have been very helpful in removing their edits.
Didn't mean that to sound snotty. We just don't have the info as there are so many changes they could have made and it's just best to not modify source or default tables. Great news is, they've removed those modifications as we told them to.
Completely understand :-)
Milen said:
We got error message at the last step of upgrade:
Parse error: syntax error, unexpected '[' in .../public_html/application/libraries/Engine/Api.php on line 49.
I following the instructions for upgrade, applied the patch as we were upgrading from 4.9.2. Patch uploaded successfully, then when installing the Upgrade, after compatibility check and confirm successfully copied files, when click on Continue, at the last step the above error message occurred. The site is down with the message showing up.
Please check that the version of PHP on your Server is 5.4 or above as in the lower versions of PHP the Array Initialization Construct: [] will not work. We feel that this problem is coming because of lower version of PHP you are using. Can you share which version of PHP you are using on your end?
Thank you for the suggestion - we used 5.3.29, which could be the reason for the issue.
It is now updated to 7.0.30 and will try again.
We are making progress - upgrading to 7.0.30 allowed to run the upgrade successfully, but a new error showed up:
When upgrading 'Activity' module, the process stops with error message:
Query failed with error: Mysqli statement execute error : Duplicate column name 'params'
Do you have any idea what might be causing this and how to correct it?
Thank you and bestregards.
Please see the forum thread for this in the third party section as this is from third party plugins that modify our default tables in most cases. Actually, that's the only time I can recall seeing that error.
I went through the same error. I contacted Social Engine Technical Support to fix it.