Title: Problem with plugin activation
Last modified: August 31, 2016

---

# Problem with plugin activation

 *  Resolved [denis_ryabikov](https://wordpress.org/support/users/denis_ryabikov/)
 * (@denis_ryabikov)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/)
 * We have a problem with plugin activation.
    After we click on activation button
   into the plugins list we catch error (and plugin activation break on it): `Parse
   error: syntax error, unexpected ':' in /home/virtwww/w_spbaero-com_424a83f8/http/
   wp-content/plugins/wpcargo/shortcodes/WPCargo-Track-Results.php on line 49` Plugin
   version: 1.0.2
 * [https://wordpress.org/plugins/wpcargo/](https://wordpress.org/plugins/wpcargo/)

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

 *  Plugin Author [Arni Cinco](https://wordpress.org/support/users/wptaskforce/)
 * (@wptaskforce)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/#post-7239387)
 * Hi denis_ryabikov, Please check the version of your PHP.
    The Minimum Requirement
   is 5.4.45 if your version is below the minimum requirement please upgrade the
   version.
 * I think that line is – ” `$shipments = get_post_meta($trackid, 'wpcargo_shipments_update',
   true) ?: array();` “
 * for now you can change it to – ” `$shipments = get_post_meta($trackid, 'wpcargo_shipments_update',
   true);` “
 * Thanks!
 *  Thread Starter [denis_ryabikov](https://wordpress.org/support/users/denis_ryabikov/)
 * (@denis_ryabikov)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/#post-7239422)
 * Hi, thx for fast response. Request on PHP update on our hosting successfully 
   resolve this problem.
 *  [parkinit](https://wordpress.org/support/users/parkinit/)
 * (@parkinit)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/#post-7239615)
 * Arni Cinco, please I have similar problem with the wpcargo plugin this is what
   I get in trying to activate the plugin
 *  “Parse error: syntax error, unexpected ‘:’ in /home/locust/public_html/wp-content/
   plugins/wpcargo/shortcodes/WPCargo-Track-Results.php on line 95”
 * I can confirm to you that, I have upgraded my php up to the minimum requirement
   and the problem persist. Thank you for any assistance
 *  Plugin Author [Arni Cinco](https://wordpress.org/support/users/wptaskforce/)
 * (@wptaskforce)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/#post-7239626)
 * Hi Parikinit!
 * The alternative solution for that is to change the code..
 * Have you tried to change the code above?
 * I think that line is – `" $shipments = get_post_meta($trackid, 'wpcargo_shipments_update',
   true) ?: array(); "`
 * for now you can change it to – `" $shipments = get_post_meta($trackid, 'wpcargo_shipments_update',
   true); "`

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

The topic ‘Problem with plugin activation’ is closed to new replies.

 * ![](https://ps.w.org/wpcargo/assets/icon-256x256.png?rev=1826774)
 * [WPCargo Track & Trace](https://wordpress.org/plugins/wpcargo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpcargo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpcargo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpcargo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpcargo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpcargo/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Arni Cinco](https://wordpress.org/support/users/wptaskforce/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/problem-with-plugin-activation-3/#post-7239626)
 * Status: resolved