[Solved] /shop/stock and /shop/count Javascript throws errors
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!
[Solved] /shop/stock and /shop/count Javascript throws errors
I keep getting these errors:
How can I fix or even stop that?
I have already set these to 0:
and commented the JS in catalog/count and catalog/stock templates. But the javascript links are still created in the head section of the generated html file and executed...
I eventually will need "stock count"...
Code: Select all
workshop:1 Refused to execute script from 'http://typo3-9-comp.oaa.lokal/shop/counts?ai%5Baction%5D=count&ai%5Bcontroller%5D=Catalog&ai%5Bf_catid%5D=1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
15:34:37.434 workshop:1 Refused to execute script from 'http://typo3-9-comp.oaa.lokal/shop/stock?ai%5Baction%5D=stock&ai%5Bcontroller%5D=Catalog&ai%5Bs_prodcode%5D%5B0%5D=aks_3&ai%5Bs_prodcode%5D%5B1%5D=ea-flucht&ai%5Bs_prodcode%5D%5B2%5D=fb-1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
15:34:37.842 workshop:1 Refused to execute script from 'http://typo3-9-comp.oaa.lokal/shop/stock?ai%5Baction%5D=stock&ai%5Bcontroller%5D=Catalog&ai%5Bs_prodcode%5D%5B0%5D=dipl_juli&ai%5Bs_prodcode%5D%5B1%5D=diplom-ws' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
15:34:37.842 workshop:1 Refused to execute script from 'http://typo3-9-comp.oaa.lokal/shop/stock?ai%5Baction%5D=stock&ai%5Bcontroller%5D=Catalog&ai%5Bs_prodcode%5D%5B0%5D=open-impro&ai%5Bs_prodcode%5D%5B1%5D=stuntmen_basic' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
I have already set these to 0:
Code: Select all
catalog {
count {
enable = 0
supplier.aggregate = 0
attributes.aggregate = 0
}
list.stock.enable = 0
}
I eventually will need "stock count"...
Last edited by rowild on 30 Oct 2020, 06:54, edited 1 time in total.
Re: /shop/stock and /shop/count Javascript throws errors
The standard Aimeos setup doesn't have that problem because this TS is used for those pages:
https://github.com/aimeos/aimeos-typo3/ ... xt#L60-L76
https://github.com/aimeos/aimeos-typo3/ ... xt#L60-L76
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: /shop/stock and /shop/count Javascript throws errors
It seems I have deleted a required css class somewhere. Re-working the design from the originals again works fine.