Lỗi class-bulk-upgrader-skin.php on line 154

Uncaught ArgumentCountError: 3 arguments are required, 2 given in C:\xampp\htdocs\brandyukti\wp-admin\includes\class-bulk-upgrader-skin.php:152 Stack trace:

0 C:\xampp\htdocs\brandyukti\wp-admin\includes\class-bulk-upgrader-skin.php(152): sprintf('%1$s installed ...', 'One Click Demo ...')

1 C:\xampp\htdocs\brandyukti\wp-content\themes\company-elite\vendors\tgm\class-tgm-plugin-activation.php(3553): Bulk_Upgrader_Skin->after('One Click Demo ...')

2 C:\xampp\htdocs\brandyukti\wp-admin\includes\class-wp-upgrader.php(813): TGMPA_Bulk_Installer_Skin->after()

3 C:\xampp\htdocs\brandyukti\wp-content\themes\company-elite\vendors\tgm\class-tgm-plugin-activation.php(3173): WP_Upgrader->run(Array)

4 C:\xampp\htdocs\brandyukti\wp-content\themes\company-elite\vendors\tgm\class-tgm-plugin-activation.php(3286): TGMPA_Bulk_Installer->run(Array)

5 C:\xampp\htdocs\brandyukti\wp-content\themes\company-elite\vendors\tgm\class-tgm-plugin-activation.php(2892): TGMPA_Bulk_Installer->bulk_install(Array)

6 C:\xampp\htdocs\brandyukti\wp-content\themes\company-elite\vendors\tgm\class-tgm-plugin-activation.php(658): TGMPA_List_Table->process_bulk_actions()

7 C:\xampp\htdocs\brandyukti\wp-includes\class-wp-hook.php(287): TGM_Plugin_Activation->install_plugins_page('')

8 C:\xampp\htdocs\brandyukti\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters('', Array)

9 C:\xampp\htdocs\brandyukti\wp-includes\plugin.php(484): WP_Hook->do_action(Array)

10 C:\xampp\htdocs\brandyukti\wp-admin\admin.php(259): do_action('appearance_page...')

11 C:\xampp\htdocs\brandyukti\wp-admin\themes.php(10): require_once('C:\xampp\htdocs...')

12 {main} thrown in C:\xampp\htdocs\brandyukti\wp-admin\includes\class-bulk-upgrader-skin.php on line 152

asked Dec 11, 2020 at 5:01

Lỗi class-bulk-upgrader-skin.php on line 154

1

Today, I also have the same problem.

I try to get back to the 5.5.3 version of WordPress but the other issue has happened. Then it tells me that my site is not compatible with PHP 8.0 @@.

This's really amazing for me because I don't know when my PHP automatically update @@.

So the thing I do is downgrade to PHP 7.4 version and everything comeback work fine.

Let's try to with my way.

Cheers.

answered Dec 20, 2020 at 15:56

Lỗi class-bulk-upgrader-skin.php on line 154

2

I couldn't make it work with [email protected] and found and as it said downloaded new code from main repo and now the error has gone :)

answered May 3, 2021 at 13:29

Reza BabaeiReza Babaei

9771 gold badge14 silver badges23 bronze badges

Installing TGMPA will solve the issue in php 8. Checkout TGM Plugin and follow the installation instructions.

solved-warning-sprintf-arguments-class-bulk-upgrader-skin-php-line-154

Lỗi class-bulk-upgrader-skin.php on line 154

admin

all author posts

Post navigation

Previous post: Solved – Warning: sprintf(): Too few arguments in class-bulk-upgrader-skin.php on line 154

‘ . sprintf($this->upgrader->strings[‘skin_update_successful’], $title, ‘jQuery(\’

progress-‘ . esc_js($this->upgrader->update_current) . ‘\’).toggle();jQuery(\’span\’, this).toggle(); return false;’) . ‘

You can fix it by replacing code in the file: www/wp-admin/includes/class-bulk-upgrader-skin.php Old code:

if ( $this->result && ! is_wp_error( $this->result ) ) {
  if ( ! $this->error ) {
    echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
      '<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
      ' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
      '</p></div>';
  }
  echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
}
if ( $this->result && ! is_wp_error( $this->result ) ) {
  if ( ! $this->error )
    echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'
# progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>';
  echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
}