[wp-trac] [WordPress Trac] #34091: Errors thrown after wp_termmeta table created but db updates not yet run

WordPress Trac noreply at wordpress.org
Wed Sep 30 02:26:11 UTC 2015


#34091: Errors thrown after wp_termmeta table created but db updates not yet run
-----------------------------+-----------------------------
 Reporter:  morganestes      |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 After [34529], a site that is auto-updated but hasn't had an admin user
 log in yet throws errors about a missing `wp_termmeta` table. If display
 errors are enabled on the site, visitors are shown a cryptic message that
 they can't do anything about.

 [[Image(https://cldup.com/AoaLPGXKIl.png)]]

 {{{
 [29-Sep-2015 03:38:15 UTC] WordPress database error Table
 'wordpress_develop.wp_termmeta' doesn't exist for query SELECT term_id,
 meta_key, meta_value FROM wp_termmeta WHERE term_id IN
 (2,3,4,5,6,37,38,39,40,41,7,8,9,10,11,12,13,14,15,42,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,1,34,35,36)
 ORDER BY meta_id ASC made by require('wp-blog-header.php'), require_once
 ('wp-includes/template-loader.php'),
 include('/themes/twentysixteen/index.php'), get_header, locate_template,
 load_template, require_once('/themes/twentysixteen/header.php'),
 wp_nav_menu, wp_get_nav_menu_items, get_terms, update_termmeta_cache,
 update_meta_cache
 }}}

 I tried switching themes and tried with Twenty Sixteen and Twenty Fifteen
 to rule out themes. I signed into `/wp-admin/` and was prompted to update
 the database, which cleared the error message on the next page load.

 If there's a way to prevent causing errors during the update/upgrade
 process when adding a new table, I think we should find it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34091>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list