• andrewfloatingbridge

    (@andrewfloatingbridgecomau)


    Hi guys,

    Since the latest update this error has popped up:

    Notice: Undefined offset: 5 in /home/villagec/public_html/wp-content/plugins/ultimate-member/includes/um-short-functions.php on line 313

    Any ideas

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter andrewfloatingbridge

    (@andrewfloatingbridgecomau)

    The offending part:

    /**
    * If conditions are met return true;
    *
    * @param $data
    *
    * @return bool
    */
    function um_field_conditions_are_met( $data ) {

    if (!isset( $data[‘conditions’] )) return true;

    $state = ( $data[‘conditional_action’] == ‘show’ ) ? 1 : 0;

    $first_group = 0;
    $state_array = array();
    $count = count($state_array);
    foreach ($data[‘conditions’] as $k => $arr){

    $val = $arr[3];
    $op = $arr[2];

    if (strstr($arr[1], ‘role_’))
    $arr[1] = ‘role’;

    $field = um_profile($arr[1]);

    if( $arr[5] != $first_group ){ (LINE 313)
    ……

    I am also have this issue since moving to 2.0.35

    Thread Starter andrewfloatingbridge

    (@andrewfloatingbridgecomau)

    Yeh very annoying .. I can see the issue
    $data[‘conditions’] as $k => $arr
    mustnt have data in the 5th index position .. so a deep problem

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrade error’ is closed to new replies.