Installation error on line 133

Support MB Conditional Logic Installation error on line 133

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1035
    catarinacarrarocatarinacarraro
    Participant

    The installation has the following problem
    Parse error: syntax error, unexpected '[' in /home/site/public_html/wp-content/plugins/meta-box-conditional-logic/inc/class-conditional-logic.php on line 133

    I commented to solve the following code "/*, ['and', 'or']*/"

    $relation = ( isset( $condition['relation'] ) && in_array( $condition['relation'] /*, ['and', 'or']*/ ) )
    ? $condition['relation'] : 'and';

    #1036
    Tan NguyenTan Nguyen
    Participant

    Hi catarinacarraro,

    Thanks for purchasing and using MB Conditional Logic.

    Sorry, this problem because Conditional Logic isn't compatibility with your PHP version, this is our bug and we'll have an update on the next day and you'll get the update shortly.

    To fix it now, you can simply replace
    ['and', 'or']

    with
    array('and', 'or')

    Then that line with become:

    
    $relation = ( isset( $condition['relation'] ) && in_array( $condition['relation'], array('and', 'or') ) ) ? $condition['relation'] : 'and';
    

    Thank you and best regards.

    Tan Nguyen

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Installation error on line 133’ is closed to new replies.