Magento2

Parse error: syntax error, unexpected ‘ ‘ (T_STRING) This kind of error comes in two case.

Case 1:
This kind of error comes when some white space is present in your code.
Solution:
Remove white space from your code.

Case 2:
When you copy code from other source.
Solution:
When you copy code from some source, it includes special character and white space in the lines you have to remove these invisible special characters and white space from lines at beginning or ending.

Hope this will helps you!

Leave a Reply

Your email address will not be published. Required fields are marked *