{"id":69,"date":"2020-01-27T18:43:00","date_gmt":"2020-01-27T18:43:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=69"},"modified":"2024-02-06T08:14:02","modified_gmt":"2024-02-06T13:14:02","slug":"drush-command-pm-enable-needs-a-higher-bootstrap-level-to-run","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/drush-command-pm-enable-needs-a-higher-bootstrap-level-to-run\/","title":{"rendered":"drush: command pm-enable needs a higher bootstrap level to run"},"content":{"rendered":"\n<p>This page shows what to do when you get the following error when using drush<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Command pm-enable needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command.<\/code><\/pre>\n\n\n\n<p>This error is basically saying that it cannot locate drush or the correct host to execute the drush command. To solve the problem<\/p>\n\n\n\n<p><strong>1. Make sure you in the correct directory<\/strong>&nbsp;In command line, cd to the the directory where your drupal is installed. Then run drush en views. If you still get the error, continue to step 2.<\/p>\n\n\n\n<p><strong>2. Make sure you have execute permission on bin\/php<\/strong>&nbsp;In command line, run the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>drush status<\/code><\/pre>\n\n\n\n<p>You will see something like the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> % drush status                                                                                                                                                                                                                            \nDrupal version                  :  7.34\nSite URI                        :  http:\/\/default\nDatabase driver                 :  mysql\nDatabase username               :  root\nDatabase name                   :  test1\nDatabase                        :  Connected\nDrupal bootstrap                :  Successful\nDrupal user                     :  Anonymous\nDefault theme                   :  bartik\nAdministration theme            :  seven\nPHP executable                  :  \/usr\/bin\/php\nPHP configuration               :  \/etc\/php5\/cli\/php.ini\nPHP OS                          :  Linux\nDrush version                   :  6.0-dev\nDrush configuration             :\nDrush alias files               :\nDrupal root                     :  \/vagrant\/public\/local.dev\/druptest1\nSite path                       :  sites\/default\nFile directory path             :  sites\/default\/files\nTemporary file directory path   :  \/tmp<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This page shows what to do when you get the following error when using drush This error is basically saying that it cannot locate drush or the correct host to execute the drush command. To solve the problem 1. Make sure you in the correct directory&nbsp;In command line, cd to the the directory where your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[21],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-drupal","tag-drupal"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/69\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}