Title: PHP Warning &#8211; Undefined array key &#8220;path&#8221;
Last modified: March 26, 2026

---

# PHP Warning – Undefined array key “path”

 *  Resolved [Lene](https://wordpress.org/support/users/lenesachs/)
 * (@lenesachs)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-10/)
 * Hi WordPress.org
   I have received this PHP Warning in the login page:
 *     ```wp-block-code
       Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1236Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1236Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1236
       ```
   
 * Do any of you know what this means? And how to fix it? I am not a PHP-develope
   to understand what this is about. I am one of you can.
   Thx Lene
    -  This topic was modified 2 months, 2 weeks ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Formatting
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-path-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Wongani Kaluwa](https://wordpress.org/support/users/thewonganikaluwa/)
 * (@thewonganikaluwa)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-10/#post-18863616)
 * Hello [@lenesachs](https://wordpress.org/support/users/lenesachs/) 
   I hope you
   are doing well. I took a look at the error and it seems to be a wordpress core
   one. However, you are seeing the error because you have the debug options enabled.
   You can refer here on an in depth details on this issue: [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   Luckily, I also noted that the site is running in staging that explains why you
   are seeing the error. It might have been toggled on.To disable such errors, I
   recommend turning debug errors off as indicated in the link I shared above as
   this does not reflect well on the site.This error could be caused by a faulty
   translation plugin, I recommend temporarily disabling and see if that will be
   sorted, if not please feel free to write us more.Warm RegardsWongani.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-10/#post-18863838)
 * Although the message refers to information in a WordPress Core file, the actual
   cause is likely a plugin or theme you’re using that is calling these core functions
   incorrectly. Specifically, I suspect that the inclusion of language files from
   one or more plugins or your theme is not working properly.
 * You have the following options:
    - Disable the display of warnings, as described above. This will prevent you
      from seeing them here, but it won’t solve the actual problem.
    - Deactivate all plugins and check if the message still appears. If so, try 
      switching the theme as well. This way, you can rule out these components as
      the cause and find the actual cause.
    - If the message still appears even with a default theme and no plugins at all,
      then the language files in your project are saved incorrectly.
 * Note: By the way, this is by no means an error message, but merely a warning.
 *  Thread Starter [Lene](https://wordpress.org/support/users/lenesachs/)
 * (@lenesachs)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-10/#post-18864754)
 * Hi [@thewonganikaluwa](https://wordpress.org/support/users/thewonganikaluwa/)
   and [@threadi](https://wordpress.org/support/users/threadi/) 
   Many thanks for
   your feedback – highly appreciated.I started out with installing the debug plugin
   Debug Bar – and disabled the debug errors.The PHP-warnings on the login-page 
   are no longer visible.Thanks for sharing insights and solution to PHP warningsBest
   regards [@lenesachs](https://wordpress.org/support/users/lenesachs/)

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

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

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Lene](https://wordpress.org/support/users/lenesachs/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-10/#post-18864754)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
