Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Error establishing a database connection & Localhost links #3

Open
wuffo opened this issue Jun 29, 2022 · 4 comments
Open

Error establishing a database connection & Localhost links #3

wuffo opened this issue Jun 29, 2022 · 4 comments

Comments

@wuffo
Copy link

wuffo commented Jun 29, 2022

Getting the following in the log. Plus, Wordpress links go to localhost [i.e. Wordrpress opens in the browser at the .dev URL, but at the home page, all links are then localhost.]. Kinda new at this - possible it's an easy fix. Gotta read more.... Thanks for any pointers.

up to date, audited 1 package in 273ms

found 0 vulnerabilities

> [email protected] build
> echo "No build script specified" && exit 0

No build script specified
Setting up WordPress at https://wuffo-vscode-remote-try-wp-9v4962gv4-8080.githubpreview.dev
Error: Failed to get current SQL modes. Reason: ERROR 2002 (HY000): Can't connect to MySQL server on 'db' (115)

Error: Error establishing a database connection. This either means that the username and password information in your `wp-config.php` file is incorrect or we can’t contact the database server at `db`. This could mean your host’s database server is down.
Activate vscode-remote-try-wp
Error: Error establishing a database connection.
le '/var/www/html/xdebug.log' could not be opened.

@soderlind
Copy link
Owner

Before I dive into this, kind of busy at work, could you please fork https://github.com/soderlind/super-admin-all-sites-menu and see if you're able to run it in codepaces?

@wuffo
Copy link
Author

wuffo commented Jun 30, 2022

Yes, seems to run fine. But Site Health reports:

  1. A scheduled event has failed: The scheduled event, wp_https_detection, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
  2. The REST API did not behave correctly: The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages. The REST API did not process the context query parameter correctly.

@soderlind
Copy link
Owner

Ref 2: The latest version, 1.6.4, should have fixed this. Please look in wp-admin->Plugins and check if you're running 1.6.4

@wuffo
Copy link
Author

wuffo commented Jul 5, 2022

Yeah, the latest version of the plugin was installed, as well as WP 6.0. Removing the plugin didn't affect the errors.

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

No branches or pull requests

2 participants