v21 issues

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!
User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

v21 issues

Post by Metalics » 11 May 2021, 14:56

Hello,
- I receive the following error in typo3 log after updating to Aimeos V21. Same error for a thousand times.
Core: Error handler (FE): PHP Warning: in_array() expects parameter 2 to be array, string given in /.../typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/catalog/filter/supplier-body-standard.php line 40

- Another issue coming with V21 is "Counts" behavior. Counts for Catalog, Supplier and Attribute is limited to 250. Is there a new configuration to change that or is this a bug?

- "Go to Basket" link in new mini basket doesn't have correct link path.

- And it is not possible to remove a product from mini or main basket.

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

Re: v21 issues

Post by aimeos » 12 May 2021, 10:04

As always, we appreciate your feedback very much! :-)
Metalics wrote: 11 May 2021, 14:56 - I receive the following error in typo3 log after updating to Aimeos V21. Same error for a thousand times.
Core: Error handler (FE): PHP Warning: in_array() expects parameter 2 to be array, string given in /.../typo3conf/ext/aimeos/Resources/Private/Extensions/ai-client-html/client/html/templates/catalog/filter/supplier-body-standard.php line 40
This happened if the catalog/filter component is at the same page as the new supplier/detail component and has been fixed now.
Metalics wrote: 11 May 2021, 14:56 - Another issue coming with V21 is "Counts" behavior. Counts for Catalog, Supplier and Attribute is limited to 250. Is there a new configuration to change that or is this a bug?
There's a new security setting for limiting the maximum amount of items that can be retrieved to prevent denial of service attacks but that shall not affect the counts. It's fixed now too.
Metalics wrote: 11 May 2021, 14:56 - "Go to Basket" link in new mini basket doesn't have correct link path.
Can you make sure that the target page is configured correctly. If you use TypoScript to add the mini basket to the header, the setting for "plugins.tx_aimeos.settings.client.html.basket.standard.target" must be added there.
Metalics wrote: 11 May 2021, 14:56 - And it is not possible to remove a product from mini or main basket.
We switched from FontAwesome to LineAwesome and the trash icon uses a different code there. Now fixed.

All fixes will be part of the release next week.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: v21 issues

Post by Metalics » 18 May 2021, 00:24

Thank you for fixing the issues I mentioned. I will test it when the fixed version is published.
Another issues we have discovered:

1- Following error appears when no d_pos parameter available in URL:
--Catalog path for ID "xxxxxxx" not found--

2- Catalog search is not working as expected. If you use a search term which is not finding any result, it works normally and displaying "No item found" as expected. But if you type a search term which can find a product, the following error is displaying after entering search button: "Oops, an error occurred! Code: xxxxxxxxx"

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

Re: v21 issues

Post by aimeos » 18 May 2021, 06:54

Can you have a look into the TYPO3 var/log/* files and post the stack trace of the error?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: v21 issues

Post by Metalics » 20 May 2021, 23:13

aimeos wrote: 18 May 2021, 06:54 Can you have a look into the TYPO3 var/log/* files and post the stack trace of the error?
Both problems caused by routeEnhancers configuration given in Aimeos TYPO3 distribution:

routeEnhancers:
Aimeos:
type: Extbase
namespace: ai
defaultController: 'Catalog::list'
routes:
- { routePath: '/pin/{pin_action}/{pin_id}/{d_name}', _controller: 'Catalog::detail' }
- { routePath: '/history/{his_action}/{his_id}', _controller: 'Account::history' }
- { routePath: '/watch/{wat_action}/{wat_id}', _controller: 'Account::watch' }
- { routePath: '/watch/{wat_action}', _controller: 'Account::watch' }
- { routePath: '/fav/{fav_action}/{fav_id}', _controller: 'Account::favorite' }
- { routePath: '/fav/{fav_action}', _controller: 'Account::favorite' }
- { routePath: '/c/{f_name}~{f_catid}', _controller: 'Catalog::list' }
- { routePath: '/p/{d_name}/{d_prodid}/{d_pos}', _controller: 'Catalog::detail' }
- { routePath: '/d/{d_name}/{d_pos}', _controller: 'Catalog::detail' }
- { routePath: '/lt/{l_type}', _controller: 'Catalog::list' }
- { routePath: '/lp/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/ls/{f_sort}/{l_page}', _controller: 'Catalog::list' }
- { routePath: '/l/{f_sort}', _controller: 'Catalog::list' }
- { routePath: '/b/{b_action}', _controller: 'Basket::index' }
- { routePath: '/co/{c_step}', _controller: 'Checkout::index' }
- { routePath: '/s/{s_name}/{f_supid}', _controller: 'Supplier::detail' }
defaults:
b_action: ''
c_step: ''
f_sort: ''
d_pos: ''
Last edited by Metalics on 20 May 2021, 23:26, edited 1 time in total.

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: v21 issues

Post by Metalics » 20 May 2021, 23:17

aimeos wrote: 12 May 2021, 10:04
Metalics wrote: 11 May 2021, 14:56 - Another issue coming with V21 is "Counts" behavior. Counts for Catalog, Supplier and Attribute is limited to 250. Is there a new configuration to change that or is this a bug?
There's a new security setting for limiting the maximum amount of items that can be retrieved to prevent denial of service attacks but that shall not affect the counts. It's fixed now too.
I updated to V21.4.2 and now counts for Catalog, Supplier and Attribute is limited to 100 :)

User avatar
Metalics
Advanced
Posts: 103
Joined: 13 Jul 2015, 23:59

Re: v21 issues

Post by Metalics » 20 May 2021, 23:25

aimeos wrote: 12 May 2021, 10:04
Metalics wrote: 11 May 2021, 14:56 - "Go to Basket" link in new mini basket doesn't have correct link path.
Can you make sure that the target page is configured correctly. If you use TypoScript to add the mini basket to the header, the setting for "plugins.tx_aimeos.settings.client.html.basket.standard.target" must be added there.
I am using the following configuration for mini basket on header. It was working for Aimeos V20.xx, after updating to V21 "Go to Basket" link is not correct anymore.
..............
.....
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = Aimeos
extensionName = Aimeos
pluginName = basket-small
controller = Basket
action = small
settings.client.html.basket. standard.url.target = 7
settings.client.jsonapi.url.target = 21
}
.....
........
I tried without "standard" parameter because of changes in V21 (settings.client.html.basket.url.target = 7) and still same problem.

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

Re: v21 issues

Post by aimeos » 24 May 2021, 08:50

Metalics wrote: 20 May 2021, 23:17 I updated to V21.4.2 and now counts for Catalog, Supplier and Attribute is limited to 100 :)
That wasn't intended for sure and is fixed in aimeos/ai-client-html:dev-master and will be available with the next release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: v21 issues

Post by aimeos » 30 May 2021, 06:53

Metalics wrote: 20 May 2021, 23:25
aimeos wrote: 12 May 2021, 10:04
Metalics wrote: 11 May 2021, 14:56 - "Go to Basket" link in new mini basket doesn't have correct link path.
Can you make sure that the target page is configured correctly. If you use TypoScript to add the mini basket to the header, the setting for "plugins.tx_aimeos.settings.client.html.basket.standard.target" must be added there.
I am using the following configuration for mini basket on header. It was working for Aimeos V20.xx, after updating to V21 "Go to Basket" link is not correct anymore.
..............
.....
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = Aimeos
extensionName = Aimeos
pluginName = basket-small
controller = Basket
action = small
settings.client.html.basket. standard.url.target = 7
settings.client.jsonapi.url.target = 21
}
.....
........
I tried without "standard" parameter because of changes in V21 (settings.client.html.basket.url.target = 7) and still same problem.
Your configuration contains a space between "basket." and "standard" which won't work.
We had the same problem in one installation but it mysteriously disappeared after we removed "standard" in the "plugin.tx_aimeos.settings.client.html.basket.standard.url.target" and changed it back again. This configuration currently works in our environments:

Code: Select all

plugin.tx_aimeos.settings.client.html.basket.standard.url.target = 11

lib.navigation.misc = COA
lib.navigation.misc.basket = USER
lib.navigation.misc.basket {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    vendorName = Aimeos
    extensionName = Aimeos
    pluginName = basket-small
    controller = Basket
    action = small
    settings =< plugin.tx_aimeos.settings
}
Also make sure that you put something into the basket or change the quantity and reload because the basket content is cached in the session by default.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

ivanp
Posts: 37
Joined: 05 Mar 2021, 17:52

Re: v21 issues - Line Awesome

Post by ivanp » 04 Jun 2021, 17:33

The icons for social media do not show up.
Also the "plus" and "minus" symbols for the accordion elements have a wrong code.

Post Reply