Override catalog/lists/standard/template-body gives error undefined function map()

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!
pixelplumber
Posts: 22
Joined: 26 Oct 2019, 12:38

Override catalog/lists/standard/template-body gives error undefined function map()

Post by pixelplumber » 03 Feb 2020, 01:28

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

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

pixelplumber
Posts: 22
Joined: 26 Oct 2019, 12:38

Re: Override catalog/lists/standard/template-body gives error undefined function map()

Post by pixelplumber » 03 Feb 2020, 01:44

<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?

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

Re: Override catalog/lists/standard/template-body gives error undefined function map()

Post by aimeos » 03 Feb 2020, 08:24

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, Image give us a star

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

Re: Override catalog/lists/standard/template-body gives error undefined function map()

Post by aimeos » 06 Feb 2020, 17:29

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.
Doesn't seem to be a general problem. Maybe it's related to the route enhancer configuration you are using.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply