tradefurniturecompany / site

tradefurniturecompany.co.uk (Magento 2)
https://upwork.com/fl/mage2pro
2 stars 0 forks source link

[Mageplaza_Osc] Checkout is freezing at localhost because of JavaScript errors: «Cannot read properties of undefined (reading 'length')» / «Unable to process binding "text: function(){return getItems().length }» #237

Closed dmitrii-fediuk closed 1 year ago

dmitrii-fediuk commented 1 year ago

03

01

dmitrii-fediuk commented 1 year ago

The failure point: https://github.com/tradefurniturecompany/site/blob/2022-11-24/app/code/Mageplaza/Osc/view/frontend/web/template/container/summary/cart-items.html#L26

<span data-bind="text: getItems().length"></span>
dmitrii-fediuk commented 1 year ago

It is a bug of my Apache server: it returns garbage data (???????) to a /rest/default/V1/guest-carts/hpKYobQ9va05saJOade06dZP5CPxvGUj/totals-information request.
Usually I fix it by reloading the Apache service in Windows.

dmitrii-fediuk commented 1 year ago

It could be related to https://github.com/tradefurniturecompany/wp/issues/2 and https://github.com/tradefurniturecompany/wp/issues/3

dmitrii-fediuk commented 1 year ago

Fixed by: https://github.com/tradefurniturecompany/wp/issues/2#issuecomment-1326956641 https://github.com/tradefurniturecompany/wp/issues/3#issuecomment-1326956485