Override catalog/lists/standard/template-body gives error undefined function map()
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!
-
- Posts: 22
- Joined: 26 Oct 2019, 12:38
Override catalog/lists/standard/template-body gives error undefined function map()
Hi, I created an extension for TYPO3 with your kickstarter and tried to override the client.html.catalog.lists.standard.template-body to remove the list-type (grid/list) widgets. My override template (just a copied body-standard minus lines 139-147) causes a fatal error:
Call to undefined function map()
Line 11: $catPath = $this->get( 'listCatPath', map() );
Do I need something extra in my extensions composer.json to autoload the definition for map()? I only have the default client/src directories, do the template directories need to be added too?
It works if I just use the built-in standard template.
Cheers.
env: TYPO3 9.5.13, Aimeos 9.10. php 7.3 Linux
Call to undefined function map()
Line 11: $catPath = $this->get( 'listCatPath', map() );
Do I need something extra in my extensions composer.json to autoload the definition for map()? I only have the default client/src directories, do the template directories need to be added too?
It works if I just use the built-in standard template.
Cheers.
env: TYPO3 9.5.13, Aimeos 9.10. php 7.3 Linux
Code: Select all
aimeos/ai-admin-jqadm 2019.10.9
aimeos/ai-admin-jsonadm 2019.10.3
aimeos/ai-client-html 2019.10.12
aimeos/ai-client-jsonapi 2019.10.3
aimeos/ai-controller-frontend 2019.10.8
aimeos/ai-controller-jobs 2019.10.9
aimeos/ai-gettext 2019.10.1
aimeos/ai-typo3 2019.10.5
aimeos/aimeos-core 2019.10.16
aimeos/aimeos-typo3 19.10.4
-
- Posts: 22
- Joined: 26 Oct 2019, 12:38
Re: Override catalog/lists/standard/template-body gives error undefined function map()
<facepalm> copied body-standard off ai-client master branch and not the 2019.10 branch.
All good now.
Incidentally, if I try an upgrade to 2020.1 in typo3 the pagination/sorting widgets all stop working - there are no request paramaters attached just the page URL so any clicks just reload the page.
Anyone else seen this?
All good now.
Incidentally, if I try an upgrade to 2020.1 in typo3 the pagination/sorting widgets all stop working - there are no request paramaters attached just the page URL so any clicks just reload the page.
Anyone else seen this?
Re: Override catalog/lists/standard/template-body gives error undefined function map()
2020.01 is beta so there are some bugs for sure and we will check that.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Override catalog/lists/standard/template-body gives error undefined function map()
Doesn't seem to be a general problem. Maybe it's related to the route enhancer configuration you are using.pixelplumber wrote: ↑03 Feb 2020, 01:44 Incidentally, if I try an upgrade to 2020.1 in typo3 the pagination/sorting widgets all stop working - there are no request paramaters attached just the page URL so any clicks just reload the page.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
