Title: Incompatible with PHP 8
Last modified: March 16, 2021

---

# Incompatible with PHP 8

 *  [kudlav](https://wordpress.org/support/users/kudlav/)
 * (@kudlav)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/)
 * When using PHP 8.0.1 metrics does not show at dashboard and this plugin causes
   PHP Warnings and Fatal Errors, see below:
 *     ```
       PHP Warning:  The magic method Metrics_Query_Manager::__wakeup() must have public visibility in .../wp-content/plugins/metrics-query/gadwp.php on line 77
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 539
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 569
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 601
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 635
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 670
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 729
       PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 769
       PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in .../wp-content/plugins/metrics-query/tools/src/Deconf/Utils.php on line 65
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14378477)
 * Hi,
 * Sorry for the delay.
 * When do you see these errors? what action or page?
 *  Plugin Author [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14378480)
 * Sorry marked as resolved by mistake, please ignore and lets solve this.
 *  [editpostok](https://wordpress.org/support/users/editpostok/)
 * (@editpostok)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14384221)
 * Hi,
 * I’m getting the exact same errors with php 8.
 * When adding the access code: [https://streamable.com/n6ql15](https://streamable.com/n6ql15)
 *  Plugin Author [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14384326)
 * Just released an update, please check.
 *  [editpostok](https://wordpress.org/support/users/editpostok/)
 * (@editpostok)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14385179)
 * Thank you.
 * All works fine now.
 *  Thread Starter [kudlav](https://wordpress.org/support/users/kudlav/)
 * (@kudlav)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14404587)
 * Hi,
    thanks for the update. Now it works but still getting following deprecation
   in log when visiting dashboard from fronted using top-left button with page name:
 *     ```
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 539
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 569
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 601
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 635
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 670
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 729
       [05-May-2021 20:08:07 UTC] PHP Deprecated:  Required parameter $metric follows optional parameter $filter in .../wp-content/plugins/metrics-query/tools/gapi.php on line 769
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Incompatible with PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/metrics-query/assets/icon-128x128.png?rev=2248942)
 * [Metrics Query](https://wordpress.org/plugins/metrics-query/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/metrics-query/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/metrics-query/)
 * [Active Topics](https://wordpress.org/support/plugin/metrics-query/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/metrics-query/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/metrics-query/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [kudlav](https://wordpress.org/support/users/kudlav/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/incompatible-with-php-8-2/#post-14404587)
 * Status: not resolved