Ok – I think I’ve fixed this using MM_FileList::$attsKeyTemplate instead of $this::$attsKeyTemplate,. Can you try again?
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.
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?
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.
Works perfectly now!!! Many thanks for your close attention to this.