Bagisto Forum

    Bagisto

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

    BadMethodCallException: Call to undefined method Webkul\Product\Models\Product::setSearchEngine()

    Bug Report
    2
    3
    230
    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.
    • K
      Kinjal last edited by

      I’m currently working with the Bagisto REST API (Webkul extension) and came across an issue where the ProductController is trying to call the setSearchEngine() method on the product repository instance :

      $this->getRepositoryInstance()->setSearchEngine(...);

      However, this throws a BadMethodCallException.

      I checked it in following URL:
      https://demo.bagisto.com/bagisto-api-demo-common/api/v1/products?sort=id

      It is throwing 500 error.

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @Kinjal

        Kindly let me know your Bagisto Version because we are not able to found this code in our latest versions of bagisto.

        Regards
        Team Bagisto

        1 Reply Last reply Reply Quote 0
        • K
          Kinjal last edited by

          Hello Rishabh,

          Thanks for your response.

          I have reinstalled the latest version of Bagisto along with the REST API package, and the issue is now resolved.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post