please help me.
i can not open customer page in admin. it's only blank page. i dont know why.. n there is no error message in error log.
here's the pictureshttps://www.dropbox.com/s/lpub4y7ldrsu5 ... 0.png?dl=0
https://www.dropbox.com/s/kehhbrd83w1xn ... 1.png?dl=0
i can not open customer page in admin. it's only blank page. i dont know why.. n there is no error message in error log.
here's the pictureshttps://www.dropbox.com/s/lpub4y7ldrsu5 ... 0.png?dl=0
https://www.dropbox.com/s/kehhbrd83w1xn ... 1.png?dl=0
found error in the page.
Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ')' in /home/ypcomput/public_html/admin/controller/customer/customer.php on line 1105
i don't change anything in that file.
the script is
please help me how to fix this problem..
Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ')' in /home/ypcomput/public_html/admin/controller/customer/customer.php on line 1105
i don't change anything in that file.
the script is
is there anything wrong?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']);
}
please help me how to fix this problem..
Solution:
SOLVED} 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'])))) {
how to solve this problem?
to day i install opencart 2.2
click the admin customer have problem
HTTP 500 error
That's odd... Microsoft Edge can’t find this page
This page can’t be displayed, because this site’s server might be under maintenance or there could be a programming error.
to day i install opencart 2.2
click the admin customer have problem
HTTP 500 error
That's odd... Microsoft Edge can’t find this page
This page can’t be displayed, because this site’s server might be under maintenance or there could be a programming error.
Yes, it solve me to.Suwanto wrote:Solution:
SOLVED} 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'])))) {
Do I need to reduce the code down to just those lines? Remove these other lines?
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']);
$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
}
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']);
$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
}
Open:
On line 1105 found this code:/admin/controller/customer/customer.php
Replace it by this code:} 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'])))) {
} 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'])))) {
OC 2.2.0. still has a Admin and Front issue with Customers.
See http://forum.opencart.com/viewtopic.php ... 37#p607537
See http://forum.opencart.com/viewtopic.php ... 37#p607537
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Have you tried this modification on the topic?kumaresan wrote:Thanks friends but can't find any difference in code.
Can anyone explain this issuse...
http://forum.opencart.com/viewtopic.php ... 10#p616544
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 97 guests