Title: Infinite Loop with HTTP Auth
Last modified: April 7, 2026

---

# Infinite Loop with HTTP Auth

 *  Resolved [brownpl](https://wordpress.org/support/users/brownpl/)
 * (@brownpl)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/infinite-loop-with-http-auth/)
 * Hi there – I think I’ve tracked down an issue and I wanted to share. We wanted
   to use HTTP Auth to restrict access to a development site. It seems there is 
   a conflict with the HTTP Auth you all are using for API requests. Around line
   106 of RestAPIAuth.php, there is an error message generated that uses translation.
   I believe the translation call is also requiring an auth check, which is leading
   to an infinite loop. My stopgap solution was to just remove the translation call
   from the error message, but you all likely have a better solution.
 * Steps to replicate: 
    – setup HTTP Auth or add plugin to do so and enable it –
   attempt to go to any Masteriyo backend page, it will not render and cause issues.
   I needed to use xdebug to limit the loop otherwise it was challenging to get 
   logs.  – disable the HTTP Auth or plugin (must be disabled, not just turned off)–
   Masteriyo CMS pages render as expected

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

 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/infinite-loop-with-http-auth/#post-18874982)
 * Hi [@brownpl](https://wordpress.org/support/users/brownpl/),
 * Thanks for reporting this issue.
 * We have assigned this to our development team for further investigation. They
   will review the infinite loop behavior with HTTP authentication and take the 
   necessary steps.
 * We’ll keep you updated once we have more information.
   Best Regards!
 *  [sauravkhanal](https://wordpress.org/support/users/sauravkhanal/)
 * (@sauravkhanal)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/infinite-loop-with-http-auth/#post-18876739)
 * Hi [@brownpl](https://wordpress.org/support/users/brownpl/),
 * Thanks for reporting this and for your investigation 🙌
 * We identified the issue and fixed it by removing a recursive translation call
   and improving the auth check to ignore unrelated credentials (like HTTP Auth).
 * This resolves the infinite loop and restores normal behavior.
   Best Regards!
 *  Thread Starter [brownpl](https://wordpress.org/support/users/brownpl/)
 * (@brownpl)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/infinite-loop-with-http-auth/#post-18877518)
 * Thank you!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finfinite-loop-with-http-auth%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/learning-management-system/assets/icon-256x256.gif?rev=3520181)
 * [Masteriyo LMS – LMS Course Builder, Quizzes & Certificates](https://wordpress.org/plugins/learning-management-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learning-management-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learning-management-system/)
 * [Active Topics](https://wordpress.org/support/plugin/learning-management-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learning-management-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learning-management-system/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [brownpl](https://wordpress.org/support/users/brownpl/)
 * Last activity: [1 month, 2 weeks ago](https://wordpress.org/support/topic/infinite-loop-with-http-auth/#post-18877518)
 * Status: resolved