wpheadless icon indicating copy to clipboard operation
wpheadless copied to clipboard

WordPress database error Table 'wpheadless.wp_blogs' doesn't exist ...

Open pranaypratyush opened this issue 6 years ago • 7 comments

[26-Jul-2020 08:20:29 UTC] WordPress database error Table 'wpheadless.wp_blogs' doesn't exist for query SELECT  wp_blogs.blog_id FROM wp_blogs  WHERE domain = 'localhost' AND path = '/
'  ORDER BY wp_blogs.blog_id ASC LIMIT 1 made by include('phar:///usr/local/bin/wp/php/boot-phar.php'), include('phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php'), WP_CLI\
bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require('wp-settings.php'), require('wp-includes/ms-settings.php'), ms_load_curr
ent_site_and_network, get_site_by_path, get_sites, WP_Site_Query->query, WP_Site_Query->get_sites, WP_Site_Query->get_site_ids
[26-Jul-2020 08:20:29 UTC] WordPress database error Table 'wpheadless.wp_sitemeta' doesn't exist for query SELECT meta_value FROM wp_sitemeta WHERE meta_key = 'site_name' AND site_id =
 1 made by include('phar:///usr/local/bin/wp/php/boot-phar.php'), include('phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php'), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunn
er->process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require('wp-settings.php'), require('wp-includes/ms-settings.php'), WP_Network->__construct, WP_Network->_set_site_nam
e, get_network_option

while running sudo ./run-task install

pranaypratyush avatar Jul 26 '20 12:07 pranaypratyush

That's ok. It is part of output from wp-cli core multisite-install command.

tsertkov avatar Jul 28 '20 08:07 tsertkov

Not sure what broke but I can't access the dashboard at port 80. Nginx says 404

On Tue, 28 Jul, 2020, 2:30 pm Aleksandr Tsertkov, [email protected] wrote:

That's ok. It is part of output from wp-cli core multisite-install command.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WpHeadless/wpheadless/issues/34#issuecomment-664894837, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQYXS3Q6AXSMLODXDBKABDR52HRRANCNFSM4PH6SNVA .

pranaypratyush avatar Jul 28 '20 09:07 pranaypratyush

image try https://localhost

tsertkov avatar Jul 28 '20 09:07 tsertkov

I couldn't do it cause I don't have a gui but wget localhost does give me a page that looks like wordpress. I see the problem now, but how do I access it from the outside?

pranaypratyush avatar Jul 28 '20 09:07 pranaypratyush

I set the domain variable to my external IP address but it still shows 404.

pranaypratyush avatar Jul 28 '20 14:07 pranaypratyush

Wordpress is a beast! Use wp-update-siteurl to update wordpress db records according to domain change in dot-env file.

tsertkov avatar Jul 28 '20 15:07 tsertkov

Still 404. I even ran the destroy script and re installed it with domain setting.

pranaypratyush avatar Jul 28 '20 16:07 pranaypratyush