{"id":15326065,"date":"2022-02-03T21:03:41","date_gmt":"2022-02-03T21:03:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-interferes-with-wordpress-cli\/"},"modified":"2022-02-03T21:03:41","modified_gmt":"2022-02-03T21:03:41","slug":"plugin-interferes-with-wordpress-cli","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-interferes-with-wordpress-cli\/","title":{"rendered":"plugin interferes with WordPress CLI"},"content":{"rendered":"<p>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 <code>wp cache flush<\/code><\/p>\n<p>The specific command line error looks like: <\/p>\n<pre><code>Fatal error: Uncaught Error: Call to a member function setAllowedTags() on null in \/plugins\/svg-support\/functions\/attachment.php:246\nStack trace:\n#0 \/wp-includes\/class-wp-hook.php(307): bodhi_svgs_apply_filters(&#039;&#039;)\n#1 \/wp-includes\/class-wp-hook.php(331): WP_Hook-&gt;apply_filters(NULL, Array)\n#2 \/wp-includes\/plugin.php(474): WP_Hook-&gt;do_action(Array)\n#3 \/wp-settings.php(565): do_action(&#039;after_setup_the...&#039;)\n#4 phar:\/\/\/usr\/local\/bin\/wp-cli.phar\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Runner.php(1317): require(&#039;\/home\/customer\/...&#039;)\n#5 phar:\/\/\/usr\/local\/bin\/wp-cli.phar\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Runner.php(1235): WP_CLI\\Runner-&gt;load_wordpress()\n#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\nError: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-15326065","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15326065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15326065\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15326065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}