2 related errors? And why do they occur? WordPress database error table ‘xxx’ does not exist for query SELECT a.id FROM and missing slug /wp-admin/

Question

Good day,

On one side the error “WordPress database error table ‘xxx’ does not exist for query SELECT a.id FROM xxx”.

On the other hand, the absence of the /wp-admin/ slug.

2 interconnected problems?

The following problem occurs:

The problem only occurs when you install the plugin in question:

  1. database Error
  2. on a certain link of the plugin the slug /wp-admin/ is omitted. All other links work!

For clarification:

First step: WP is installed quite fresh. No adjustments are made.

Second step: the plugin in question is installed.

Immediately we get the following error message in the debug log:

WordPress database error Table ‘xxx_xx.xx_xx_xxxx_xxxxx’ does not exist for query SELECT a.id FROM xx_xx_xxxx_xxxxx a WHERE parent_id = 0 AND type=”xxxxx” made by require_once(‘wp-admin/admin. php’), do_action(‘admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, xx_xxxx_xxx, do_action(‘xx_xxxx_xxxx’), WP_Hook->do_action, WP_Hook->apply_filters, xx_xxx_xxx_xxxx, do_action(‘xx_xxx_xxx_xxxx’), WP_Hook->do_action, WP_Hook->apply_filters, xx_xxxx->xxxxx_xxxx_xxxxx, require_once(‘/plugins/xxxx. php’), xx_xxx->__xxxx, xx_xxx_xxxxx->xxxx_xxxx, xxx_xxx_xxx_xxx, xxx_xxx_xxxx_xxxx_xxxx_xxxx_xxxx

PHP warning: Cannot modify header information – headers already sent by (output started at /some/path/wp-includes/class-wpdb.php:1634) in /some/path/wp-admin/includes/misc.php on line 1416

PHP Warning: Cannot modify header information – headers already sent by (output started at /some/path/wp-includes/class-wpdb.php:1634) in /some/path/wp-includes/functions.php on line 6865

PHP Warning: Cannot modify header information – headers already sent by (output started at /some/path/wp-includes/class-wpdb.php:1634) in /some/path/wp-admin/admin-header.php on line 9

Database table and fields have all been created though.

In the admin area do the following:

Then clicked on the corresponding link of the associated plugin. An incomplete URL is output. Instead of http://www.somedomain.xxx/wp-admin/admin.php?page=xxxxxx-xxxx http://www.somedomain.xxx/ is output, but the correct content appears.

If you then click on another menu item, you are redirected to a wrong URL and receive a 404 error. The slug /wp-admin/ is missing! Instead of e.g. https://www.somedomain.xxx/wp-admin/edit.php?post_type=page https://www.somedomain.xxx/edit.php?post_type=page is displayed.

Does anyone have an answer to what it could be? And are the errors related to each other?

Thank you.

0
xcottii 2 months 2023-03-27T03:30:01-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse