Support » Plugin: MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy) » Solution for Warning: sprintf() [function.sprintf]: Too few arguments

  • Resolved ABTOP

    (@abtop)


    this is your line 90:
    $output .= ‘<!– ‘ . sprintf( esc_html__( ‘@Webmaster, normally you will find the Google Analytics tracking code here, but you are in the disabled user groups. To change this, navigate to Insights %1$s Settings %2$s Ignore Users’, ‘google-analytics-for-wordpress’ ), ‘->’ ) . ‘ –>’ . PHP_EOL;

    Find Settings %2$s
    Replace to Settings %1$s

    This will revert the file to its previous version and get rid of the error.

    • This topic was modified 4 years, 8 months ago by ABTOP.
    • This topic was modified 4 years, 8 months ago by ABTOP.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author chriscct7

    (@chriscct7)

    This change was included in 6.0.16

    -Chris

    Thread Starter ABTOP

    (@abtop)

    This is way too much code (i.e. trouble) to output simple simulated arrow, if you ask me.

    Plugin Author chriscct7

    (@chriscct7)

    The code isn’t there to output an arrow, it’s there to allow for the string to be translated with the arrows retained. It’s fixed in 6.0.16, so it shouldn’t cause any more issues, as it’s not a functional piece of code.

    -Chris

    Thread Starter ABTOP

    (@abtop)

    –> vs. ->
    – vs. –

    Do you see any difference?
    And if you don’t, in the words of a popular commercial, “Why code more?”
    You don’t have to explain to me what this code for.
    What you have to do once in a while is ask yourself if there is a simple, better way.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Solution for Warning: sprintf() [function.sprintf]: Too few arguments’ is closed to new replies.