Title: Bug: Undefined array key &#8220;old&#8221;
Last modified: March 20, 2026

---

# Bug: Undefined array key “old”

 *  Resolved [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * (@sirlouen)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/undefined-array-key-old/)
 * **Error**: `Warning: Undefined array key "old" in /var/www/html/wp-content/plugins/
   wp-multilang/includes/class-wpm-taxonomies.php on line 289`
 * **Testing Instructions:** The problem is that `update_description` can also be
   called when the insert path set `$this->description` (without the `'old'` key).
   This happens when I create a new term programmatically and WordPress fires both
   the **insert **and **update **hooks.
 * **Conclusion**: Add a null coalescing for this array key `old`:
 * `$this->description['old'] ?? array()`

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

 *  [Sanjeev Kumar](https://wordpress.org/support/users/sanjeevsetu/)
 * (@sanjeevsetu)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/undefined-array-key-old/#post-18859054)
 * Thanks for the bug report and for providing the solution as well.
 * We have raised a ticket for this issue. Our team will review your solution and
   include it in one of the upcoming updates if applicable.
 * GitHub Ticket Reference:
   [https://github.com/ahmedkaludi/wp-multilang/issues/248](https://github.com/ahmedkaludi/wp-multilang/issues/248)
 *  Thread Starter [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * (@sirlouen)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/undefined-array-key-old/#post-18859063)
 * Nice, I did not know you had a repo, I would have post it there directly.

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

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

 * ![](https://ps.w.org/wp-multilang/assets/icon-256x256.png?rev=1760406)
 * [WP Multilang - Translation and Multilingual Plugin](https://wordpress.org/plugins/wp-multilang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-multilang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-multilang/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-multilang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-multilang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-multilang/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/undefined-array-key-old/#post-18859063)
 * Status: resolved