Title: PHP 8.2 Warning
Last modified: July 4, 2024

---

# PHP 8.2 Warning

 *  [Ivan Arnaudov](https://wordpress.org/support/users/ivanarnaudov/)
 * (@ivanarnaudov)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-8-2-warning-3/)
 * On a WP site running PHP 8.2, Query Monitor alerts me of the following persistent
   issue with WP Debug Log:
 * `Warning: foreach() argument must be of type array|object, null given`
 * The location is:
 * `wp-content/plugins/debug-log-manager/classes/class-debug-log.php:682`
 * The complete trace is as follows:
   `wp-content/plugins/debug-log-manager/classes/
   class-debug-log.php:682``DLM\Classes\Debug_Log->get_entries_datatable()``wp-content/
   plugins/debug-log-manager/bootstrap.php:266``Debug_Log_Manager->create_main_page()``
   wp-includes/class-wp-hook.php:324``do_action('tools_page_debug-log-manager')``
   wp-admin/admin.php:259`
 * I don’t require assistance for this, just reporting it in order to fix compatibility
   with PHP 8.2+
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-2-warning-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘PHP 8.2 Warning’ is closed to new replies.

 * ![](https://ps.w.org/debug-log-manager/assets/icon-256x256.png?rev=2783658)
 * [Debug Log Manager - Conveniently Monitor and Inspect Errors](https://wordpress.org/plugins/debug-log-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/debug-log-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/debug-log-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-log-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-log-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-log-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ivan Arnaudov](https://wordpress.org/support/users/ivanarnaudov/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-8-2-warning-3/)
 * Status: not a support question