簡體   English   中英

嘗試創建/呈現包含 slug 擴展名的記錄時出現 UnSupportedEntityException

[英]UnSupportedEntityException when trying to create/render records containing slug extension

我正在嘗試在我的包中實現 slugs,但是當我嘗試創建記錄並運行我的消息使用者時,出現以下錯誤:

Unexpected exception occurred during Direct URL generation ["exception" => Oro\Bundle\RedirectBundle\Exception\UnsupportedEntityException { …}] ["processor" => "Oro\Bundle\RedirectBundle\Async\DirectUrlProcessor","message_id" => "oro.6256de2124b630.96491198","message_body" => ["createRedirect" => true,"id" => [3],"class" => "Phpro\OroBundleBlogBundle\Entity\BlogPostCategory"],"message_properties" => ["oro.message_queue.client.topic_name" => "oro.redirect.generate_direct_url.entity","oro.message_queue.client.queue_name" => "oro.default","oro.security.token" => "organizationId=1;userId=1;userClass=Oro\Bundle\UserBundle\Entity\User;roles=ROLE_ADMINISTRATOR"],"message_headers" => ["content_type" => "application/json","message_id" => "oro.6256de2124b630.96491198","timestamp" => "1649860129","priority" => "2"],"elapsed_time" => "34 ms","memory_usage" => "107.57 MB"]

slug 已存儲,但使用get_slug_urls_for_prototypes twig 過濾器會導致以下錯誤An exception has been thrown during the rendering of a template (""). 同樣是因為UnsupportedEntityException

我缺少一些配置嗎?

OroCommerce 文檔中所述,實體必須實現接口以支持 slug。 確保您滿足此要求。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM