Project

General

Profile

Actions

Bug #96165

closed

Routing Parameter "ai__f_name" for route "ai_0" must match "[^/~]++" ("" given) to generate a corresponding URL.

Added by Jan Epper almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
aimeos, pending-close
Complexity:
Is Regression:
Sprint Focus:

Description

I'm using the Aimeos Shop EXT and the TYPO3 RoutingEnhancer throws an error for one of the routes.

I've asked this in the aimeos forum here: [[https://aimeos.org/help/viewtopic.php?f=16&t=4049]]

The Error Message:
Parameter "ai__f_name" for route "ai_0" must match "[^/~]++" ("" given) to generate a corresponding URL.
#0 /path/to/webroot/public/typo3/sysext/core/Classes/Routing/UrlGenerator.php(55): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'ai_0', 1, Array, Array)

The Error disappears when I remove the following Part of RouteEnhancer.

      -
        routePath: '/b/{b_action}'
        _controller: 'Basket::index'

This should create the route for the Basket and according to the aimeos Team this seems to be an TYPO3 Routing bug.

I'm using:
TYPO3 10.4.21
Aimeos 21.10.2
PHP 7.4
Apache Webserver

PS: My first bug repot, so sorry If I forgot any information.

Actions #1

Updated by Oliver Hader almost 3 years ago

  • Status changed from New to Needs Feedback

Can you please post the complete routeEnhancers section?

Actions #2

Updated by Jan Epper almost 3 years ago

Oliver Hader wrote in #note-1:

Can you please post the complete routeEnhancers section?

Here is the complete routeEnhancers section:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      sitemap.xml: 1533906435
  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: '/s/{s_name}/{f_supid}'
        _controller: 'Supplier::detail'
      -
        routePath: '/p/{d_name}/{d_prodid}/{d_pos}'
        _controller: 'Catalog::detail'
      -
        routePath: '/d/{d_name}/{d_pos}'
        _controller: 'Catalog::detail'
      -
        routePath: '/b/{b_action}'
        _controller: 'Basket::index'
      -
        routePath: '/co/{c_step}'
        _controller: 'Checkout::index'
      -
        routePath: '/lt/{l_type}'
        _controller: 'Catalog::list'
      -
        routePath: '/lp/{l_page}'
        _controller: 'Catalog::list'
      -
        routePath: '/l/{f_sort}'
        _controller: 'Catalog::list'
    defaults:
      f_sort: ''
      d_pos: ''
Actions #3

Updated by Jan Epper almost 3 years ago

Jan Epper wrote in #note-2:

Oliver Hader wrote in #note-1:

Can you please post the complete routeEnhancers section?

Here is the complete routeEnhancers section:

[...]

I did some further testing and I'm not sure if its a TYPO3 issue. Because as far as I can tell with the debuggin I did, is that the aimeos send a parameter with the value of "null" to the TYPO3 parameter building.

I'll check with the guys at aimeos first.

Actions #4

Updated by Oliver Hader about 2 years ago

  • Tags changed from aimeos to aimeos, pending-close
Actions #5

Updated by Oliver Hader about 2 years ago

Anything to do one the TYPO3 core side? In case there is, have there been additional settings for argument {f_name}?

Actions #6

Updated by Jan Epper about 2 years ago

Oliver Hader wrote in #note-5:

Anything to do one the TYPO3 core side? In case there is, have there been additional settings for argument {f_name}?

This issue has been resolved by the folks at aimeos. It wasn't an issue with the typo3 routing.

https://aimeos.org/help/viewtopic.php?f=16&t=4049&p=16176#p16176

This Issue can be closed.

Thank you

Actions #7

Updated by Oliver Hader about 2 years ago

  • Status changed from Needs Feedback to Closed

Nice & thanks for your feedback!

Actions

Also available in: Atom PDF