Title: Cannot activate plugin &#8211; Syntax Error!
Last modified: August 21, 2016

---

# Cannot activate plugin – Syntax Error!

 *  [G-Olly](https://wordpress.org/support/users/g-olly/)
 * (@g-olly)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/)
 * Just tried activating the plugin and got this fatal error message:
 * “Plugin could not be activated because it triggered a fatal error.
 * Parse error: syntax error, unexpected ‘[‘ in /mysite.com/wp-content/plugins/dnui-
   delete-not-used-image-wordpress/php/logic/dnuiL.php on line 83″
 * Any idea and what could be causing this?
 * [https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)

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

 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992133)
 * Yes i the same problem of [http://wordpress.org/support/topic/dnui-version-10-causes-white-screen?replies=9](http://wordpress.org/support/topic/dnui-version-10-causes-white-screen?replies=9)
   is because you have php 5.3.x, but i put syntax of php 5.4, i’m working on fix
   that
 *  Thread Starter [G-Olly](https://wordpress.org/support/users/g-olly/)
 * (@g-olly)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992137)
 * Ahh I see, thanks for the response Nicearma. I can either wait for the fix or
   I can change the syntax myself, if you believe that would work?
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992142)
 * I put one new version 1.1.1 i think i put all fine, because i’m trying to install
   php 5.3 but i have to change alots of things in my computer, tell me if is ok
 *  [KMidas](https://wordpress.org/support/users/kmidas/)
 * (@kmidas)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992150)
 * v 1.1.1 says
    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/
   dnui-delete-not-used-image-wordpress/php/logic/dnuiL.php on line 94
 *  Thread Starter [G-Olly](https://wordpress.org/support/users/g-olly/)
 * (@g-olly)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992232)
 * Hi Nicearma, I have just uploaded v1.1.2 and this seems to work for me now. Unfortunately
   though, having looked at the results it seems that DNUI is referencing images
   that are used by Woocommerce and my theme as not used (as you mentioned in your
   blurb might happen).
 * Do you have any plans to make this plugin compatible with Woocommerce?
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992234)
 * I will try to install and see what i can do about Woocommerce, i will tell you
   more if something is done
 *  Thread Starter [G-Olly](https://wordpress.org/support/users/g-olly/)
 * (@g-olly)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992238)
 * Ok, thanks Nicearma, the plugin would be perfect if it wasn’t for the other plugins
   that I have installed. Good work.
 *  Plugin Author [nicearma](https://wordpress.org/support/users/nicearma/)
 * (@nicearma)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992419)
 * Do still use the plugin? you want the woocommerce integration?

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

The topic ‘Cannot activate plugin – Syntax Error!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dnui-delete-not-used-image-wordpress.
   svg)
 * [DNUI](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dnui-delete-not-used-image-wordpress/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 8 replies
 * 3 participants
 * Last reply from: [nicearma](https://wordpress.org/support/users/nicearma/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/cannot-activate-plugin-syntax-error/#post-4992419)
 * Status: not resolved