Title: Syntax error when activating
Last modified: February 22, 2017

---

# Syntax error when activating

 *  Resolved [tifcc](https://wordpress.org/support/users/tifcc/)
 * (@tifcc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/)
 * I’m getting a Syntax error, unexpected ‘[‘ in line 42 of som-woocommerce-download-
   now.php when trying to activate the plugin.

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

 *  Plugin Author [Richard Webster](https://wordpress.org/support/users/rwebster85/)
 * (@rwebster85)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833684)
 * What version of WordPress and this plugin are you using?
 * On a current install of WP that error never shows.
    -  This reply was modified 9 years, 3 months ago by [Richard Webster](https://wordpress.org/support/users/rwebster85/).
 *  Thread Starter [tifcc](https://wordpress.org/support/users/tifcc/)
 * (@tifcc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833703)
 * I’m running
    WordPress version 4.7.2 Woocommerce version 2.6.14 and Download 
   Now – WooCommerce version 2.3.4
 *  Thread Starter [tifcc](https://wordpress.org/support/users/tifcc/)
 * (@tifcc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833799)
 * I’ll first try a clean install first and see if the error still occurs…
 *  Plugin Author [Richard Webster](https://wordpress.org/support/users/rwebster85/)
 * (@rwebster85)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833813)
 * OK mate no probs. Unless there’s a plugin(s) you can think of that might affect
   that function? Security plugin for example?
 * This is the function I’m using:
 * [https://developer.wordpress.org/reference/functions/wp_upload_dir/](https://developer.wordpress.org/reference/functions/wp_upload_dir/)
 *  Plugin Author [Richard Webster](https://wordpress.org/support/users/rwebster85/)
 * (@rwebster85)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833821)
 * It could be the folder wasn’t created in the install or isn’t writable. But it’s
   kind of needed by WordPress if you expect to upload anything, images and such.
 *  Thread Starter [tifcc](https://wordpress.org/support/users/tifcc/)
 * (@tifcc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833841)
 * After clean install with only woocommerce installed and Download Now issue still
   occurs.
    No other plugins are installed.
 * I just send you a mail.
 *  Thread Starter [tifcc](https://wordpress.org/support/users/tifcc/)
 * (@tifcc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8833879)
 * I checked the unix rights for the uploads folder. It is set to 755
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8896947)
 * Geez, this is getting repetitive…
 * [@rwebster85](https://wordpress.org/support/users/rwebster85/) I’ve deleted your
   offer to login to your user’s site. I’m am 100% sure you mean well but please
   _never ask for credentials on these forums._
 * [http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff](http://codex.wordpress.org/Forum_Welcome#The_Bad_Stuff)
 * Now for the why: The internet is a wonderful place full of very nice people and
   a few very bad ones. I’m sure everyone here is very nice however, by giving some
   ones keys to your house you are trusting they wont steal anything. Likewise the
   person who takes the keys is now responsible for the house FOREVER.
 * If something was to go wrong, then you the author may well legally become liable
   for damages, which they would not normally have been as their software is provided
   without warranty.
 * Please be aware that repeatedly asking for credentials will result in us asking
   you to repeatedly stop before escalating up to the plugins team.

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

The topic ‘Syntax error when activating’ is closed to new replies.

 * ![](https://ps.w.org/download-now-for-woocommerce/assets/icon-256x256.png?rev
   =3471148)
 * [Free Downloads WooCommerce](https://wordpress.org/plugins/download-now-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-now-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-now-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/download-now-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-now-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-now-for-woocommerce/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/syntax-error-when-activating-2/#post-8896947)
 * Status: resolved