gpt4 book ai didi

php - 打字3 6.2 : "Could not find a suitable type converter for "String""exeption after update

转载 作者:行者123 更新时间:2023-12-02 04:20:24 31 4
gpt4 key购买 nike

TYPO3从一个非常旧的版本更新到TYPO3 6.2。现在大多数事情都可以正常工作,但我有一个自己编写的扩展,它给了我以下错误:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1297759968: Exception while property mapping at property path "":Could not find a suitable type converter for "String" because no such class or interface exists. | TYPO3\CMS\Extbase\Property\Exception thrown in file /srv/vhosts.d/typo3_src-6.2.9/typo3/sysext/extbase/Classes/Property/PropertyMapper.php in line 106.

我在生成链接的 Controller 之一中有一个列表方法:

<f:link.action action="show" arguments="{id : course.id}"> {course.name}</f:link.action>

此列表方法有效,但是当我想在网站中打开此生成的链接时,我收到上面的错误。

我删除了 showAction 方法中的所有内容,并将模板更改为没有特殊内容的基本输出。该方法如下所示:

 /**
* action show
*
* @param String Course-Id
* @return void
*/
public function showAction($id){

}

但是错误仍然存​​在。我完全不知道出了什么问题。如果有人有不同的观点并且有一些正确的想法,我可以尝试找出问题的真正所在,那就太好了。

最佳答案

我认为有必要

 /**
* action show
*
* @param string $id Course-Id
* @return void
*/
public function showAction($id){

}

string 小写,并且还必须指定参数 $id

关于php - 打字3 6.2 : "Could not find a suitable type converter for "String""exeption after update,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30932294/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com