[Solved] Parse error: syntax error, unexpected T_ELSE in ….. modules.php on line 243 [closed]


You’ve added an else to an if that already has one. So what you have now is:

if ($value['set_function']) {
    [...]
    // STS V4.6 drop start
} else {
    if($key == 'MODULE_STS_TEMPLATE_FOLDER'){
        [...]
    }
// STS V4.6 drop end
} else {
    $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
}

which makes no sense. Without knowing exactly what the code is doing it’s hard to know what the fix is, but I’d guess you mean something like this:

if ($value['set_function']) {
    [...]

} else if ($key == 'MODULE_STS_TEMPLATE_FOLDER') {
    // STS V4.6 drop start
    [...]
    // STS V4.6 drop end
} else {
    $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
}

0

solved Parse error: syntax error, unexpected T_ELSE in ….. modules.php on line 243 [closed]