• 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;
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @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

    (@theandystratton)

    Updating this shortly. Stay tuned for the update.

    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.

    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.