Community Forums › Forums › Archived Forums › General Discussion › Genesis 2.1.0 broke blog posts tags. Help
Tagged: Genesis 2.1.0
- This topic has 30 replies, 7 voices, and was last updated 10 years, 8 months ago by
Gary Jones.
-
AuthorPosts
-
June 30, 2014 at 1:14 pm #112144
Mallina.Studio
MemberJust received an Genesis 2.1.0 Update "over the air"... Everething seems fine except of blog posting!
I have an sting on my pages ouput "Warning: sprintf(): Too few arguments in /home/mallinas/public_html/wp-content/themes/genesis/lib/functions/markup.php on line 61
instead of post Tags and Categories...The markup.php contains this in specified line:
... 59 //* If HTML5, return HTML5 tag. Maybe add attributes. Else XHTML. 60 if ( genesis_html5() ) { 61 $tag = $args['context'] ? sprintf( $args['html5'], genesis_attr( $args['context'] ) ) : $args['html5']; 62 } 63 else { 64 $tag = $args['xhtml']; 65 } ...
I have no idea where to dig and how to fix this...
Anybody can help or suggest something?!
Any additional info and code by your request would be posted instantly!
June 30, 2014 at 1:31 pm #112150Mallina.Studio
MemberJune 30, 2014 at 1:53 pm #112157Mallina.Studio
MemberFigured out more details: problem with output of all "entry-meta" class fields...
June 30, 2014 at 2:24 pm #112168Mallina.Studio
MemberRolled back..... But still searching the solution to continue updates
Saved screenshots of error:
Top entry-meta error
Bottom entry-meta error
June 30, 2014 at 4:19 pm #112214Gary Jones
MemberJune 30, 2014 at 5:02 pm #112239Gary Jones
MemberIs that a custom theme?
Is it based on a StudioPress theme?
Does it include some customisations that involve markup and attributes?
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 30, 2014 at 5:43 pm #112254Fredtoft
MemberI get the exact same error on 2 sites running Genesis with unaltered Metro Pro child themes.
http://www.interweb.dk (example first and third post)
http://www.konsnet.dk (scroll down to post no. 4)Happened after updating to 2.1
June 30, 2014 at 6:50 pm #112272Gary Jones
MemberFredtoft - thanks for posting 🙂
What should the exact category and tags be for the first post on the first link?
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
June 30, 2014 at 7:56 pm #112287Fredtoft
MemberThe category is called "Erhverv & Økonomi"
the tags are: "erhvervsrengøring", "rengøring" and "rengøringsfirma".I suspected that it might be caused by the danish letters æ, ø and å, but there seems to be several posts with tags and/or categories that contain the danish letters, and are displayed without problems.
Really weird.
July 1, 2014 at 12:42 am #112319Mallina.Studio
MemberYes, it based on a custom child theme I've made. My functions.php doesn't contain meta modifications as I know, I looked through it. And site is all on Russian language.
If you need I can provide you with my custom theme files.
July 1, 2014 at 1:41 am #112334Soenke
ParticipantHallo,
I get the error on 1 site running Genesis and eleven 40 pro in post-meta (http://rechtsanwalt-und-verwaltungsrecht.de):
The errors appear on home, categories and posts (not tags). Probably the code in my functions.php ist invalid:
add_filter( 'genesis_post_meta', 'sk_post_meta_filter' ); function sk_post_meta_filter($post_meta) { if ( is_category() ) { $post_meta = '[post_tags before="Stichworte: "]'; } elseif ( is_tag() ) { $post_meta = '[post_categories before="Artikel im Archiv: "]'; } elseif ( is_home() && !is_sticky() ) { $post_meta = '[post_categories before="Artikel im Archiv: "][post_tags before="Stichworte: "]'; } elseif ( is_sticky() ) { $post_meta = ''; } elseif ( is_single() ) { $post_meta = '[post_categories before="Artikel im Archiv: "][post_tags before="Stichworte: "]'; } return $post_meta; }
I saw the error on many sites using google.
Thanks for help!
July 1, 2014 at 1:59 am #112339Gary Jones
MemberFredtoft, Mallina, Soenke,
One linking factor between your sites, is that the are all non-English (even if just the admin?). Soenke - were the other sites you found also possibly run in a different language?
Can you all please:
* temporarily disable all plugins, and if the problem disappears (clear your hosts cache and browser cache to be sure), then enable the plugins one by one and keep refreshing until the problem reappears.
* If not successful, and if you have them, remove any language files you have for Genesis and see if that's fixed it.Sorry this has affected you, but if you can try the above steps we might be able to narrow down the problem.
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
July 1, 2014 at 3:06 am #112347Soenke
ParticipantHallo Gary,
disabling plugins and refreshing cache doesn't solve the Problem .
Deleting language files in geneses or child theme and refreshing cache doesn't solve the problem.
Thanks for help!
p.s.: there are many sites having the same problem, try seeking
"Warning: sprintf(): Too few arguments in /themes/genesis/lib/functions/markup.php on line 61"
using google!
July 1, 2014 at 3:14 am #112348Fredtoft
MemberHi there Gary
I appreciate you taking the time to search for a solution.
Disabling all plugins did not make a difference, even after emptying local cache and Varnish on the server.
I've removed all language files in danish i could find, including those in the Genesis Translations plugin, without any result.
There might be more language files hiding in different plugins etc. but I think I got most of them. I left the metro.pot in the languages folder.
So far no results.
July 1, 2014 at 7:33 am #112406Gary Jones
MemberCan you make a note of your widgets, and then switch to another child theme or three to see if the issue still comes up? (Obviously, if you've got access to a staging server, do it on that rather than the live server)
Soenke - I didn't read your helpful information close enough. The code snippet you gave, along with the info of "The errors appear on home, categories and posts (not tags)" suggests that the problem is with the post_tags shortcode output? Am I understanding you correctly?
Let's try filtering out the post_tags shortcode. Can you add the following to the bottom of your functions.php file:
1)
add_filter( 'genesis_post_info', 'gmj_post_meta_filter', 99 ); add_filter( 'genesis_post_meta', 'gmj_post_meta_filter', 99 ); function gmj_post_meta_filter($post_meta) { return ''; }
That should cause the warnings to disappear, and make the post meta and post info (I don't know which section you've got the tags in) completely empty. If so, that's good.
Now change it to:
2)
add_filter( 'genesis_post_info', 'gmj_post_meta_filter', 99 ); add_filter( 'genesis_post_meta', 'gmj_post_meta_filter', 99 ); function gmj_post_meta_filter($post_meta) { return '[post_categories]'; }
Hopefully, categories will appear, but no warnings.
Now try:
3)
add_filter( 'genesis_post_info', 'gmj_post_meta_filter', 99 ); add_filter( 'genesis_post_meta', 'gmj_post_meta_filter', 99 ); function gmj_post_meta_filter($post_meta) { return '[post_tags before="Before: "]'; }
That may well make the errors appear.
Lastly, try:
4)
add_filter( 'genesis_post_info', 'gmj_post_meta_filter', 99 ); add_filter( 'genesis_post_meta', 'gmj_post_meta_filter', 99 ); function gmj_post_meta_filter($post_meta) { return '[post_tags]'; }
That will probably still have the warnings there.
If you can let me know what your results are for 1), 2), 3) and 4), then we can see if the post_tags shortcode is the culprit or not. Thanks!
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
July 1, 2014 at 7:51 am #112420Andrea Rennick
MemberHey everyone - can you each submit support tickets through our help portal?
We see those first and with details, we can get things sorted faster. 😉 Remember, we do not regularly check the community forum for actual support issues.
Thanks!
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
July 1, 2014 at 8:02 am #112422Fredtoft
MemberWill do.
But please realize that this is a general problem. Do a Google search for
Warning: sprintf(): Too few arguments in genesis/lib/functions/markup.php on line 61
and quite a lot of search results already pop up all with the same error. And probably there are a lot of people who haven't upgraded yet.
July 1, 2014 at 8:22 am #112430Soenke
ParticipantHallo Gary,
...
1)
... warnings disappear ...
2)
... "[post_categories]" is shown ... but the categories aren't named
3)
... [post_tags before="Before: "] is shown ... but the tags aren't named
4)
... white screen with error code appears ...
"Parse error: syntax error, unexpected '99' (T_LNUMBER) in /homepages/23/d278325892/htdocs/blog7/wp-content/themes/eleven40-pro/functions.php on line 5"
Thanks!
July 1, 2014 at 8:25 am #112431Soenke
ParticipantTicket is submitted ...
July 1, 2014 at 8:52 am #112438Gary Jones
MemberSnippet 4 updated (missing comma causing the unexpected '99').
Soenke - do you mean a literal string of "[post_categories]" is shown, and not the result of the shortcode?
WordPress Engineer, and key contributor the Genesis Framework | @GaryJ
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.