Troubles with "count" js file
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Troubles with "count" js file
[TYPO3 9.5, aimeos 19.7, php 7.2]
Looking into the Chrome devtool, I see that there is an error:
The content of the "count" script (which has no js-ending) is mainly Javascript, but it i wrapped in HTML code, which most likely is the reason for the error.
Reading through the "count" script, I assume that the script is coming from aimeos.
Currently, there is only a catalog list plugin implemented and active, nothing else (not even invisible).
Also, all compress and concatenate options are set to 0.
Is this a problem that in connected to aimeos?
If yes: how can I solve that?
If no: sorry for bothering!
Thank you!
Looking into the Chrome devtool, I see that there is an error:
Code: Select all
Uncaught SyntaxError: Unexpected token '<'
Reading through the "count" script, I assume that the script is coming from aimeos.
Currently, there is only a catalog list plugin implemented and active, nothing else (not even invisible).
Also, all compress and concatenate options are set to 0.
Is this a problem that in connected to aimeos?
If yes: how can I solve that?
If no: sorry for bothering!
Thank you!
Re: Troubles with "count" js file
Make sure you use "No frame" in the "Appearance" tab -> "Frame" option of the plugin content element.
"Default" will add a <div> around the plugin output which makes JSON invalid.
"Default" will add a <div> around the plugin output which makes JSON invalid.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Troubles with "count" js file
I thought about that, too, but "none" is actually the standard configuration:
And just to make sure, I deleted and integrated the (only!) plugin manually once more, cleared and flushed all caches and also made sure via a look in the database that all frame_class fields are set to none. Also the trash bin was emptied.
But the console still throws that error.
The weird thing is that, if I put an <f:debug>... in the fluid template, all those debug informations will be part of the counts script, to (and therefore throw an error).
Code: Select all
TCAdefaults.tt_content.frame_class = none
But the console still throws that error.
The weird thing is that, if I put an <f:debug>... in the fluid template, all those debug informations will be part of the counts script, to (and therefore throw an error).
Re: Troubles with "count" js file
BTW - having a frame class or not does not make any difference, if using the aimeos_dist.
(I assume I have some error in my own sitepackage extension.)
(I assume I have some error in my own sitepackage extension.)
Re: Troubles with "count" js file
You need to remove the div tags somehow:
Normally, they are only inserted if something else tan "Frame" -> "No frame" is used but there may be TS settings that overwrite that value.
Code: Select all
<div id="..." class="frame ..." ... >
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star