Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Warning: sprintf(): Too few arguments in /dante/includes/sf-post-formats.php
New Landing › How can we help? › Themeforest Theme Support › Dante › Warning: sprintf(): Too few arguments in /dante/includes/sf-post-formats.php
- This topic has 43 replies, 5 voices, and was last updated 6 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
October 26, 2015 at 2:32 pm #223306
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
October 26, 2015 at 2:33 pm #223307For now I turned it off so the error won’t show up
October 27, 2015 at 10:46 am #223509Hi,
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
MohammadOctober 27, 2015 at 2:45 pm #223572HI,
There is 5 entry with that exact same line of code, Could you specify the line of code or give me more info?
Thanks
October 27, 2015 at 3:39 pm #223586Hi,
Think it’s to replace the problematic line 432.
-Rui
October 27, 2015 at 3:50 pm #223590Yeah, I should I thought about this.
The error dissapeared but look at the by (Author) on (Date published)
http://kinesante.ca/articles/Thanks
October 27, 2015 at 4:45 pm #223611Try 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
October 27, 2015 at 7:31 pm #223653HI,
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
October 27, 2015 at 7:41 pm #223656I 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
October 27, 2015 at 7:51 pm #223658This reply has been marked as private.October 27, 2015 at 8:04 pm #223661This reply has been marked as private.October 28, 2015 at 11:50 am #223836Hi,
What is the username of FTP login detail?
Thanks
MohammadOctober 28, 2015 at 1:34 pm #223886This reply has been marked as private.October 28, 2015 at 4:55 pm #223979It 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
October 28, 2015 at 5:01 pm #223981I 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;
} -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.