Title: Can&#8217;t activate &#8211; getting syntax error
Last modified: June 14, 2017

---

# Can’t activate – getting syntax error

 *  [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/)
 * Installed ok on a fresh install of WP 4.* with WooCommerce
 * Getting error:
 * Parse error: syntax error, unexpected T_FUNCTION in /home/devsite/public_html/
   WooTest/wp-content/plugins/woo-order-export-lite/woo-order-export-lite.php on
   line 40 .
 * Tried uninstalling and then reinstalling & getting same error.
    Any ideas?

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

 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9227802)
 * This is for **woo-order-export-lite.zip**
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9227835)
 * could you check php version? less than 5.3?
 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9227930)
 * It’s returning:
 * Current PHP version: 5.2.17
 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9228081)
 * Are there any adjustments I can make to get it running on 5.2.17?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9228087)
 * You can disable Pro version, so this code won’t be used.
 * Or you switch PHP to later versions. 5.6? or 7?
 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9228125)
 * I can’t upgrade PHP so how do I disable Pro before it’s activated? Or was I supposed
   to download different plugin?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9228347)
 * hi
 * Could you check >Plugins>Installed?
 * Will you see “Advanced Orders Export For WooCommerce” twice?
 * thanks, Alex
 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9228667)
 * No it is only installed once and I can’t activate.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9229962)
 * hi Dave
 * Could you try install this version [https://www.dropbox.com/s/a7x9lgygq8x7yp7/woo-order-export-lite.zip?dl=0](https://www.dropbox.com/s/a7x9lgygq8x7yp7/woo-order-export-lite.zip?dl=0)
 * thanks, Alex
 *  Thread Starter [davedrake](https://wordpress.org/support/users/davedrake/)
 * (@davedrake)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9234954)
 * Hi Alex,
 * Thanks for the new file. Getting a similar error:
 * Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home/devsite/
   public_html/WooTest/wp-content/plugins/woo-order-export-lite/classes/class-wc-
   order-export-admin.php on line 636
 * Maybe you can answer our questions.
 * What we’re trying to test with this: We’d like to be able to export a list of
   sales – say from the last 14 days and group products by attribute. So for example,
   we’d like to see that we sold 20 shirts (whose sizes are listed as an attribute
   in WooCommerce) – 5 smalls, 10 mediums, 2 larges and 3 XL.
 * We’d also like to pull a different report (as a CSV or something for a mail merge)
   that would allow us to print shipping labels (in Word or whatever) for all orders
   in a given time (last 5 days or whatever).
 * Can we do those two things with this plugin?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9235116)
 * hi
 * Why can’t you upgrade php?
    5.2 is really old version. I can’t promise to fix
   this issue quickly. as there are a lot of other features to develop.
 * if each variation uses own sku – you can adapt code “Summary by Products” at 
   [this page](https://algolplus.com/plugins/code-samples/).
 * yes, Pro supports multiple profiles and scheduled reports too.
 * thanks, Alex

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

The topic ‘Can’t activate – getting syntax error’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/cant-activate-getting-syntax-error/#post-9235116)
 * Status: not resolved