[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
ACSD-65935:刪除產品時,customerOrders GraphQL查詢傳回內部伺服器錯誤
ACSD-65935修補程式修正刪除產品時,customerOrders GraphQL查詢傳回內部伺服器錯誤的問題。 安裝Quality Patches Tool (QPT) 1.1.67時,即可使用此修補程式。 修補程式ID為ACSD-65935。 請注意,此問題已排程在Adobe Commerce 2.4.9中修正。
受影響的產品和版本
已為Adobe Commerce版本建立修補程式:
- Adobe Commerce (所有部署方法) 2.4.7-p5
與Adobe Commerce版本相容:
- Adobe Commerce (所有部署方法) 2.4.4 - 2.4.7-p6
NOTE
此修補程式可能適用於發行版本為Quality Patches Tool的其他版本。 若要檢查修補程式是否與您的Adobe Commerce版本相容,請將
magento/quality-patches套件更新至最新版本,並在Quality Patches Tool上檢查相容性:搜尋修補程式頁面。 使用修補程式ID作為搜尋關鍵字,以尋找修補程式。問題
刪除產品時,customerOrders GraphQL查詢傳回內部伺服器錯誤。
要再現的步驟:
- 建立兩個簡單產品
- 建立客戶並從前端訂購兩種產品。
- 前往後端並刪除一個產品。
- 建立客戶Token:
https://localhost/pub/graphql
mutation {
generateCustomerToken(email: "test@test.com", password: "123123qA") {
token
}
}
- 使用
eligible_for_return篩選器擷取訂單清單(用於PWA擷取客戶訂單):
https://localhost/pub/graphql
{
customerOrders {
items {
order_number
id
created_at
grand_total
status
items{
eligible_for_return
}
}
}
}
預期結果:
收集訂單清單時沒有發生錯誤。
實際結果:
例外狀況: 內部伺服器錯誤
[2025-05-16T23:42:15.174025+00:00] report.ERROR: Call to a member function getIsReturnable() on null
{"exception":"[object] (GraphQL\\Error\\Error(code: 0): Call to a member function getIsReturnable() on null at /var/www/html/localhost/vendor/webonyx/graphql-php/src/Error/Error.php:170) [previous exception] [object] (Error(code: 0): Call to a member function getIsReturnable() on null at /var/www/html/localhost/magento2ee/app/code/Magento/Rma/Helper/Data.php:644)"}
[]
套用修補程式
若要套用個別修補程式,請根據您的部署方法使用下列連結:
- Adobe Commerce或Magento Open Source內部部署: Quality Patches Tool 指南中的>使用狀況Quality Patches Tool。
- 雲端基礎結構上的Adobe Commerce:雲端基礎結構上的Commerce指南中的升級和修補程式>套用修補程式。
相關閱讀
若要進一步瞭解Quality Patches Tool,請參閱:
recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3