• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Call to a member function items() on null

Knowledge Base
2
4
1.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    anjugopi last edited by 4 Oct 2021, 07:28

    Hi Team,

    I have an issue while move a product from cart to wishlist. "Call to a member function items() on null".

    "message": "Call to a member function items() on null",
    "exception": "Error",
    "file": "../../packages/Webkul/Checkout/src/Cart.php",
    "line": 958,

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 4 Oct 2021, 09:39

      Hi @anjugopi,

      It looks like your cart doesn't have any items. How you are accessing it?

      1 Reply Last reply Reply Quote 0
      • A
        anjugopi last edited by 4 Oct 2021, 09:44

        Hi @devansh-webkul
        I am using "GET <host>/api/checkout/cart/move-to-wishlist/{cart_item_id}" this api.

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 5 Oct 2021, 05:31

          Okay, so you are using API. The first check are you able to see your cart items or not and also its for customers or guest.

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post