Support » Plugin: Simple Custom Author Profiles » fix “Undefined index: page”

  • on a fresh install of wordpress, activating this plugin resulted in this warning in wp-admin.

    Notice: Undefined index: page in /var/www/vhosts/ on line 316

    I added isset() clauses to the code to avoid the notice.

    (isset($_GET['page']) && $_GET['page'] != "umd_cap_fields") || 
    (isset($_GET['func']) && $_GET['func'] != 'delete_field') ||   

    Hope this helps!

    edit. oh. not enough testing. not sure if my change caused this error “Malformed URL, please go back and try again.” or not. proceed with caution…

    • This topic was modified 8 months, 1 week ago by  tmuka. Reason: oh. maybe i caused other issues
  • The topic ‘fix “Undefined index: page”’ is closed to new replies.