Title: ERROR plugin will not activate
Last modified: August 21, 2016

---

# ERROR plugin will not activate

 *  [mcpeanut](https://wordpress.org/support/users/mcpeanut/)
 * (@mcpeanut)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-plugin-will-not-activate/)
 * hi there when i try to activivate your plugin i recieve this error
 * Parse error: syntax error, unexpected ‘[‘ in /home3/mcpeanut/public_html/wp-content/
   plugins/upload-quota-per-user/upload-quota-per-user.php on line 118
 * defaulty twenty twelve theme php 5.3 …can you help me solve this please or if
   not can you help me limit the amount each user is allowed to upload by giving
   me the code i would need and where to paste it? i really need to limit my users
   to be able to upload no more than 150mb each, and i cant find any help on how
   to do this, i would love to get this plugin working!
 * please respond bro ty
 * [https://wordpress.org/plugins/upload-quota-per-user/](https://wordpress.org/plugins/upload-quota-per-user/)

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

 *  [carry2web](https://wordpress.org/support/users/carry2web/)
 * (@carry2web)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-will-not-activate/#post-4642080)
 * Edit indicated file and on line 118 change code from
 *     ```
       $user_id = get_post($id, ARRAY_A)['post_author'];
       ```
   
 * into
 *     ```
       $user_id = get_post($id, ARRAY_A);
       $user_id = $user_id['post_author'];
       ```
   
 *  [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * (@pigo3934blog)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-will-not-activate/#post-4642147)
 * Thanks for this solution.
 * Works now.

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

The topic ‘ERROR plugin will not activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/upload-quota-per-user_f1f1f1.svg)
 * [Upload Quota per User](https://wordpress.org/plugins/upload-quota-per-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/upload-quota-per-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/upload-quota-per-user/)
 * [Active Topics](https://wordpress.org/support/plugin/upload-quota-per-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/upload-quota-per-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/upload-quota-per-user/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Pigo3934blog](https://wordpress.org/support/users/pigo3934blog/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/error-plugin-will-not-activate/#post-4642147)
 * Status: not resolved