ryancramerdesign / ProcessWireUpgrade

Upgrade ProcessWire core to latest master or dev version automatically in the admin.
16 stars 6 forks source link

PHP Warning: Undefined array key "local" #32

Closed matjazpotocnik closed 3 years ago

matjazpotocnik commented 3 years ago

There are warnings after performing upgrade check via Setup -> Upgrades, please see screenshot.

PHP Warning: Undefined array key "local" in ...\ProcessWireUpgradeCheck.module:282 PHP Warning: Undefined array key "title" in ...\ProcessWireUpgrade.module:276 PHP Warning: Undefined array key "local" in ...\ProcessWireUpgrade.module:301

What's also odd is the list of two modules that I have recently uninstalled and deleted, Dashboard and FieldtypeStreetAddress, so I don't expect to see them on the list. I looked into ProcessWireUpgradeCheck.module around line 282 and for FieldtypeStreetAddress module $versions[$name] contains only 'remote' => '1.1.2'. Maybe it has nothing to do with this module but rather with invalid data regarding installed modules? After hitting refresh button the error went away. Cache issue?

image

matjazpotocnik commented 3 years ago

Edit: the error come back after I deleted more modules. Again, hitting refresh button solved the issue.

matjazpotocnik commented 3 years ago

Fixed in https://github.com/ryancramerdesign/ProcessWireUpgrade/commit/9e5c63aa33ce5cc01bdb1cf758e501871409dff0. Thank you.

ryancramerdesign commented 3 years ago

Thanks, I learned this from your issue report but it got bundled in with other updates.

On Fri, Apr 23, 2021 at 2:35 PM Matjaž Potočnik @.***> wrote:

Closed #32 https://github.com/ryancramerdesign/ProcessWireUpgrade/issues/32.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ryancramerdesign/ProcessWireUpgrade/issues/32#event-4638333037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQEUDNGKWGZ6XJVBDEX4DTKG4WTANCNFSM43K5VASQ .