cancel
Showing results for 
Search instead for 
Did you mean: 

syntax error, unexpected ' ' (T_STRING), expecting variable (T_VARIABLE) in magento 2

syntax error, unexpected ' ' (T_STRING), expecting variable (T_VARIABLE) in magento 2

Hello 

 

I am having issue on my controller for adding product library.

 

Error: syntax error, unexpected ' ' (T_STRING), expecting variable (T_VARIABLE) in magento 2

 

Please suggest

 

Thanks.

1 REPLY 1

Re: syntax error, unexpected ' ' (T_STRING), expecting variable (T_VARIABLE) in magento 2

Hi @krishenuetb254 

 

I think where you have copied the text that having special character that's why you getting such error.

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!