[wp-trac] [WordPress Trac] #54849: Site transients cause DB errors when installing

WordPress Trac noreply at wordpress.org
Thu Jan 27 22:17:13 UTC 2022


#54849: Site transients cause DB errors when installing
--------------------------------+---------------------
 Reporter:  peterwilsoncc       |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  5.9.1
Component:  Options, Meta APIs  |     Version:  5.9
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+---------------------
Changes (by peterwilsoncc):

 * keywords:  reporter-feedback =>


Comment:

 For the configuration I was using, the theme directories were defined in
 the `wp-config.php` file.

 The key portion of my config file follows, I use a custom content
 directory but any valid theme directory should work:

 {{{#!php
 <?php
 define( 'WP_DEBUG_LOG', true );

 ## THEME DIRECTORIES
 if ( empty( $GLOBALS['wp_theme_directories'] ) ) {
         $GLOBALS['wp_theme_directories'] = array();
 }
 if ( file_exists( WP_CONTENT_DIR . '/themes' ) ) {
         $GLOBALS['wp_theme_directories'][] = WP_CONTENT_DIR . '/themes';
 }
 $GLOBALS['wp_theme_directories'][] = ABSPATH . 'wp-content/themes';
 }}}

 This will cause WP to attempt to write the transient during the install
 process.

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


More information about the wp-trac mailing list