[Solved] /shop/stock and /shop/count Javascript throws errors

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!
rowild

[Solved] /shop/stock and /shop/count Javascript throws errors

Post by rowild » 28 Oct 2020, 14:45

I keep getting these errors:

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.
How can I fix or even stop that?

I have already set these to 0:

Code: Select all

catalog {
        count {
          enable = 0
          supplier.aggregate = 0
          attributes.aggregate = 0
        }
        list.stock.enable = 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"...
Last edited by rowild on 30 Oct 2020, 06:54, edited 1 time in total.

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

Re: /shop/stock and /shop/count Javascript throws errors

Post by aimeos » 29 Oct 2020, 08:03

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: /shop/stock and /shop/count Javascript throws errors

Post by rowild » 30 Oct 2020, 06:53

It seems I have deleted a required css class somewhere. Re-working the design from the originals again works fine.

Post Reply