New Landing How can we help? Themeforest Theme Support Dante Warning: sprintf(): Too few arguments in /dante/includes/sf-post-formats.php

Viewing 15 posts - 1 through 15 (of 44 total)
  • Posted in: Dante
  • #223306
    Frankytank
    Member
    Post count: 97

    Hi!

    When I try to show the author name and publication date into the blog page with the option in the theme options page I get this line of errors :

    Warning: sprintf(): Too few arguments in /home/kinesan/public_html/wp-content/themes/dante/includes/sf-post-formats.php on line 432

    I have no Idea of how to fix this 🙁

    Thanks

    Francois

    #223307
    Frankytank
    Member
    Post count: 97

    For now I turned it off so the error won’t show up

    #223509
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code sf-post-formats.php at /dante/includes/

    $post_item .= '<div class="blog-item-details vcard author">'. sprintf(__('By <span itemprop="author" class="fn">%1$s</span>', 'swiftframework'), $post_author) .'</div>';
    

    Change to:-
    $post_item .= '<div class="blog-item-details vcard author">'. sprintf(__('By <span itemprop="author" class="fn">%1\$s</span>', 'swiftframework'), $post_author) .'</div>';

    Thanks
    Mohammad

    #223572
    Frankytank
    Member
    Post count: 97

    HI,

    There is 5 entry with that exact same line of code, Could you specify the line of code or give me more info?

    Thanks

    #223586
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Think it’s to replace the problematic line 432.

    -Rui

    #223590
    Frankytank
    Member
    Post count: 97

    Yeah, I should I thought about this.

    The error dissapeared but look at the by (Author) on (Date published)
    http://kinesante.ca/articles/

    Thanks

    #223611
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Try to remove the backslash after the 1

    or replace by this one

    $post_item .= '<div class="blog-item-details vcard author">'. sprintf(__('By <span itemprop="author" class="fn">%1$s</span>', 'swiftframework'), $post_author) .'</div>';

    -Rui

    #223653
    Frankytank
    Member
    Post count: 97

    HI,

    I don’t see any difference between the first line of code provided and the third.

    The error came back.

    I’m confused by the suggestions

    #223656
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I replied based on my colleague answer, yes you are right it now looks the same line but that isn’t the line in 432.

    Can you provide ftp access so I can check it myself?
    Thanks

    -Rui

    #223658
    Frankytank
    Member
    Post count: 97
    This reply has been marked as private.
    #223661
    Frankytank
    Member
    Post count: 97
    This reply has been marked as private.
    #223836
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    What is the username of FTP login detail?
    Thanks
    Mohammad

    #223886
    Frankytank
    Member
    Post count: 97
    This reply has been marked as private.
    #223979
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    It seems that you changed the Blog layout format. Is it correct? Can’t see any date in the posts.
    If so can you create a test page so we can get that situation fixed?

    Thanks

    -Rui

    #223981
    Frankytank
    Member
    Post count: 97

    I have this custom CSS, can it be this ?

    }

    .single-post ul.post-pagination-wrap{display:none !important;}
    .single-post .post-info{display:none !important;}

    .page-heading.page-heading-hidden {
    display: none!important;
    }

Viewing 15 posts - 1 through 15 (of 44 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register