1

升级到 Magento 2.1.8 后,我开始得到这个:

Uncaught ReferenceError: Unable to process binding "if: function (){return getCartParam('summary_count') }"
Message: Unable to process binding "if: function (){return maxItemsToDisplay < getCartLineItemsCount() }"
Message: maxItemsToDisplay is not defined
    at if (eval at createBindingsStringEvaluator (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2624), <anonymous>:3:55)
    at ko.computed.disposeWhenNodeIsRemoved (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:3989)
    at evaluateImmediate (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1737)
    at Object.ko.computed.ko.dependentObservable (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1946)
    at init (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:3988)
    at /pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2989
    at Object.ignore (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:1249)
    at /pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2988
    at Object.arrayForEach (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:151)
    at applyBindingsToNodeInternal (/pub/static/frontend/grand/grand1/en_US/knockoutjs/knockout.js:2974)

请帮忙

4

1 回答 1

0

您是否已经尝试过这样做:

  1. [删除文件夹] pub/static/frontend/[主题]
  2. [删除文件夹] var/cache
  3. [删除文件夹] var/view_preprocessed
  4. 运行命令:php bin/magento deploy:mode:set production
  5. 运行命令:php bin/magento setup:static-content:deploy
于 2017-08-31T14:00:10.833 回答