PHP Warning: Undefined array key "package" - new

Caught this PHP warning during updates. Nothing critical but perhaps it can be cleaned up?

Request Path
GET /wp-admin/update-core.php

File
wp-content/themes/pro/framework/legacy/functions/updates/class-plugin-updater.php : L119

Stack Trace
wp-content/themes/pro/framework/legacy/functions/updates/class-plugin-updater.php:119
wp-includes/class-wp-hook.php:343 X_Plugin_Updater->pre_set_site_transient_update_plugins()
wp-includes/plugin.php:205 WP_Hook->apply_filters()
wp-includes/option.php:2652 apply_filters()
wp-includes/update.php:425 set_site_transient()
wp-includes/class-wp-hook.php:341 wp_update_plugins()
wp-includes/class-wp-hook.php:365 WP_Hook->apply_filters()
wp-includes/plugin.php:522 WP_Hook->do_action()
wp-admin/admin.php:390 do_action()
wp-admin/update-core.php:10 require_once()

  WordPress: 7.0.1
  PHP: 8.5.8 
  Latest version of Pro

Hello @JvP,

Thanks for writing to us.

I checked on my localhost test installations, and I can not replicate the issue on my end. To help you with your concerns, we need to check your settings. I would request please share the admin login details meanwhile I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

Hi @prakash_s, thanks for investigating. Details are in the secure note.

I think this only happens during update actions.

Hello @JvP,

Thanks for sharing the login details. I went ahead and checked the website, and it seems that the website is working fine on my end, and I am not able to replicate the error on my end. Although it doesn’t appear to be causing any functional issues, the warning does suggest that the package array key is being accessed when it isn’t set during the update check. We’ll forward this to our development team so they can investigate and clean it up in a future update.

Thanks

1 Like

Nice, thanks @prakash_s

You are most welcome, @JvP