Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-4842

Can't access to stock menu after creating products via api

    Details

    • Type: Bug
    • Status: To be reproduced
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.2.4
    • Fix Version/s: None
    • Component/s: Stock Management
    • Labels:
    • How to reproduce the issue ?:
      N/A
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      I created several products via WS api with an available stock.

      After this operation, Stock menu doesn't display any product. Table is empty.

      In database, i can't find any difference between api product and BO product in product and stock_available tables.

      In Chrome Console, i can see following errors :

      stock.bundle.js?1.7.0:1348 [Vue warn]: Error in render function: "TypeError: Cannot read property 'split' of null"
      
      found in
      
      ---> <ProductLine> at /Users/pBorowicz/repos/prestashop/admin-dev/themes/new-theme/js/app/pages/stock/components/overview/product-line.vue
      <PSTable> at /Users/pBorowicz/repos/prestashop/admin-dev/themes/new-theme/js/app/widgets/ps-table/ps-table.vue
      <ProductsTable> at /Users/pBorowicz/repos/prestashop/admin-dev/themes/new-theme/js/app/pages/stock/components/overview/products-table.vue
      <Index> at /Users/pBorowicz/repos/prestashop/admin-dev/themes/new-theme/js/app/pages/stock/components/overview/index.vue
      <App> at /Users/pBorowicz/repos/prestashop/admin-dev/themes/new-theme/js/app/pages/stock/components/app.vue
      <Root>
      warn @ stock.bundle.js?1.7.0:1348
      handleError @ stock.bundle.js?1.7.0:1431
      Vue._render @ stock.bundle.js?1.7.0:4999
      updateComponent @ stock.bundle.js?1.7.0:3407
      get @ stock.bundle.js?1.7.0:3750
      Watcher @ stock.bundle.js?1.7.0:3739
      mountComponent @ stock.bundle.js?1.7.0:3411
      Vue$3.$mount @ stock.bundle.js?1.7.0:8732
      Vue$3.$mount @ stock.bundle.js?1.7.0:10935
      init @ stock.bundle.js?1.7.0:4370
      createComponent @ stock.bundle.js?1.7.0:6016
      createElm @ stock.bundle.js?1.7.0:5959
      updateChildren @ stock.bundle.js?1.7.0:6239
      patchVnode @ stock.bundle.js?1.7.0:6314
      updateChildren @ stock.bundle.js?1.7.0:6218
      patchVnode @ stock.bundle.js?1.7.0:6314
      patch @ stock.bundle.js?1.7.0:6444
      Vue._update @ stock.bundle.js?1.7.0:3293
      updateComponent @ stock.bundle.js?1.7.0:3407
      get @ stock.bundle.js?1.7.0:3750
      run @ stock.bundle.js?1.7.0:3827
      flushSchedulerQueue @ stock.bundle.js?1.7.0:3593
      (anonymous) @ stock.bundle.js?1.7.0:1570
      nextTickHandler @ stock.bundle.js?1.7.0:1517
      Promise.then (async)
      timerFunc @ stock.bundle.js?1.7.0:1532
      queueNextTick @ stock.bundle.js?1.7.0:1580
      queueWatcher @ stock.bundle.js?1.7.0:3680
      update @ stock.bundle.js?1.7.0:3817
      notify @ stock.bundle.js?1.7.0:1647
      reactiveSetter @ stock.bundle.js?1.7.0:1869
      LOADING_STATE @ stock.bundle.js?1.7.0:42176
      wrappedMutationHandler @ stock.bundle.js?1.7.0:39352
      commitIterator @ stock.bundle.js?1.7.0:39076
      (anonymous) @ stock.bundle.js?1.7.0:39075
      _withCommit @ stock.bundle.js?1.7.0:39163
      commit @ stock.bundle.js?1.7.0:39074
      boundCommit @ stock.bundle.js?1.7.0:39030
      __WEBPACK_IMPORTED_MODULE_0_vue___default.a.http.get.then @ stock.bundle.js?1.7.0:41860
      Promise.then (async)
      p.then @ stock.bundle.js?1.7.0:34689
      getStock @ stock.bundle.js?1.7.0:41859
      wrappedActionHandler @ stock.bundle.js?1.7.0:39359
      dispatch @ stock.bundle.js?1.7.0:39102
      boundDispatch @ stock.bundle.js?1.7.0:39027
      fetch @ stock.bundle.js?1.7.0:42520
      boundFn @ stock.bundle.js?1.7.0:1051
      invoker @ stock.bundle.js?1.7.0:2683
      Vue.$emit @ stock.bundle.js?1.7.0:3169
      mounted @ stock.bundle.js?1.7.0:43612
      callHook @ stock.bundle.js?1.7.0:3534
      insert @ stock.bundle.js?1.7.0:4395
      invokeInsertHook @ stock.bundle.js?1.7.0:6338
      patch @ stock.bundle.js?1.7.0:6508
      Vue._update @ stock.bundle.js?1.7.0:3293
      updateComponent @ stock.bundle.js?1.7.0:3407
      get @ stock.bundle.js?1.7.0:3750
      run @ stock.bundle.js?1.7.0:3827
      flushSchedulerQueue @ stock.bundle.js?1.7.0:3593
      (anonymous) @ stock.bundle.js?1.7.0:1570
      nextTickHandler @ stock.bundle.js?1.7.0:1517
      Promise.then (async)
      timerFunc @ stock.bundle.js?1.7.0:1532
      queueNextTick @ stock.bundle.js?1.7.0:1580
      queueWatcher @ stock.bundle.js?1.7.0:3680
      update @ stock.bundle.js?1.7.0:3817
      notify @ stock.bundle.js?1.7.0:1647
      reactiveSetter @ stock.bundle.js?1.7.0:1869
      APP_IS_READY @ stock.bundle.js?1.7.0:42179
      wrappedMutationHandler @ stock.bundle.js?1.7.0:39352
      commitIterator @ stock.bundle.js?1.7.0:39076
      (anonymous) @ stock.bundle.js?1.7.0:39075
      _withCommit @ stock.bundle.js?1.7.0:39163
      commit @ stock.bundle.js?1.7.0:39074
      boundCommit @ stock.bundle.js?1.7.0:39030
      __WEBPACK_IMPORTED_MODULE_0_vue___default.a.http.get.then @ stock.bundle.js?1.7.0:41922
      Promise.then (async)
      p.then @ stock.bundle.js?1.7.0:34689
      getTranslations @ stock.bundle.js?1.7.0:41920
      wrappedActionHandler @ stock.bundle.js?1.7.0:39359
      dispatch @ stock.bundle.js?1.7.0:39102
      boundDispatch @ stock.bundle.js?1.7.0:39027
      beforeMount @ stock.bundle.js?1.7.0:41391
      callHook @ stock.bundle.js?1.7.0:3534
      mountComponent @ stock.bundle.js?1.7.0:3384
      Vue$3.$mount @ stock.bundle.js?1.7.0:8732
      Vue$3.$mount @ stock.bundle.js?1.7.0:10935
      Vue._init @ stock.bundle.js?1.7.0:5105
      Vue$3 @ stock.bundle.js?1.7.0:5190
      (anonymous) @ stock.bundle.js?1.7.0:41384
      __webpack_require__ @ stock.bundle.js?1.7.0:660
      fn @ stock.bundle.js?1.7.0:86
      (anonymous) @ stock.bundle.js?1.7.0:51949
      __webpack_require__ @ stock.bundle.js?1.7.0:660
      (anonymous) @ stock.bundle.js?1.7.0:709
      (anonymous) @ stock.bundle.js?1.7.0:712
      stock.bundle.js?1.7.0:1435 TypeError: Cannot read property 'split' of null
      at VueComponent.combinationName (stock.bundle.js?1.7.0:39612)
      at Watcher.get (stock.bundle.js?1.7.0:3750)
      at Watcher.evaluate (stock.bundle.js?1.7.0:3857)
      at VueComponent.computedGetter [as combinationName] (stock.bundle.js?1.7.0:4134)
      at Object.get (stock.bundle.js?1.7.0:2546)
      at Proxy.render (stock.bundle.js?1.7.0:51090)
      at VueComponent.Vue._render (stock.bundle.js?1.7.0:4997)
      at VueComponent.updateComponent (stock.bundle.js?1.7.0:3407)
      at Watcher.get (stock.bundle.js?1.7.0:3750)
      at new Watcher (stock.bundle.js?1.7.0:3739)
      

        Attachments

        1. Capture.PNG
          Capture.PNG
          95 kB
        2. CreateProduct.php
          1 kB
        3. rcf_prestashop.module
          12 kB

          Activity

            People

            • Assignee:
              pablo.borowicz Pablo Borowicz
              Reporter:
              eperrodon Eric Perrodon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: