Update from 21.10.2 to 22.10.7

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!
robert63
Posts: 25
Joined: 03 Nov 2021, 13:38

Update from 21.10.2 to 22.10.7

Post by robert63 » 10 May 2023, 16:33

When updating typo3 to 11.5.26 and also updating Aimeos from 21.10.2 to 22.10.7 there is a problem with select-Products.

The "Into basket" button is black and active, but as soon as we select a color or a size the button turns grey and is inactive. So it is not possible to purchase such an article.
Normal articles without a selection work fine.

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

Re: Update from 21.10.2 to 22.10.7

Post by aimeos » 11 May 2023, 06:52

First check if the JS request for the stock levels yields a valid result and if there's stock for the variants available.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

robert63
Posts: 25
Joined: 03 Nov 2021, 13:38

Re: Update from 21.10.2 to 22.10.7

Post by robert63 » 12 May 2023, 14:44

No, the JS request for the stock levels throws an error. But what to do now? I mean I just made an update. The same data and stock level was fine before.

robert63
Posts: 25
Joined: 03 Nov 2021, 13:38

Re: Update from 21.10.2 to 22.10.7

Post by robert63 » 12 May 2023, 16:57

The error is: [Error] Refused to execute as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
How to fix?

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

Re: Update from 21.10.2 to 22.10.7

Post by aimeos » 14 May 2023, 09:53

The stock page in TYPO3 is delivered as "text/html" instead of "text/javascript". Please check if the TYPO3 page type (type=191351524) is added to the URL.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

robert63
Posts: 25
Joined: 03 Nov 2021, 13:38

Re: Update from 21.10.2 to 22.10.7

Post by robert63 » 15 May 2023, 08:05

Yes, this is the case
http://xxxx.xxxx.xx/stock?ai%5Baction%5D=stock&ai%5Bcontroller%5D=Catalog&ai%5Bst_pid%5D%5B0%5D=37&ai%5Bst_pid%5D%5B1%5D=38&ai%5Bst_pid%5D%5B2%5D=39&ai%5Bst_pid%5D%5B3%5D=40&ai%5Bst_pid%5D%5B4%5D=41&ai%5Bst_pid%5D%5B5%5D=43&ai%5Bst_pid%5D%5B6%5D=44&ai%5Bst_pid%5D%5B7%5D=45&ai%5Bst_pid%5D%5B8%5D=46&ai%5Bst_pid%5D%5B9%5D=48&ai%5Bst_pid%5D%5B10%5D=49&ai%5Bst_pid%5D%5B11%5D=50&ai%5Bst_pid%5D%5B12%5D=51&type=191351524

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

Re: Update from 21.10.2 to 22.10.7

Post by aimeos » 16 May 2023, 06:37

Can you post the request headers from the browser console for the stock request?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

robert63
Posts: 25
Joined: 03 Nov 2021, 13:38

Re: Update from 21.10.2 to 22.10.7

Post by robert63 » 16 May 2023, 07:29

It is:
http://xxx.xxx.xxx/detail?ai%5Baction%5D=detail&ai%5Bcontroller%5D=Catalog&ai%5Bd_name%5D=softshell-weste-e-s-motion-2020-damen&ai%5Bd_pos%5D=2

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

Re: Update from 21.10.2 to 22.10.7

Post by aimeos » 18 May 2023, 07:36

The complete request and response headers from the browser console please, not only the URL.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply