• Resolved Lene

    (@lenesachs)


    Hi WordPress.org
    I have received this PHP Warning in the login page:

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1236

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1236

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1192

    Warning: Undefined array key "path" in /var/www/avesta.dk/staging123/wp-includes/l10n.php on line 1218

    Warning: 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 1 day, 21 hours ago by Jan Dembowski. Reason: Formatting

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Wongani Kaluwa

    (@thewonganikaluwa)

    Hello @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/
    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 Regards
    Wongani.

    Moderator threadi

    (@threadi)

    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

    (@lenesachs)

    Hi @thewonganikaluwa and @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 warnings
    Best regards @lenesachs

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

You must be logged in to reply to this topic.