Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #97624
    BerndSpring
    Participant

    Hello,

    I got this message at the beginning of every post:

    Warning: sprintf() [function.sprintf]: Too few arguments in (…)wp-content/themes/clean-journal/inc/clean-journal-core.php on line 803

    … and only when I use the theme in German language.

    I have found these files while using the search option:

    https://www.dropbox.com/s/hf4m17mps6ovdjw/Clean%20Journal%20de_DE.zip?dl=0

    I replaced the de_DE.po and .mo but that doesn´t fix the problem. Can you please tell my where to find the error in the translation files?

    Thanks alot!

    Bernd.

    #97659
    Pratik
    Participant

    @berndspring:
    We will fi this in next theme update. If you want to fix it now, then do following:
    1. Goto clean-journal/inc/clean-journal-core.php on line 802-806 and replace it with following lines:

    
    printf( '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
        sprintf( __( '<span class="screen-reader-text">Posted on</span>', 'clean-journal' ) ),
            esc_url( get_permalink() ),
    	$time_string
    );
    

    Let me know how it goes.

    #97674
    BerndSpring
    Participant

    Perfect, it looks great now!

    Thanks alot for your help and the quick response!

    #97675
    berndwessel
    Participant

    Hello,
    I have a similar problem in another file;

    Warning: sprintf (): Too few of argument in/www/xxxxxxx/site/wp-content/themes/catch-base/inc/catchbase-core.php on line 783

    If you have please a solution for it.
    Thanks

    #97685
    Pratik
    Participant

    @berndwessel: Use following code instead of ones in catch-base/inc/catchbase-core.php lines 782-786:

    
    printf( '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
        sprintf( __( '<span class="screen-reader-text">Posted on</span>', 'catch-base' ) ),
        esc_url( get_permalink() ),
        $time_string
    );
    
    #97686
    berndwessel
    Participant

    Many thanks of the mistakes are repaired.
    Many greetings
    Bernd

    #98376
    danny.frischknecht
    Participant

    and thats what i got:

    Warning: sprintf() [function.sprintf.php]: Too few arguments in /home/ddsignir/www/dd-sign.ch/wp-content/themes/catch-responsive/inc/catchresponsive-core.php on line 812

    thanks for help
    danny

    #98414
    Pratik
    Participant

    @danny.frischknecht: Updating the theme to latest version should fix this issue.

    #98426
    danny.frischknecht
    Participant

    @pratik thanks for your support – works again 🙂

    cheers danny!

    #113512
    vvkk
    Participant

    hello
    I got this message at the beginning of Forum page:

    Warning: sprintf(): Too few arguments in /home/…… /plugins/bbpress/includes/forums/template.php on line 1995

    Can you tell me what do i do?

    #113513
    Pratik
    Participant

    Hi @vvkk,

    This is issue from bbpress plugin. Please visit their forum for this issue.

    Regards,
    Pratik

    #113514
    vvkk
    Participant

    @Pratik thanks for your support and the quick response!
    vahideh

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