Community Forums › Forums › General Genesis Framework Discussions › WordPress 6.7 update triggered genesis warning
- This topic has 8 replies, 2 voices, and was last updated 1 week, 1 day ago by blancy.
-
AuthorPosts
-
November 19, 2024 at 4:03 pm #508555blancyParticipant
After updating to WordPress 6.7 on my genesis-based sites I see a warning that was apparently introduced in this release which has been named a 'Doing it wrong' warning and reads as follows:
"Translation loading for the genesis domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later."
I also had this warning for a couple of plugins but they have since provided updates which correct the issue and the warning is now gone for those. Will there be an update for genesis framework theme to address it?
thanks
November 19, 2024 at 9:08 pm #508556AnitaCKeymasterIt sounds like you may have found this warning having Debug mode turned on. While I do not know right now if they'll have a fix for this, the site should function normally.
As a temporary solution, you can suppress the warnings using WP_DEBUG_DISPLAY in your wp-config.php file. Set:
define( 'WP_DEBUG_DISPLAY', false );
Need help with customization or troubleshooting? Reach out to me.
November 20, 2024 at 5:14 am #508561blancyParticipantThanks.
Yes I have debug mode turned on on my local development and staging sites. I realise that the warning won't show on the live site where debug mode is set to false but it would be good to have it fixed so that I can continue to have it enabled on my staging sites and also to keep my debug log less clogged up as it generates a lot of lines in the debug log for every page visit.
I was just wondering if there was a plan to address it as all other plugins themes I use have already addressed the issue.
November 20, 2024 at 10:23 am #508564AnitaCKeymaster@blancy I have some feedback. I was told this is a bug in WordPress Core and they are aware of it - https://core.trac.wordpress.org/ticket/62337. And, it should possibly be resolved in the next WordPress update (in 6.7.1) that is scheduled to release tomorrow. So Genesis doesn't need to be updated as it's an issue with Core.
Need help with customization or troubleshooting? Reach out to me.
November 20, 2024 at 1:52 pm #508568blancyParticipant@AnitaC Ah, interesting. Hopefully that will sort it.
Many thanks for providing this info.
November 21, 2024 at 3:39 pm #508581blancyParticipantIt seems 6.7.1 has not fixed this for my site sadly.
"Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the genesis domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later."
November 21, 2024 at 6:47 pm #508582AnitaCKeymasterNovember 26, 2024 at 2:45 pm #508623blancyParticipantFrom the latest on that trac it sounds like it's the responsibility of the theme / plugin developers to address the issue. Most have acted fairly quickly. I hope genesis will at some point also.
November 26, 2024 at 2:57 pm #508624blancyParticipantI'm using the following in functions.php to suppress it for now:
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
-
AuthorPosts
- You must be logged in to reply to this topic.