Title: PHP errors
Last modified: November 13, 2016

---

# PHP errors

 *  [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-errors-92/)
 * Very many errors in the server log:
 *     ```
       Undefined index: HTTP_REFERER in /mnt/webc/.../wp-content/plugins/pagerestrict/pagerestrict.php on line 138
       ```
   
 * Cn easily be fixed by changing line 138 into:
 *     ```
       $referrer = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : null;
       ```
   
    -  This topic was modified 9 years, 6 months ago by [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/).

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

 *  [Philipp Bammes](https://wordpress.org/support/users/tyrannous/)
 * (@tyrannous)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-errors-92/#post-8580504)
 * Hi [@theandystratton](https://wordpress.org/support/users/theandystratton/),
   
   there are some more PHP errors in addition to the ones noted above. It’l be great
   if you could fix them!
 * On single post/page view (fresh install):
    `Notice: Undefined variable: page_ids
   in […]\plugins\pagerestrict\inc\admin.php on line 202` On general option page(
   fresh install): `Notice: Undefined index: posts in […]\plugins\pagerestrict\pagerestrict.
   php on line 24`
 *  Plugin Author [Andy Stratton](https://wordpress.org/support/users/theandystratton/)
 * (@theandystratton)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-errors-92/#post-8586546)
 * Updating this shortly. Stay tuned for the update.
 *  [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-errors-92/#post-8737856)
 * Hi theandystratton
    I have the same problem with the following error: Post_id
   in /var/www/web/WP-content/plugins/pagerestrict/inc/admin.php on line 72 Any 
   chance you could offer a solution please? This appeared on the Page Restrict 
   Options page Thank you
    -  This reply was modified 9 years, 3 months ago by [MikeAlan](https://wordpress.org/support/users/mikealan/).
 *  [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php-errors-92/#post-8737896)
 * Hi further to my previous query I should have added that I am running the latest
   version of WordPress and BuddyPress.
    Further information can be supplied if 
   required. Thank you

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

The topic ‘PHP errors’ 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/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 4 replies
 * 4 participants
 * Last reply from: [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/php-errors-92/#post-8737856)
 * Status: not resolved