[wp-trac] [WordPress Trac] #48610: Fatal Error during upgrade (upgrade.php) caused by theme unavailability

WordPress Trac noreply at wordpress.org
Fri Dec 16 00:19:49 UTC 2022


#48610: Fatal Error during upgrade (upgrade.php) caused by theme unavailability
-----------------------------+----------------------
 Reporter:  thomasfw         |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Upgrade/Install  |     Version:  5.3
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by costdev):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @thomasfw, thanks for opening this ticket.

 While I appreciate that you have a setup that locks things down, I would
 recommend keeping all mu-plugin dependencies within the mu-plugins folder,
 and load them with the mu-plugin.

 However, taking your setup and issue into account, I note that you didn't
 mention the `priority` with which you hooked `after_setup_theme`. As a
 later hook worked, it may be possible that `add_action(
 'after_setup_theme', 'add_my_shortcode', 999 );` may have resolved the
 issue. Ultimately, it depends on when the theme first defines the class.

 For now, I think this could be explored in
 [https://wordpress.org/support/forum/wp-advanced/ the "Developing with
 WordPress" support forums].

 I'll close this ticket as `invalid`, but not because your issue is
 invalid. It's just the keyword we use when this hasn't definitively
 identified an issue in WordPress Core, and the conversation should occur
 elsewhere to explore some possibilities.

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


More information about the wp-trac mailing list