phpcompat icon indicating copy to clipboard operation
phpcompat copied to clipboard

PHP warnings Undefined array key and null given when updating none wordpress.org plugin

Open ipajen opened this issue 2 years ago • 0 comments

  • WordPress: 6.2
  • PHP: 8.2.3
  • Server: LiteSpeed
  • Database: mysqli (Server: 10.4.28-MariaDB / Client: mysqlnd 8.2.3)
  • Browser: Edge 112.0.1722.34 (Windows 10/11)
  • Theme: Twenty Twenty 2.2
  • MU-Plugins:
    • Health Check Troubleshooting Mode 1.9.0
    • WordPress automation by Installatron
  • Plugins:
    • Core Rollback 1.3.4
    • Enable jQuery Migrate Helper 1.3.0
    • Git Updater 12.1.3.7
    • Health Check & Troubleshooting 1.6.0
    • Performance Lab 2.1.0
    • PHP Compatibility Checker 1.6.1
    • Plugin Compatibility Checker 2.2
    • Query Monitor 3.12.1
    • WordPress Beta Tester 3.3.7

minor issue but when updating any plugin from github and not WordPress.org with https://github.com/afragen/git-updater following warnings exists from php-compatibility-checker in /wp-admin/update.php. When updating from WordPress.org then the warnings doesn't exist. Don't know how Premium plugins will behave, but could have the same issue.

Warning Undefined array key "plugins" wp-content/plugins/php-compatibility-checker/wpengine-phpcompat.php:170

Warning foreach() argument must be of type array|object, null given wp-content/plugins/php-compatibility-checker/wpengine-phpcompat.php:170

ipajen avatar Apr 12 '23 10:04 ipajen