Warning: sprintf(): Too few arguments #669

Closed
theemwiz opened this Issue Jun 12, 2017 · 14 comments

Comments

Projects
None yet
7 participants

I am getting this warning Warning: sprintf(): Too few arguments when installing plugins through TGMPA script on WordPress 4.8. Is this a known warning with latest version of WordPress?

I am too facing the same issue. Can you please provide a fix for it?

Owner

GaryJones commented Jun 12, 2017

Can you be more descriptive about the error message please?

Which plugin or theme is using TGMPA? What version of TGMPA is being used?

theemwiz commented Jun 12, 2017 edited

The TGMPA version which is used is 2.6.1. I am developing this theme.

tgmpa-4 8-warning

I have tested it in 4 WordPress themes with TGM v2.6.1 and getting the same error as shown in screenshot above.

al5dy commented Jun 12, 2017

I have the same error. The problem appeared after the 4.8v wp.

al5dy commented Jun 12, 2017 edited

Bingo! Issue solved. I added some changes in class-tgm-plugin-activation.php

Change:
$this->upgrader->strings['skin_update_successful'] = %HERE LONG DEFAULT CODE CALLED ERROR%
to
$this->upgrader->strings['skin_update_successful'] = __( '%1$s done.' );

@al5dy
Can you attach the full code here?

@al5dy

Thank you! It fixed the issue :)

@al5dy Thanks for the fix. Look forward to TGMPA official update.

Owner

GaryJones commented Jun 12, 2017

Thanks all for the useful feedback - we'll look into this ASAP (as we'll also need to make it work with older versions of WP.

GaryJones added this to the 2.6.2 milestone Jun 12, 2017

xttn commented Jun 29, 2017 edited

I have the same error and can not install requires plugin on PHP 5.3
// WP 4.8

Contributor

jrfnl commented Jul 1, 2017

A fix for this issue (#670) has now been merged in and will be included in the upcoming 2.6.2 release.

jrfnl closed this Jul 1, 2017

@jrfnl Any updates on the release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment