WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
After updating to Version 1.1 - Warning: sprintf() Too few argument (13 posts)

  1. Dillx
    Member
    Posted 2 years ago #

    Since updating to version 1.1
    All my pages have the following warning at the bottom of the Snippet areas

    Warning: sprintf() [function.sprintf]: Too few arguments in /home/xxxxx/public_html/addons/xxxxxxx.co.uk/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 175

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    f you change that line 175 to this:

    $keywordStopWord = sprintf(__("The keyword for this page contains one or more %s$1stop words%s$2, consider removing them. Found '\%s'.", 'wordpress-seo' ),"", "");

    does it get any better?

  3. Dillx
    Member
    Posted 2 years ago #

    Doesn't seem to make any difference

  4. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    Ok one more try:

    $keywordStopWord = sprintf(__("The keyword for this page contains one or more %s$1stop words%s$2, consider removing them. Found '%s$3'.", 'wordpress-seo' ),"<a href=\"http://en.wikipedia.org/wiki/Stop_words\">", "</a>", "%s");

  5. Dillx
    Member
    Posted 2 years ago #

    Um not sure if this is progress....

    Parse error: syntax error, unexpected ';', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/xxxxx/public_html/addons/xxxx.co.uk/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 175

  6. Dillx
    Member
    Posted 2 years ago #

    Sorry my fault - messed up the edit....
    Changing line 175 to

    $keywordStopWord = sprintf(__("The keyword for this page contains one or more %s$1stop words%s$2, consider removing them. Found '%s$3'.", 'wordpress-seo' ),"", "", "%s");

    doesnt give the error.

  7. Dillx
    Member
    Posted 2 years ago #

    yippee

  8. Patrick Nommensen
    Member
    Posted 2 years ago #

    I also just updated this plugin and was coming here to see if anyone had already made a post about this minor glitch.

    Joost -- will you be pushing an update soon? I would prefer not to edit .php - might mess it up even more!

    Thanks.

  9. djneo134.1
    Member
    Posted 2 years ago #

    I've done the change you've suggested :

    replace line 175 by :

    $keywordStopWord = sprintf(__("The keyword for this page contains one or more %s$1stop words%s$2, consider removing them. Found '%s$3'.", 'wordpress-seo' ),"", "", "%s");

    but now, when I go in the Advanced tab of a post, I've these phrase :

    The keyword for this page contains one or more $1stop words$2, consider removing them. Found 'up$3'.

    This is not cool to see $caracters like that.

    Is there a better modification to do, to avoid that ?

  10. djneo134.1
    Member
    Posted 2 years ago #

    I've found :

    juste replace line 175 by :

    $keywordStopWord = sprintf(__("The keyword for this page contains one or more %sstop words%s, consider removing them. Found '%s'.", 'wordpress-seo' ),"", "" , "%s");

  11. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    This'll be fixed in 1.1.1, upcoming in a few minutes.

  12. WordPressurize
    Member
    Posted 2 years ago #

    @Joost,

    We have quite a few errors in the plugin's meta-box. We're getting the following on all tabs, in a multisite:

    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 365
    
    Warning: Invalid argument supplied for foreach() in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 367
    
    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 278
    
    Warning: Invalid argument supplied for foreach() in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 280
    
    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 293
    
    Warning: Invalid argument supplied for foreach() in /nfs/c07/h03/mnt/103759/domains/365flavours.com/html/wp-content/plugins/wordpress-seo/admin/linkdex/linkdex.php on line 301

    The last change mentioned here did not fix it.

  13. fcthiesen
    Member
    Posted 2 years ago #

    I have the same problem on Media Temple. Has anyone managed to fix this?

    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1163
    
    Warning: Invalid argument supplied for foreach() in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1165
    
    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1076
    
    Warning: Invalid argument supplied for foreach() in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1078
    
    Warning: DOMXPath::query() [domxpath.query]: Invalid or inclomplete context in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1091
    
    Warning: Invalid argument supplied for foreach() in /nfs/c03/h05/mnt/48107/domains/puraeco2.sementeria.com/html/wp-content/plugins/wordpress-seo/admin/class-metabox.php on line 1099

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic