Title: PHP 8.4
Last modified: February 19, 2025

---

# PHP 8.4

 *  Resolved [Bike Gremlin](https://wordpress.org/support/users/bikegremlin/)
 * (@bikegremlin)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-8-4-2/)
 * Hi,
 * The good news is that this plugin does seem to work with PHP 8.4 (the latest &
   greatest).
 * It does show this PHP warning – and I hope that can be fixed going forward:
 * PHP Notice: Function _load_textdomain_just_in_time was called **incorrectly**.
   Translation loading for the `wp-youtube-lyte` 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. Please see
   [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18315060)
 * it’s on my radar but have not had the time to look into it yet (there’s no functional
   impact), if these notices bug you, you can [use this code snippet](https://gist.github.com/afragen/986ba6046ebea963074283a77cae07fc)(
   not mine) to stop these from being logged.
 *  Thread Starter [Bike Gremlin](https://wordpress.org/support/users/bikegremlin/)
 * (@bikegremlin)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18315135)
 * No problem, no rush – it works, and fixing will matter mostly in terms of making
   future updates easier (hopefully – the pace of PHP and other stuff updates feels
   hectic, at least to me).
 * I can’t help with development, but I could at least help with testing. 🙂
 * Keep up the good work and thank you very much.
 * Relja
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18315162)
 * thanks Relja 🙂
 *  [wesatintellitonic](https://wordpress.org/support/users/wesatintellitonic/)
 * (@wesatintellitonic)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18356143)
 * [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/) 
   It’s a super simple fix — just moving the textdomain loading into a function 
   hooked to init, instead of directly on plugin loading. I’ve submitted a pull 
   request with the fix: [https://github.com/futtta/wp-youtube-lyte/pull/45](https://github.com/futtta/wp-youtube-lyte/pull/45)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18359826)
 * thanks wesatintellitonic, much appreciated! I’ll have a look shortly 🙂
 *  [wesatintellitonic](https://wordpress.org/support/users/wesatintellitonic/)
 * (@wesatintellitonic)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18359832)
 * You know [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/),
   I dug in a little more after this and I see there is more to do. Hooking the 
   textdomain loading on init solves the notice, but may break the translation, 
   and in any case it leaves four or so files that are running immediately on plugin
   load and calling the translation functions, which have now been delayed… The 
   bigger issue is the direct function calling in all these files — they should 
   really all be using constructors and hooked. Probably wouldn’t be more than 3–
   4 hours to refactor, but not the 15-minute fix I so cleverly thought I had found…
    -  This reply was modified 1 year, 2 months ago by [wesatintellitonic](https://wordpress.org/support/users/wesatintellitonic/).
    -  This reply was modified 1 year, 2 months ago by [wesatintellitonic](https://wordpress.org/support/users/wesatintellitonic/).
 *  [romulan](https://wordpress.org/support/users/romulan/)
 * (@romulan)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18395811)
 * Are we getting anywhere close to a solution to this? We have tons of clients 
   who are reporting this specific issue. Thanks!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-8-4-2/#post-18396859)
 * not yet, sorry.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-8-4-2/#post-18449217)
 * just released an update, should be OK now 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘PHP 8.4’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/php-8-4-2/#post-18449217)
 * Status: resolved