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
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
Last edited by nightcat on Tue Mar 15, 2016 2:18 am, edited 1 time in total.
Is it this error: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
http://forum.opencart.com/viewtopic.php ... 99#p608658
what is line 2209? there is total 1535 lines

pm-netti wrote:Is it this error: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
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.nightcat wrote:pm-netti wrote:Is it this error: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
http://forum.opencart.com/viewtopic.php ... 99#p608658
what is line 2209? there is total 1535 lines
total got 3069 line
https://github.com/opencart/opencart/bl ... stomer.php
You look this model lines 1053 and 1105:
Code: Select all
&& !empty($custom_field['validation']) &&
I have sometime so, FTP program did these extra lines.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 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.
Removed and reupped the customer file and it worked.
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.
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.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Who is online
Users browsing this forum: No registered users and 8 guests