Hi blvr_dev,
I think your site PHP version does not recognise the “short array syntax”, it must therefore be using a PHP version less than v5.4.
The plugin needs PHP v7.0+…
I’ve updated the requirements so this is more clear now. I’ve also removed the “short array syntax”. I don’t know if you can automatically update now to v2.1.1, otherwise try manually. Please note PHP below v7.0 is completely untested.
Hi,
I’m now getting the following message when trying to activate the plugin:
Fatal error: Cannot redeclare add_filter()
-
This reply was modified 1 year, 11 months ago by
blvr_dev.
After updating to php7+ I am also getting this error when I try and enable the plugin:
Fatal error: Cannot redeclare add_action() (previously declared in /home/g123/public_html/wp-includes/plugin.php:409) in /home/g123/public_html/wp-content/plugins/export-media-with-selected-content/export-media-with-content.php on line 15
Still getting fatal error
Argh, sorry! Should not fix things late in the evening…
v2.1.2 released
[27-Feb-2021 11:15:54 UTC] PHP Fatal error: Cannot redeclare add_filter() (previously declared in /var/www/vhosts/archive.site.uk/httpdocs/wp/wp-includes/plugin.php:114) in /var/www/vhosts/archive.site.uk/httpdocs/wp-content/plugins/export-media-with-selected-content/export-media-with-content.php on line 14
We had the same issue. It caused a fatal error. Our hosts have disabled it, but am pleased we weren’t the only ones!
v2.1.2 fixes the fatal errors
@joostdekeijzer Thanks so much for your help and your plugin 🙂