[wp-trac] [WordPress Trac] #51676: Installer doesn't start on fresh installation [ver. 5.5.2]

WordPress Trac noreply at wordpress.org
Fri Oct 30 10:18:11 UTC 2020


#51676: Installer doesn't start on fresh installation [ver. 5.5.2]
--------------------------+------------------------------
 Reporter:  garubi        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by garubi):

 Googling for the same problem, it looks like the problem is in
 {{{
  wp-includes/functions.php at line 1756
 }}}


 As I found on this support forum post(https://wordpress.org/support/topic
 /wordpress-installer-error/#post-13600170), this code checks if the tables
 in db already exist, and for some reason on some environments get a false
 positive:
 {{{#!php
 <?php
     $described_table = $wpdb->get_results( "DESCRIBE $table;" );
     if ( is_array( $described_table ) && count( $described_table ) === 0 )
 {
         continue;
     }
 }}}

 if you replace that with:
 {{{#!php
 <?php
 if ( ! $wpdb->get_results( "DESCRIBE $table;" ) ) {
     continue;
 }
 }}}

 the installer works just fine.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51676#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list