• Site crashes, please see below for details.

    File Path: /plugin/if-menu/if-menu.php

    //Notice: Undefined index: id in /plugins/if-menu/if-menu.php on line 46
    Line #46: $c2[$condition[‘id’]] = $condition;

    within function get_conditions()
    —————————————————–
    if ($for_testing) {
    $c2 = array();
    foreach ($conditions as $condition) {
    $c2[$condition[‘id’]] = $condition;
    $c2[$condition[‘name’]] = $condition;
    if (isset($condition[‘alias’])) {
    $c2[$condition[‘alias’]] = $condition;
    }
    }
    $conditions = $c2;
    }
    —————————————————–

    • This topic was modified 6 years, 11 months ago by kgabales.
Viewing 1 replies (of 1 total)
  • Plugin Author Andrei

    (@andreiigna)

    Hi,

    This usually happens when a custom visibility rule is added by another theme or plugins. The added visibility rules are missing the id field, which is required.

    Do you know if a theme or other plugins add these?

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘Condition crashes site due to lack of id reference’ is closed to new replies.