• Resolved Pieterjan Deneys

    (@nekojonez)


    On one website, I get strange error messages when updating. They are just there… And the plugins shown are working fine.

    And the annoying thing is that it only shows this block when I update… (Which work successful too)

    Warning: Undefined array key "action" in /customers/7/5/e/lucasgent.be/httpd.www/---/wp-content/plugins/envira-gallery-lite/envira-gallery-lite.php on line 602 
    Warning: Undefined array key "type" in /customers/7/5/e/lucasgent.be/httpd.www/---/wp-content/plugins/simple-history/loggers/SimpleThemeLogger.php on line 279 
    Warning: Undefined array key "type" in /customers/7/5/e/lucasgent.be/httpd.www/---/wp-content/plugins/simple-history/loggers/SimpleThemeLogger.php on line 209 
    Warning: Undefined array key "type" in /customers/7/5/e/lucasgent.be/httpd.www/---/wp-content/plugins/simple-history/loggers/class-sh-translations-logger.php on line 49

    And strangely, I have a similair subsite on the same server… Running the same PHP version and such and I don’t get that error.

    How can I find the culprint? Or what can be going on?

Viewing 4 replies - 1 through 4 (of 4 total)
  • These are just PHP warnings. In this case, the warning is about the code trying to access an array with a particular key that doesn’t exist.

    Does it have a real impact? Probably not. But ideally, this is unexpected and should be handled in code, for which the code would need to be changed to not access the array when the key doesn’t exist.

    envira-gallery-lite and simple-history are two plugins that are reported in your log. So you would go and report this to them.

    PHP warnings could be happening on normal page loads and when you browse admin panel as well, you just don’t see them, as PHP can be configured to not display them by default or log them to a log file on the server.

    Hope that helps!

    Author of Simple History here. Just wanna let you know that a check for array keys type and action has been added to my plugin, so errors should be gone soon.

    It is however strange that the array keys are missing to start with, they should exist ???♀?.

    • This reply was modified 1 year, 5 months ago by eskapism.
    Thread Starter Pieterjan Deneys

    (@nekojonez)

    Amazing! Thanks for the help my man!

    Thread Starter Pieterjan Deneys

    (@nekojonez)

    I forgot to close this as resolved. Since the author of Simple History is a great one ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strange error message during updates’ is closed to new replies.