Page 1 of 1
[Solved] .../customer/customer.php on line 2209
Posted: Tue Mar 15, 2016 1:36 am
by nightcat
Under administration section,
When I click "Customer", I received this error.
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /....../admin/controller/customer/customer.php on line 2209
Re: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AN
Posted: Tue Mar 15, 2016 1:44 am
by pm-netti
nightcat wrote:Under administration section,
When I click "Customer", I received this error.
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /....../admin/controller/customer/customer.php on line 2209
Is it this error:
http://forum.opencart.com/viewtopic.php ... 99#p608658
what is line 2209? there is total 1535 lines

Re: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AN
Posted: Tue Mar 15, 2016 1:51 am
by nightcat
pm-netti wrote:nightcat wrote:Under administration section,
When I click "Customer", I received this error.
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /....../admin/controller/customer/customer.php on line 2209
Is it this error:
http://forum.opencart.com/viewtopic.php ... 99#p608658
what is line 2209? there is total 1535 lines

total got 3069 line
Re: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AN
Posted: Tue Mar 15, 2016 2:05 am
by pm-netti
nightcat wrote:pm-netti wrote:nightcat wrote:Under administration section,
When I click "Customer", I received this error.
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /....../admin/controller/customer/customer.php on line 2209
Is it this error:
http://forum.opencart.com/viewtopic.php ... 99#p608658
what is line 2209? there is total 1535 lines

total got 3069 line
Your system makes an extra line break.
https://github.com/opencart/opencart/bl ... stomer.php
You look this model lines 1053 and 1105:
Code: Select all
&& !empty($custom_field['validation']) &&
Re: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AN
Posted: Tue Mar 15, 2016 2:14 am
by nightcat
Thanks pm-netti, for the solution, very appreciate it.
I re-upload a clean "customer.php" , and copy the whole script from the link you provide, problem solved.
But I really don't know why my system auto generate so many line?
Re: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AN
Posted: Tue Mar 15, 2016 2:29 am
by pm-netti
nightcat wrote:Thanks pm-netti, for the solution, very appreciate it.
I re-upload a clean "customer.php" , and copy the whole script from the link you provide, problem solved.
But I really don't know why my system auto generate so many line?
I have sometime so, FTP program did these extra lines.
Re: [Solved] .../customer/customer.php on line 2209
Posted: Sun Apr 10, 2016 1:48 pm
by moneycarlo
I also had the same problem on line 1105. In my case, I had uploaded the entire opencart.zip and uncompressed it on the server, so it's weird that it created the error.
Removed and reupped the customer file and it worked.
Re: [Solved] .../customer/customer.php on line 2209
Posted: Sun Apr 10, 2016 5:17 pm
by Randem
Hi nitecat,
This may also be helpful
Changes made to correct issues in OpenCart for v2.2.0.x
You may also want to upload in binary. If you upload in ASCII you could get some strange results.