Title: error when on redirect
Last modified: February 7, 2023

---

# error when on redirect

 *  [turbojae](https://wordpress.org/support/users/turbojae/)
 * (@turbojae)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-when-on-redirect/)
 * hi,
 * i moved /wp-login.php to just /login. now when someone tries to go to /wp-login.
   php, a 404 page shows (which is expected) with this error at the bottom of the
   page:
 * Notice: Trying to get property ‘ID’ of non-object in /code/wp-content/plugins/
   pagerestrict/pagerestrict.php on line 155 Notice: Trying to get property ‘ID’
   of non-object in /code/wp-content/plugins/pagerestrict/pagerestrict.php on line
   163
 * any idea why i get this error and how do i fix it?
 * thanks!

The topic ‘error when on redirect’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagerestrict.svg)
 * [Page Restrict](https://wordpress.org/plugins/pagerestrict/)
 * [Support Threads](https://wordpress.org/support/plugin/pagerestrict/)
 * [Active Topics](https://wordpress.org/support/plugin/pagerestrict/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagerestrict/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagerestrict/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [turbojae](https://wordpress.org/support/users/turbojae/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-when-on-redirect/)
 * Status: not resolved