Uncaught SyntaxError: Unexpected token <

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
yacms
Posts: 16
Joined: 07 Jun 2018, 13:31

Uncaught SyntaxError: Unexpected token <

Post by yacms » 07 Jun 2018, 13:38

Hi everyone,

TYPO3 Version 8.7.11
AIMEOS 18.4.1

I installed everything like shown in the documentation. Deleted demo data and entered some of my own products. Everything was working pretty well. 1 Day later, without any known changes the Shop pages throwing errors:

(Reinstalled all pages, and demo data, still the same error) I have no clue why this happens:

Uncaught SyntaxError: Unexpected token <
?ai[s_prodcode][0]=demo-article&ai[s_prodcode][1]=demo-bundle-article&ai[s_prodcode][2]=demo-selection-article:1
Uncaught SyntaxError: Unexpected token <

any ideas?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Uncaught SyntaxError: Unexpected token <

Post by aimeos » 07 Jun 2018, 16:37

Did you enable TYPO3 debugging? What is added to the response you get from the server?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

yacms
Posts: 16
Joined: 07 Jun 2018, 13:31

Re: Uncaught SyntaxError: Unexpected token <

Post by yacms » 14 Jun 2018, 18:12

Hi, when i enable FE Debugging the page is rendered like this:

Image

Still same error...

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Uncaught SyntaxError: Unexpected token <

Post by aimeos » 14 Jun 2018, 18:38

Please disable FE debugging again :-)
Then have a look into the response for the catalog count request what is returned in the response payload. Use the debug toolbar of your browser to get the details.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

yacms
Posts: 16
Joined: 07 Jun 2018, 13:31

Re: Uncaught SyntaxError: Unexpected token <

Post by yacms » 18 Jun 2018, 22:38

I reconfigured everything from scratch, now its working fine... i am pretty sure this was an caching bug. Thanks for your help.

#CLOSE

Post Reply