Post by nightcat » Tue Mar 15, 2016 1:36 am

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
Last edited by nightcat on Tue Mar 15, 2016 2:18 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Mon Aug 15, 2011 1:41 pm

Post by pm-netti » Tue Mar 15, 2016 1:44 am

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 :)

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by nightcat » Tue Mar 15, 2016 1:51 am

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 :)
Image

total got 3069 line

User avatar
New member

Posts

Joined
Mon Aug 15, 2011 1:41 pm

Post by pm-netti » Tue Mar 15, 2016 2:05 am

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 :)
Image

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']) &&

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by nightcat » Tue Mar 15, 2016 2:14 am

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?

User avatar
New member

Posts

Joined
Mon Aug 15, 2011 1:41 pm

Post by pm-netti » Tue Mar 15, 2016 2:29 am

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.

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by moneycarlo » Sun Apr 10, 2016 1:48 pm

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.

Active Member

Posts

Joined
Wed Sep 28, 2011 3:40 am

Post by Randem » Sun Apr 10, 2016 5:17 pm

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.

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


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am
Who is online

Users browsing this forum: No registered users and 8 guests