Title: PHP 8.x
Last modified: January 27, 2026

---

# PHP 8.x

 *  Resolved [Charlie Laubin](https://wordpress.org/support/users/charlie45100/)
 * (@charlie45100)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-x-4/)
 * Hello,
 * Since running the site on **PHP 8.x**, we are getting recurring PHP warnings 
   with **WP YouTube Lyte**:
 * `PHP Warning: Undefined array key "title" in wp-content/plugins/wp-youtube-lyte/
   wp-youtube-lyte.php on line 536`
 * The warning is triggered on every page load that contains a YouTube Lyte embed.
   
   With PHP versions prior to 8, this access was silent, but PHP 8+ now raises a
   warning when trying to read a non-existent array key.
 * It appears the code accesses `$video['title']` without checking if the key exists.
   
   A simple guard would prevent the warning, for example:
 * `$title = $video['title'] ?? '';`
 * or using an `isset()` check.
 * This issue is not breaking the frontend, but it:
    - clutters PHP error logs,
    - can cause issues when `WP_DEBUG` is enabled,
    - and affects PHP 8+ compatibility.
 * Thanks in advance for looking into this, and thank you for maintaining the plugin.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-x-4/#post-18800431)
 * agree that should be prevented, I’ll look into it!
 * thanks for pointing it out (or reminding me 😉 )
 * frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 months ago](https://wordpress.org/support/topic/php-8-x-4/#post-18814479)
 * back 🙂
 * I just [pushed a (probable) fix to my development repository](https://github.com/futtta/wp-youtube-lyte/commit/2a5bffbc1ee23bb15c4f88ac35906845bedb57ad),
   would be great of you can [download the zip-file](https://github.com/futtta/wp-youtube-lyte/archive/refs/heads/main.zip)
   and test it on your end as well?
 * best,
    frank
 *  Thread Starter [Charlie Laubin](https://wordpress.org/support/users/charlie45100/)
 * (@charlie45100)
 * [4 months ago](https://wordpress.org/support/topic/php-8-x-4/#post-18814489)
 * Hi Franck,
   Yes i’m test it by tonight or tomorrow night.Best,Charlie
 *  Thread Starter [Charlie Laubin](https://wordpress.org/support/users/charlie45100/)
 * (@charlie45100)
 * [4 months ago](https://wordpress.org/support/topic/php-8-x-4/#post-18814516)
 * I just tested it, after several tests I can’t reproduce the error in the log 
   or see it in the article, it seems to solve the problem.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 months ago](https://wordpress.org/support/topic/php-8-x-4/#post-18816130)
 * great, this will be in the next release Charlie, thanks for your help!
 * best,
    frank
 *  [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * (@wendihihihi)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/php-8-x-4/#post-18837125)
 * Since there was no update yet, I change the code myself on my site

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-x-4%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Wendihihihi](https://wordpress.org/support/users/wendihihihi/)
 * Last activity: [3 months, 1 week ago](https://wordpress.org/support/topic/php-8-x-4/#post-18837125)
 * Status: resolved