We have it running fine on WP 5.2.4.
Just don’t be fooled by the static meta information on the ww.wp.xz.cn plugin page which only gets updated with a new plugin release 🙂
Best,
Jan
Would it be possible to get it tested for the latest release? I start getting all kind of warnings now and it’s really annoying, when the plugin works perfectly fine.
@janthiel Are you still using this plugin?
Mass deactivation works fine, but mass activation is failing for me.
At least for WP Rocket. This is in my errorlog:
PHP Notice: Constant WP_ROCKET_PLUGIN_NAME already defined in /www/htdocs/xxx/yyy/wp/wp-content/plugins/wp-rocket/inc/main.php on line 180
PHP Notice: Constant WP_ROCKET_PLUGIN_SLUG already defined in /www/htdocs/xxx/yyy/wp/wp-content/plugins/wp-rocket/inc/main.php on line 181
PHP Fatal error: Cannot redeclare get_rocket_option() (previously declared in /www/htdocs/xxx/yyy/wp/wp-content/plugins/wp-rocket/inc/functions/options.php:18) in /www/htdocs/xxx/yyy/wp/wp-content/plugins/wp-rocket/inc/functions/options.php on line 23
Any help is much appreciated!
Or do anyone know an alternative plugin for multisite mass activation for plugins?
All the best
Torsten
@zodiac1978 Never tried Mass-Activate before with WP-Rocket.
Anyway, I just did: I do have the same error on our test servers if I try Mass-Activate with WP-Rocket.
So it seems WP-Rocket and this Plugin doesn’t work well together. Although never had issues with other plugins to Mass-Activate or Deactivate.
Why don’t you use WP-CLI? It allows you quite easily to do what you want. Just create a bash script and use something like this:
You might need to replace the calls to wp with a whole path to the WP-CLI executable.
#!/bin/bash
PLUGINS_TO_ACTIVATE="hellodolly antispambee"
for SITE_URL in $(wp site list --fields=domain,path,archived,deleted --format=csv | grep ",0,0$" | awk -F ',' '{print $1 $2}')
do
echo "[$SITE_URL] Activate Plugins: $PLUGINS_TO_ACTIVATE"
wp plugin activate $PLUGINS_TO_ACTIVATE--url="$SITE_URL"
echo "[$SITE_URL] done!"
done
-
This reply was modified 6 years ago by
janthiel.