Pierre-Lannoy / wp-decalog

Capture and log events, metrics and traces on your site. Make WordPress observable - finally!
https://perfops.one/
GNU General Public License v3.0
64 stars 8 forks source link

Console breaks under php 8.x.x env #33

Closed stuffeh closed 1 year ago

stuffeh commented 1 year ago

Describe the bug Perfopsone-consoles functionality break under PHP 8.x.x, even though https://wordpress.org/support/topic/php-8-fatal-error-3/ states it should be functional.

To Reproduce Steps to reproduce the behavior:

  1. Run with PHP 8.0 or PHP 8.1
  2. Go to ./wp-admin/admin.php?page=perfopsone-consoles
  3. Select any of the options available, such as Live API Calls, Live Events, or Vibes Signals.
  4. Endlessly loops listening for API connection

Expected behavior It connects to the API.

Screenshots Broken: https://i.imgur.com/FdQHn2y.png Expecting: https://i.imgur.com/UGAM7gJ.png

Environments: Test server:

Production server:

Additional context Was mislead about the plugin's status since https://wordpress.org/support/topic/php-8-fatal-error-3/ stated it should be working on PHP 8.

stuffeh commented 1 year ago

While I'm here. Do you have any idea if PerfOps One suit logs the traffic that hits fastcgi cache? Gut instinct says no, but figured I'd check with you. Any prospects of a nginx flavored reports plugin?

Pierre-Lannoy commented 1 year ago

Hello @stuffeh !

Thanks for this report. I was able to reproduce it, not on all my tests but sufficiently to see it. I will fix it for the 3.6 release…

Regarding the traffic logging and caching tools and strategies, could you just open an issue or (better) a discussion? In short: it depends of what you mean by "traffic"…

Pierre-Lannoy commented 1 year ago

I confirm 3.6 release of DecaLog will contain a fix for this. Release is planned in 3 weeks max…

Pierre-Lannoy commented 1 year ago

Hello! Version 3.6.0 is released. Could you confirm it fixes your issue? Thanks 😉

stuffeh commented 1 year ago

Yep, it works now. Thank you.