[wp-trac] [WordPress Trac] #43952: Database error inserting cron job on fresh install

WordPress Trac noreply at wordpress.org
Thu May 3 21:14:45 UTC 2018


#43952: Database error inserting cron job on fresh install
------------------------------+----------------------
 Reporter:  iandunn           |       Owner:  iandunn
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  4.9.6
Component:  Upgrade/Install   |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  gdpr fixed-major  |     Focuses:
------------------------------+----------------------
Changes (by azaozz):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43163" 43163]:
 {{{
 #!CommitTicketReference repository="" revision="43163"
 Privacy: Return before scheduling cron during install to avoid error.

 r43046 introduced wp_schedule_delete_old_privacy_export_files() to
 schedule the wp_privacy_delete_old_export_files cron job, but it did not
 check to make sure it wasn't running in the context of the install
 process. When it did run in that context, it created a database error,
 because the necessary database tables don't exist at that point.

 Checking the current context and returning early during the installation
 phase avoids that issue.

 Props helen, timothyblynjacobs, iandunn.
 Merges [43162] to the 4.9 branch.
 Fixes #43952.
 }}}

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


More information about the wp-trac mailing list