I inherited a WP site with the task of upgrading it. I've upgraded core WP from 4.9.1 -> 5.0.3, PHP from 7.1.11 -> 7.2.15, and all plugins are up to date as of this post.

After upgrading, I noticed a slew of jQuery errors which were resolved with the addition of define('CONCATENATE_SCRIPTS', false); to wp-config.

I still encountered some other console errors, but nothing serious enough to be logged in the debug log. In order to isolate where these errors were coming from, I installed Health Check so that I could switch themes and de-activate all plugins.

With all plugins de-activated and theme switched to Twenty Nineteen, I am still seeing one error. It is also displaying as the output in three places for 'Site Status' on the Health Check plugin. I have been researching this error for the past two days and have been unsuccessful in resolving it.

Posts/Pages Error

Uncaught TypeError: Cannot use 'in' operator to search for 'wp-auth-check' in wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh.
at HTMLDocument.<anonymous> (wp-auth-check.js?ver=5.0.3:97)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
at Object.trigger (jquery.js?ver=1.12.4:3)
at Object.jQuery.event.trigger (jquery-migrate.js?ver=1.4.1:633)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4:3)
at Function.each (jquery.js?ver=1.12.4:2)
at jQuery.fn.init.each (jquery.js?ver=1.12.4:2)
at jQuery.fn.init.trigger (jquery.js?ver=1.12.4:3)
at Object.<anonymous> (heartbeat.js?ver=5.0.3:421)

Any advice or recommendations?

  • This is pretty strange. wp-auth-check is the heartbeat test to see if you're logged in. wpCompressionTest is a phpunit test to determine if ajax requests can use gzip and such to pass data. I would look to see why phpunit tests are running while the site is performing normal operations. That seems odd to me. – MikeNGarrett Feb 21 at 16:46
  • Thanks for the reply @MikeNGarrett ! I came to the same conclusion from my research. but unfortunately am stuck on diagnosing where/why wpCompressionTest is being called. Do you have any suggestions? – Tgust Feb 21 at 18:23
  • This is a pretty strange situation. I would try disabling health check. You can also check for any unit tests and disable/delete those as well. – MikeNGarrett Feb 21 at 22:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.