Page 1 of 1

SyntaxError : Invalid character

Posted: Sun Apr 21, 2019 6:02 pm
by fungandrew
Hi,

We have enabled "Cash on delivery" in the payment extension recently. After enabling it, we got an "SyntaxError : Invalid character" message everytime when we try to edit the invoice. We have no idea what this error comes from and we have to disable the cod payment method everytime we want to edit the invoice. The system log does not show any error. Does anyone encounter this before ? Thanks.

Andrew

Re: SyntaxError : Invalid character

Posted: Sun Apr 21, 2019 6:13 pm
by thekrotek
Not related to CoD extension. Looks like some modification improperly modifies the code.

Re: SyntaxError : Invalid character

Posted: Mon Apr 22, 2019 7:04 am
by D3MO
Any surcharge modules installed? for example etra fee for using this cash on delivery?or other payment?
fungandrew wrote:
Sun Apr 21, 2019 6:02 pm
Hi,

We have enabled "Cash on delivery" in the payment extension recently. After enabling it, we got an "SyntaxError : Invalid character" message everytime when we try to edit the invoice. We have no idea what this error comes from and we have to disable the cod payment method everytime we want to edit the invoice. The system log does not show any error. Does anyone encounter this before ? Thanks.

Andrew

Re: SyntaxError : Invalid character

Posted: Mon Apr 22, 2019 11:19 pm
by fungandrew
We have installed 3 payment module, bank transfer, cod and PayPal.

These 3 are all built in opencart extension

Re: SyntaxError : Invalid character

Posted: Tue Apr 23, 2019 4:39 am
by D3MO
well you do require deeper looking into the code itself it is hard to mention what may be wrong, as it can be even if x file were modified by x editor can be encoding or even windows/linux end of line characters causing this.

Re: SyntaxError : Invalid character

Posted: Thu Apr 25, 2019 10:21 am
by fungandrew
Thanks. Is there any way to debug the issue easilier ? Any debug option can turn on ? The error log does not have any info on the error.

Re: SyntaxError : Invalid character

Posted: Thu Apr 25, 2019 3:10 pm
by thekrotek
fungandrew wrote:
Thu Apr 25, 2019 10:21 am
Thanks. Is there any way to debug the issue easilier ? Any debug option can turn on ? The error log does not have any info on the error.
If you are a developer, it will be easy to debug for you. Otherwise not.

Re: SyntaxError : Invalid character

Posted: Thu Apr 25, 2019 7:22 pm
by D3MO
best would be simply to get a paid help. So a developer would login to your ftp and and debug it.