• Resolved Jonas Xander

    (@john-alexander)


    When trying to use the plugin I get this error at the top of my dashboard:

    Warning: sprintf() [function.sprintf]: Too few arguments in /home2/myname/public_html/wp-content/plugins/wp-job-manager/includes/admin/class-wp-job-manager-cpt.php on line 216

    I’m using Genesis with WooCommerce.

    I’m not asking you to fix this, I’m disabling the plugin for now, just thought you’d like to know.

    http://wordpress.org/plugins/wp-job-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Hi John,

    Are you running something non-english? The code looks fine in core, but one of the translation files might be wrong.

    Thanks

    Thread Starter Jonas Xander

    (@john-alexander)

    Mike, my WP is pt_PT (European Portuguese). Does this mean your plugin doesn’t work with latin characters? Just wondering.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Actually, I’d guess whomever submitted the job_manager-pt_PT.po translation made a mistake with that string – the string contains a ‘%’ which gets substituted for a value.

    Thread Starter Jonas Xander

    (@john-alexander)

    Hey Mike, thanks.

    You were right. I opened the .po on Poedit and searched for that line (line 276), and indeed, there was an extra character in there, so instead of:

    %s

    There was:

    %2$s

    I corrected it back to %s as per the original version, and no more errors popped up.

    Raj

    (@latestgktoday)

    I am getting the following lines on my every page of my website. How i can resolve this.
    Warning: sprintf(): Too few arguments in /home4/myusername/public_html/wp-content/plugins/take-notice/includes/class-take-notice-plugin.php on line 89

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    @raj coming from ‘take-notice’ plugin – nothing to do with job manager.

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