• Hi there,

    On development environment, I’ve enabled notices and here is what I see from the wp-admin panel:

    ErrorException thrown with message "Undefined index: page"
    
    Stacktrace:
    #6 ErrorException in wp-contents/plugins/adback-solution-to-adblock/admin/class-ad-back-admin.php:523
    #5 Handle error in wp-contents/plugins/adback-solution-to-adblock/admin/class-ad-back-admin.php:523
    #4 Ad_Back_Admin:addConfigNotice in wp-includes/class-wp-hook.php:286
    #3 WP_Hook:apply_filters in wp-includes/class-wp-hook.php:310
    #2 WP_Hook:do_action in wp-includes/plugin.php:465
    #1 do_action in wp-admin/admin-header.php:281
    #0 include in wp-admin/index.php:111

    The concerned line is the following one (from file wp-contents/plugins/adback-solution-to-adblock/admin/class-ad-back-admin.php:523):
    if (!$this->isConnected() && !in_array($_REQUEST['page'], array('ab', 'ab-placements', 'ab-message', 'ab-settings', 'ab-diagnostic'))) {

    The $_REQUEST['page'] does not exist. A simple $page declaration is enought to fix the notice:

    $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : '';
    if (!$this->isConnected() && !in_array($page, array('ab', 'ab-placements', 'ab-message', 'ab-settings', 'ab-diagnostic'))) {

    Regards,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice > Undefined index: page’ is closed to new replies.