php notices when installing adaptable with behat

Issue #854 new
Peter Csonka created an issue
PHP Notice:  Undefined index: s_theme_adaptable_sitetitletext_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_sitetitletext_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_alerttext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_alerttext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_infobox_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_infobox_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_infobox2_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_infobox2_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_tickertext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_tickertext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p1cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p1cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p2cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p2cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p3cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p3cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_footnote_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_footnote_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_sitetitletext_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_sitetitletext_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_alerttext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_alerttext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_infobox_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_infobox_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_infobox2_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_infobox2_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_tickertext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_tickertext1_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p1cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p1cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p2cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p2cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_p3cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_p3cap_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203
PHP Notice:  Undefined index: s_theme_adaptable_footnote_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Notice: Undefined index: s_theme_adaptable_footnote_draftitemid in PATH/theme/adaptable/libs/admin_confightmleditor.php on line 203

Reproduction steps: https://docs.moodle.org/dev/Running_acceptance_test#Short_version 1-4 steps Moodle version: 2017111300.00

Comments (1)

  1. info ewallah

    The error disappears when you check if the index is set (libs/admin_confightmleditor.php line 203)

    if (!isset($_REQUEST[$this->get_full_name().'_draftitemid'])) {
        return false
    }
    
  2. Log in to comment