wpengine / phpcompat

WordPress Plugin: PHP Compatibility Checker

Home Page:https://wordpress.org/plugins/php-compatibility-checker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ipajen opened this issue · 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