WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#42194 closed defect (bug) (invalid)

Enabling multisite with custom table prefix not work

Reported by: macagoraga Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords:
Focuses: multisite Cc:

Description

Hi,
I am trying to enable multisite but the tables is not created when I add in wp-config.php define('MULTISITE', true), but an error appear:

Error establishing a database connection

In log I can see:

[12-Oct-2017 05:53:33 UTC] WordPress database error Unknown column 'wp_' in 'field list' for query SELECT wp_

Since I have custom table prefix in config, seem that installer of extra tables for multisite use default prefix wp_

Or I missed something?

Thanks

Change History (5)

#1 @macagoraga
4 years ago

I try change all prefix to wp_
but also in this case, I get the same error...

Not sure why, but as soon I add define('MULTISITE', true);
then like db is not found, see image below.

But work fine db connection without it.

https://postimg.org/image/782ccuo9y3/

#2 @ocean90
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 4.8.2 deleted

Hello @macagoraga, welcome to WordPress Trac!

This Trac is used for enhancements and bug reporting for the WordPress core software.
For support I suggest using our support forums at https://wordpress.org/support/. We also have a codex page for setting up a multisite install, note the WP_ALLOW_MULTISITE constant.

#3 @macagoraga
4 years ago

Hi @ocean90

I think that there is a bug, because I have a fresh install, no plugins or themes.

We also have a codex page for setting up a multisite install, note the WP_ALLOW_MULTISITE constant.

When I use define('WP_ALLOW_MULTISITE', true);

then nothing happen, it's like ignored.
It's loaded single site, and tables is not created.

Does not sound like a bug?

#4 @macagoraga
4 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#5 @macagoraga
4 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.