Title: Please correct code to avoid PHP error
Last modified: August 30, 2022

---

# Please correct code to avoid PHP error

 *  [Uldis](https://wordpress.org/support/users/uldix/)
 * (@uldix)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/please-correct-code-to-avoid-php-error/)
 * I think it was line 46…
    Please change the line to as follows: $current_url =
   $_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’];
 * Thanks for the plugin!!!

The topic ‘Please correct code to avoid PHP error’ is closed to new replies.

 * ![](https://ps.w.org/login-external-redirect/assets/icon-128x128.png?rev=1389233)
 * [Login External Redirect](https://wordpress.org/plugins/login-external-redirect/)
 * [Support Threads](https://wordpress.org/support/plugin/login-external-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/login-external-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-external-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-external-redirect/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Uldis](https://wordpress.org/support/users/uldix/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/please-correct-code-to-avoid-php-error/)
 * Status: not resolved