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

Extraneous error message on installation #68

Open
odedharth opened this issue Nov 15, 2016 · 3 comments
Open

Extraneous error message on installation #68

odedharth opened this issue Nov 15, 2016 · 3 comments

Comments

@odedharth
Copy link

Hi,

I got this error at the installation:

➜  heroku-wp git:(mdacne-wp) heroku run wp core install \   
    --url=xxxx.herokuapp.com \
    --title="blog" \
    --admin_user="admin" \
    --admin_password="xxxxxxx" \
    --admin_email="[email protected]"
Running wp core install --url=mdacne-wp.herokuapp.com "--title=MDacne blog" --admin_user=admin --admin_password=mdacne-is-the-best [email protected] on ⬢ mdacne-wp... up, run.2703 (Free)
WordPress database error Table 'jdkxdktie8zjglxg.wp_options' doesn't exist for query INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('uninstall_plugins', 'a:2:{i:0;b:0;s:45:\"secure-db-connection/secure-db-connection.php\";s:32:\"WP_SecureDBConnection::uninstall\";}', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) made by include('/app/vendor/wp-cli/wp-cli/php/wp-cli.php'), WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require('wp-settings.php'), include_once('/mu-plugins/secure-db-connection/secure-db-connection.php'), register_uninstall_hook, update_option, add_option
sh: 1: -t: not found
Success: WordPress installed successfully.

I wonder what this error means?
The blog seems to work, but I'm new to WP so maybe this could lead to a problem in the future.

@Fs02
Copy link

Fs02 commented Dec 2, 2016

same here

@djgadd
Copy link

djgadd commented Dec 9, 2016

It's the secure-db-connection plugin trying to install itself before WordPress has installed. For the most part it's a mild annoyance at the install stage and shouldn't impact you if you manage to succesfully install WordPress.

If it does prevent you from installing then you need to remove the plugin as a requirement until after you've installed, which isn't particularly elegant.

For what it's worth, I resolved this issue in my project by using this to load my MU plugins and have a modified version commited to my project's repo. I've modified it to suit my needs, and got around the problem in this ticket by checking to see if WP_INSTALLING is set to true and bailing out of loading any MU plugins if it is.

I'm not sure how it would fit in with this repo, as I only used it as a reference for setting my project up for Heroku, but hopefully it'll help.

@xyu xyu added the bug label Dec 25, 2016
@xyu
Copy link
Owner

xyu commented Dec 25, 2016

@djgadd is correct, this is a harmless (expected) error. This stems from the fact that there is no database to record the mu-plugin info before the WordPress database is created.

@xyu xyu added enhancement and removed bug labels Dec 25, 2016
@xyu xyu changed the title installation error Extraneous error message on installation Dec 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants