Skip to content

After fresh install, site health does not work #86

@dilyanpalauzov

Description

@dilyanpalauzov

I install a fresh site with WP4PG 3.0. Then I go to site-health.php and see

[ERROR: syntax error at or near "'table'" LINE 1: SELECT TABLE_NAME AS 'table', TABLE_ROWS AS 'rows', SUM(data... ^]
SELECT TABLE_NAME AS 'table', TABLE_ROWS AS 'rows', SUM(data_length + index_length) as 'bytes' FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'blog_at' AND TABLE_NAME IN ('wp_comments','wp_options','wp_posts','wp_terms','wp_users') GROUP BY TABLE_NAME;

Warning: Undefined array key "wp_comments" in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Attempt to read property "rows" on null in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Undefined array key "wp_options" in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Attempt to read property "rows" on null in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Undefined array key "wp_posts" in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Attempt to read property "rows" on null in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Undefined array key "wp_terms" in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Attempt to read property "rows" on null in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Undefined array key "wp_users" in /at/wp-admin/includes/class-wp-site-health.php on line 3595

Warning: Attempt to read property "rows" on null in /at/wp-admin/includes/class-wp-site-health.php on line 3595

The tables wp_users, wp_posts, wp_options do exist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions