Hi firstly i think this a bug if not i am sorry for posting in the wrong place
Opencart version 2.2.
Default be edited theme
Hi i was testing the new site for bugs and iv'e found what i think is a bug.
When you go to site map and then hit address book i get this error
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /home3/natur244/public_html/catalog/controller/account/address.php on line 522
anyone got a fix for it?
In fact its doing the same from the accounts page too, deffo a bug
Yes, this has been reported already. In your catalog/controller/account/address.php file,
find:
replace with:
find:
Code: Select all
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation'] && $custom_field['location'] == 'address')) && !filter_var($this->request->post['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
Code: Select all
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation']) && $custom_field['location'] == 'address') && !filter_var($this->request->post['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 9 guests