TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
The following error then occur during installation of some plugins in a theme:
Warning: sprintf(): Too few arguments in ......../wp-admin/includes/class-bulk-upgrader-ski
The plugin is then installed but not sure if anything is being interrupted due to the warning.
I found that the warning appear due to the following suspected bug found:
There are 2 defined variable placeholder for being substituted and expected 2 arguments from them
%1$s
%2$s
However,
// in WP 4.9.8 class-bulk-upgrader-skin.php on line 150
... sprintf( $this->upgrader->strings['skin_update_successful'], $title ) ...
// Only $title is being put into it
In PHP 5.6.3 tested, this error does not appear, maybe surpassed or ignored.
In PHP 7.19 tested, the error come out, maybe it test strictly.
Because I found in the theme, I have also reported to the theme author.
The above findings is for your reference.
Thanks a lot for providing such a convenient tools.
The following error then occur during installation of some plugins in a theme:
Warning: sprintf(): Too few arguments in ......../wp-admin/includes/class-bulk-upgrader-ski
The plugin is then installed but not sure if anything is being interrupted due to the warning. I found that the warning appear due to the following suspected bug found:
In the original code of TGM-Plugin-Activation class-tgm-plugin-activation.php on line 3674
There are 2 defined variable placeholder for being substituted and expected 2 arguments from them %1$s %2$s
However,
In PHP 5.6.3 tested, this error does not appear, maybe surpassed or ignored. In PHP 7.19 tested, the error come out, maybe it test strictly.
Because I found in the theme, I have also reported to the theme author. The above findings is for your reference.
Thanks a lot for providing such a convenient tools.