Title: Syntax Error While Activating
Last modified: March 8, 2019

---

# Syntax Error While Activating

 *  Resolved [edecals3](https://wordpress.org/support/users/edecals3/)
 * (@edecals3)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-while-activating-2/)
 * Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected ‘[‘ in /home/kenny9/www/wp-content/plugins/
   woo-custom-product-addons/includes/class-wcpa-backend.php on line 312
 * WP Woocommerce version 5.1
 * WooCommerce Product add-on plugin. Add custom fields to your WooCommerce product
   page. With an easy-to-use Custom Form Builder, now you can add extra product 
   options quickly.
 * Version 2.3.0 | By acowebs | View details

Viewing 1 replies (of 1 total)

 *  Plugin Author [acowebs](https://wordpress.org/support/users/acowebs/)
 * (@acowebs)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-while-activating-2/#post-11291532)
 * Hi,
    It seems you are using an older version of PHP, It needs 5.4 or higher to
   works this plugin correctly. Please upgrade PHP version and try.

Viewing 1 replies (of 1 total)

The topic ‘Syntax Error While Activating’ is closed to new replies.

 * ![](https://ps.w.org/woo-custom-product-addons/assets/icon-256x256.gif?rev=3328656)
 * [Product Addons for Woocommerce - Product Options with Custom Fields](https://wordpress.org/plugins/woo-custom-product-addons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-custom-product-addons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-custom-product-addons/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-custom-product-addons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-custom-product-addons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-custom-product-addons/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [acowebs](https://wordpress.org/support/users/acowebs/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-while-activating-2/#post-11291532)
 * Status: resolved