• Paul

    (@paultgoodchild)


    Hi,

    Hopefully I can explain what I’m seeing – it’s taken me some time to dig to the cause.

    This problem is only visible on PHP 8.1.12. (it wasn’t an issue with PHP 8.1.11) and isn’t an issue on any other version of PHP (8.0, 7.x).

    When loading an AJAX request, the process on the browser (Firefox/Chrome) is stuck in a pending state. It never terminates.

    The following are true:

    • PHP v8.1.12
    • Only on AJAX
    • Our plugin issues the entire AJAX response and called PHP die(). until that point, there are no PHP errors.
    • Our plugin does issue PHP deprecation warnings on PHP 8.1, and the bug I’m describing occurrs regardless of whether these deprecation warnings are set to display, or log, or neither.
    • No other plugins are active except for Shield Security and QM.
    • WordPress 6.1.1
    • Only occurrs on AJAX requests
    • Problematic Class/Output: QM_Output_Headers_PHP_Errors

    Full demonstration of the bug:

    Hope you can find something with that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Well this is a fun one! Thanks for the video. I’ll try to find some time to take a look, but it might be a gnarly one.

    Thread Starter Paul

    (@paultgoodchild)

    Hah yep, gnarly for sure! It was a tricky one to even narrow down that far :/

    Let me know if I can help in any way..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug with PHP 8.1.12 & AJAX output’ is closed to new replies.