[wp-trac] [WordPress Trac] #51253: Fatal erro when Updating.
WordPress Trac
noreply at wordpress.org
Sat Sep 5 14:15:30 UTC 2020
#51253: Fatal erro when Updating.
--------------------------+-----------------------------
Reporter: m6097 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.5.1
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi
when I tried to update to 5.5.1, I got the following
{{{
Fatal error: Uncaught Error: Call to undefined function
wp_is_auto_update_enabled_for_type() in /var/www/html/wp/wp-
admin/plugins.php:570 Stack trace: #0 {main} thrown in /var/www/html/wp
/wp-admin/plugins.php on line 570
}}}
I got a way out by commenting out the following lines from wp-admin
/update-core.php
{{{#!php
/*
if ( ( current_user_can( 'update_themes' ) &&
wp_is_auto_update_enabled_for_type( 'theme' ) ) || ( current_user_can(
'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) ) {
$help_tab_autoupdates = '<p>' . __( 'Auto-updates can be enabled
or disabled for each individual theme or plugin. Themes or plugins with
auto-updates enabled will display the estimated date of the next auto-
update. Auto-updates depends on the WP-Cron task scheduling system.' ) .
'</p>';
$help_tab_autoupdates .= '<p>' . __( 'Please note: Third-party
themes and plugins, or custom code, may override WordPress scheduling.' )
. '</p>';
get_current_screen()->add_help_tab(
array(
'id' => 'plugins-themes-auto-updates',
'title' => __( 'Auto-updates' ),
'content' => $help_tab_autoupdates,
)
);
$help_sidebar_autoupdates = '<p>' . __( '<a
href="https://wordpress.org/support/article/plugins-themes-auto-
updates/">Learn more: Auto-updates documentation</a>' ) . '</p>';
}
*/
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51253>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list