Page 1 of 1
[Help] i can't open customer page in Admin
Posted: Fri Apr 15, 2016 11:16 am
by Suwanto
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 pictures
https://www.dropbox.com/s/lpub4y7ldrsu5 ... 0.png?dl=0
https://www.dropbox.com/s/kehhbrd83w1xn ... 1.png?dl=0
Re: [Help] i can't open customer page in Admin
Posted: Sat Apr 16, 2016 10:29 am
by Suwanto
anybody can help me please..??
Re: [Help] i can't open customer page in Admin
Posted: Sat Apr 16, 2016 11:20 am
by Suwanto
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
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']);
}
is there anything wrong?
please help me how to fix this problem..
Re: [Help] i can't open customer page in Admin
Posted: Sat Apr 16, 2016 4:26 pm
by Suwanto
Solution:
} 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'])))) {
SOLVED
Re: [Help] i can't open customer page in Admin
Posted: Sat Apr 16, 2016 7:46 pm
by jouvylee
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.
Re: [Help] i can't open customer page in Admin
Posted: Tue Apr 26, 2016 10:01 pm
by one2012
Suwanto wrote:Solution:
} 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'])))) {
SOLVED
Yes, it solve me to.
Re: [Help] i can't open customer page in Admin
Posted: Wed Apr 27, 2016 12:59 pm
by justballoons
Please tell me where I install the fix..
Re: [Help] i can't open customer page in Admin
Posted: Wed Apr 27, 2016 8:22 pm
by jaysmodels
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']);
}
Re: [Help] i can't open customer page in Admin
Posted: Fri Apr 29, 2016 10:52 pm
by one2012
Open:
/admin/controller/customer/customer.php
On line 1105 found 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'])))) {
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'])))) {
Re: [Help] i can't open customer page in Admin
Posted: Sat Apr 30, 2016 6:29 pm
by jaysmodels
Thank you, all good now.
Re: [Help] i can't open customer page in Admin http 500 erro
Posted: Fri May 06, 2016 7:28 pm
by Gensen
Thanks solved it for me to!
Re: [Help] i can't open customer page in Admin
Posted: Fri May 06, 2016 10:57 pm
by one2012
You are welcome guys!

Re: [Help] i can't open customer page in Admin
Posted: Thu May 26, 2016 9:00 pm
by soniczpank
thanks, work it for me too, but whats is the fix, please explain to know
regards
Re: [Help] i can't open customer page in Admin
Posted: Thu May 26, 2016 10:38 pm
by one2012
I think it will be fixed in next OC release.
Re: [Help] i can't open customer page in Admin
Posted: Fri Jun 03, 2016 8:54 pm
by soniczpank
now i having the same issue in address in coustomer module
Re: [Help] i can't open customer page in Admin
Posted: Fri Jun 03, 2016 9:05 pm
by i2Paq
OC 2.2.0. still has a Admin and Front issue with Customers.
See
http://forum.opencart.com/viewtopic.php ... 37#p607537
Re: [Help] i can't open customer page in Admin
Posted: Fri Jul 01, 2016 9:17 pm
by kumaresan
Thanks friends but can't find any difference in code.
Can anyone explain this issuse...
Re: [Help] i can't open customer page in Admin
Posted: Fri Jul 01, 2016 9:37 pm
by straightlight
kumaresan wrote:Thanks friends but can't find any difference in code.
Can anyone explain this issuse...
Have you tried this modification on the topic?
http://forum.opencart.com/viewtopic.php ... 10#p616544