Title: plugin interferes with WordPress CLI
Last modified: February 3, 2022

---

# plugin interferes with WordPress CLI

 *  Resolved [ericadreisbach](https://wordpress.org/support/users/ericadreisbach/)
 * (@ericadreisbach)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-interferes-with-wordpress-cli/)
 * Love this plugin! But as of the most recent WordPress update (5.9) I need to 
   deactivate the plugin in order to run CLI commands, like `wp cache flush`
 * The specific command line error looks like:
 *     ```
       Fatal error: Uncaught Error: Call to a member function setAllowedTags() on null in /plugins/svg-support/functions/attachment.php:246
       Stack trace:
       #0 /wp-includes/class-wp-hook.php(307): bodhi_svgs_apply_filters('')
       #1 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
       #2 /wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #3 /wp-settings.php(565): do_action('after_setup_the...')
       #4 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1317): require('/home/customer/...')
       #5 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1235): WP_CLI\Runner->load_wordpress()
       #6 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstra in xxxxxxxxxxxxx/plugins/svg-support/functions/attachment.php on line 246
       Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
       ```
   

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

 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-interferes-with-wordpress-cli/#post-15326077)
 * Hi there,
 * Thanks for reporting! I am working on this now and will push an update asap.
 * Thanks for your patience!
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-interferes-with-wordpress-cli/#post-15326279)
 * This should be fixed in 2.4.1.
 * I tested WP-CLI using 2.4 and reproduced the same error, then updated and no 
   error 🙂
 * Please let me know how you go and if you spot anything else.
 * And thank you for the report, support and patience!

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

The topic ‘plugin interferes with WordPress CLI’ is closed to new replies.

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=3554681)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/plugin-interferes-with-wordpress-cli/#post-15326279)
 * Status: resolved