Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd/ps ignores database prefix #12

Open
jdleonard opened this issue Nov 12, 2013 · 1 comment
Open

pd/ps ignores database prefix #12

jdleonard opened this issue Nov 12, 2013 · 1 comment

Comments

@jdleonard
Copy link

Terminatur fails to set the database prefix in settings.php for sites that have one upon ps/pd. This results in fun errors such as:

vagrant@kala:/var/www$ drush ps hippos.dev
<h1>Additional uncaught exception thrown while handling exception.</h1><h2>Original</h2><p>PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table &amp;#039;hippos_kala.blocked_ips&amp;#039; doesn&amp;#039;t exist: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array
(
    [:ip] =&amp;gt; 127.0.0.1
)
 in drupal_is_denied() (line 1934 of /var/www/hippos/includes/bootstrap.inc).</p><h2>Additional</h2><p>PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table &amp;#039;hippos_kala.system&amp;#039; doesn&amp;#039;t exist: SELECT * FROM {system} WHERE type = &amp;#039;theme&amp;#039; OR (type = &amp;#039;module&amp;#039; AND status = 1) ORDER BY weight ASC, name ASC; Array
(
)
 in system_list() (line 165 of /var/www/hippos/includes/module.inc).</p><hr />Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                                                                                   [error]
Site built!
@pirog
Copy link
Contributor

pirog commented Nov 12, 2013

Good catch JD! We never use prefixes so not surprising we just omitted. Will look to address this soon... of course if you want to submit a patch or pull request we are amenable to that as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants