Title: Error &#8211; Cannot Activate Plugin
Last modified: August 22, 2016

---

# Error – Cannot Activate Plugin

 *  Resolved [dancappdesign](https://wordpress.org/support/users/dancappdesign/)
 * (@dancappdesign)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/)
 * This is the ONLY plugin which promises to do exactly what I need but when I try
   to activate it I get his message:
 * Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/sites/clearskydesign.
   co.uk/public_html/wp-content/plugins/mmm-file-list/mm_filelist_plugin.php on 
   line 163
 * [https://wordpress.org/plugins/mmm-file-list/](https://wordpress.org/plugins/mmm-file-list/)

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

 *  Plugin Author [Adam Bissonnette](https://wordpress.org/support/users/mmanifesto/)
 * (@mmanifesto)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705772)
 * Ok – I think I’ve fixed this using MM_FileList::$attsKeyTemplate instead of $
   this::$attsKeyTemplate,. Can you try again?
 *  Thread Starter [dancappdesign](https://wordpress.org/support/users/dancappdesign/)
 * (@dancappdesign)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705775)
 * Hi. I no longer need the plugin but neverthless have just tried to install for
   the purpose of testing your amendment. Sadly, it still doesn’t work for me – 
   could be a comaptibility issue with the theme or something.
 * Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home/sites/
   clearskydesign.co.uk/public_html/wp-content/plugins/mmm-file-list/mm_filelist_plugin.
   php on line 194
 * Please don’t feel the need to fix this for my sake any longer, though I hope 
   the recent changes fixes it for others.
 *  Plugin Author [Adam Bissonnette](https://wordpress.org/support/users/mmanifesto/)
 * (@mmanifesto)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705776)
 * Hey Dan,
 * That’s really strange that it’s not working. I almost think you must be running
   a different version of php if (considering the errors shown so far). That line
   194 is using the array_map function which only works in version of php 4.06 and
   higher. By any chance are you running an earlier version?
 *  Plugin Author [Adam Bissonnette](https://wordpress.org/support/users/mmanifesto/)
 * (@mmanifesto)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705778)
 * Ok – just to followup on this. I checked your site and it’s running php 5.2.17
   which doesn’t like anonymous functions in array_map() which was causing the issue.
   I’ve cleared that up so version 1.2 should be perfectly usable.
 * Sorry again that the code wasn’t working for you! I’ll make a point to check 
   it out in multiple versions of php going forward.
 *  Thread Starter [dancappdesign](https://wordpress.org/support/users/dancappdesign/)
 * (@dancappdesign)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705779)
 * Works perfectly now!!! Many thanks for your close attention to this.

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

The topic ‘Error – Cannot Activate Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mmm-file-list_d6d6d6.svg)
 * [Mmm Simple File List](https://wordpress.org/plugins/mmm-file-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mmm-file-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mmm-file-list/)
 * [Active Topics](https://wordpress.org/support/plugin/mmm-file-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mmm-file-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mmm-file-list/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dancappdesign](https://wordpress.org/support/users/dancappdesign/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/error-cannot-activate-plugin/#post-5705779)
 * Status: resolved