awesomemotive/all-in-one-seo-pack

Warning: Undefined array key "dashboardWidgets" after plugin update

bobbingwide opened this issue · 1 comments

Steps

  1. With WP_DEBUG set to true
  2. Start with an inactive version that's rather out of date - say a year old
  3. Update to latest version 4.5.0
  4. Activate the plugin
  5. The Warning message appears in the dashboard.

Warning: Undefined array key "dashboardWidgets" in C:\apache\htdocs\cwiccer\wp-content\plugins\all-in-one-seo-pack\app\Common\Main\Updates.php on line 1392

0. bw_lazy_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\libs\bwtrace.php:108 0
1. bw_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php:293 0
2. bw_trace_error_handler(2,Undefined array key "dashboardWidgets",C:\apache\htdocs\cwiccer\wp-content\plugins\all-in-one-seo-pack\app\Common\Main\Updates.php,1392) C:\apache\htdocs\cwiccer\wp-content\plugins\all-in-one-seo-pack\app\Common\Main\Updates.php:1392 4
3. migrateDashboardWidgetsOptions C:\apache\htdocs\cwiccer\wp-content\plugins\all-in-one-seo-pack\app\Common\Main\Updates.php:189 0
4. runUpdates() C:\apache\htdocs\cwiccer\wp-includes\class-wp-hook.php:324 1
5. apply_filters(null,array) C:\apache\htdocs\cwiccer\wp-includes\class-wp-hook.php:348 2
7. do_action(array) C:\apache\htdocs\cwiccer\wp-includes\plugin.php:517 1
8. do_action(init) C:\apache\htdocs\cwiccer\wp-settings.php:643 1
9. require_once(C:\apache\htdocs\cwiccer\wp-settings.php) C:\apache\htdocs\cwiccer\wp-config.php:106 1
10. require_once(C:\apache\htdocs\cwiccer\wp-config.php) C:\apache\htdocs\cwiccer\wp-load.php:50 1
11. require_once(C:\apache\htdocs\cwiccer\wp-load.php) C:\apache\htdocs\cwiccer\wp-admin\admin.php:34 1
12. require_once(C:\apache\htdocs\cwiccer\wp-admin\admin.php) C:\apache\htdocs\cwiccer\wp-admin\plugins.php:10 1

Note: The warning only appears once. I was unable to confirm the original settings of $rawOptions

Hey @bobbingwide, thank you for reporting this warning. I've fixed it. We'll include the fix in our next update.