I'm having a little bit of an issue that im hoping someone would be able to give me a hand on.
I'm currently running opencart 2.2.0 and when i access the admin area and try to view the Customers->Customers section I get an Error 500.
I was able to go through the logs and find the following error
Code: Select all
PHP Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /home/xxx/domains/xxxxxxx/public/admin/controller/customer/customer.php on line 1105
Code: Select all
foreach ($custom_fields as $custom_field) {
if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($value['custom_field'][$custom_field['custom_field_id']])) {
$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation'] && $custom_field['location'] == 'address')) && !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
}
Would anyone have any recommendations on where I should look next to get to the bottom of this?