• We’ve been seeing recurring PHP warnings from your plugin, and they appear to be getting more frequent. Here’s a recent example:

    PHP Warning: Undefined array key 1 in /nas/content/live/devblogs/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 1002 PHP Warning: Undefined array key 2 in /nas/content/live/devblogs/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 1001 Timestamp: Wed, Aug 6, 2025, 10:41 AM PDT

    It looks like line 1002:

    list( $hour, $min, $sec ) = explode( ':', $hours );

    is expecting all three parts of a time string (HH:MM:SS), but occasionally it’s being passed something shorter — possibly just HH or HH:MM.

    Could you please review and add a safeguard to prevent these warnings (e.g., checking the number of parts before unpacking the array)?

    Thanks,
    Jeremy

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

Viewing 1 replies (of 1 total)
  • The warning needs urgent attention — many alerts are being triggered.

    Note that we’re running a multisite environment.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: Undefined array key 2 in /nas/content/live/devblogs/wp-content/plug’ is closed to new replies.