• Resolved Tim Blankenship

    (@waterfire)


    I’m getting an error in the customizer when the query monitor plugin is active. Deactivating QM fixes/removes the error.

    While QM is active any time I publish changes in the customizer I get the warning “Looks like something’s gone wrong. Wait a couple seconds, and then try again.” The changes are actually saved, but subsequent changes cannot be published without quitting the customizer and reopening it.

    There are 502 errors in the JS console for changeset resources.

    Here are some screenshots from the console and the customizer.

    https://snipboard.io/Q4MXE9.jpg
    https://snipboard.io/RoQngO.jpg
    https://snipboard.io/gA5IeT.jpg

    The page I need help with: [log in to see the link]

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

    (@johnbillion)

    WordPress Core Developer

    Can you check in your server error log to find the cause of those 502 errors?

    Thread Starter Tim Blankenship

    (@waterfire)

    Sorry, I should have included this in my original post, but I don’t seem to find a corresponding 502 error in the server logs.

    Here is more info from the browser console.

    https://snipboard.io/r0LxzT.jpg

    I will also try turning on WordPress debug to see if that helps identify the issue. I’ll follow up shortly.

    Thread Starter Tim Blankenship

    (@waterfire)

    Found this is in the proxy_error_log

    https://controlc.com/192b43b7

    upstream sent too big header while reading response header from upstream

    Thread Starter Tim Blankenship

    (@waterfire)

    This continues to be a problem. Any insight from the plugin author would be appreciated.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Ah, this is most likely caused by the HTTP headers that QM adds when there are PHP errors on the page. If there are too many then it can cause the overall size of the headers to exceed the header size limit in Nginx.

    Do you have a large number of PHP errors in your error log?

    Thread Starter Tim Blankenship

    (@waterfire)

    Um, I don’t think so. I do see a few ModSecurity errors (I wouldn’t say that there are “a lot,” less than 1 per 5 minutes) in my log, but there aren’t a lot (1-2 per hour) of PHP errors that are actually being generated by WordPress.

    I do sometimes see some PHP warnings in Query Monitor, but again there isn’t a lot, like 2-3 per page load max, mostly there are none.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    In that case do you have a bunch of cookies for the domain in your browser? Basically it sounds like the headers that QM is adding is just tipping things over the Nginx proxy header size limit.

    Thread Starter Tim Blankenship

    (@waterfire)

    There are 13 cookies loaded on a wp-admin page.

    What constitutes a lot?

    Anyway, I raised the proxy buffer limit size. And that solved the issue.

    One follow up question: Do people generally keep query monitor active on production sites? I find it helpful, but I’m not sure if it would be considered a performance hit to leave the plugin running.

    Thanks for your help.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    There’s no reason to keep it active on prod unless you’re investigating an issue or keeping an eye on things. There’s some info in the FAQ about the performance impact of QM but it does depend on how many queries, errors, HTTP API calls, hooks etc are running.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘error in customizer while query monitor is active’ is closed to new replies.