BadMethodCallException: Call to undefined method Webkul\Product\Models\Product::setSearchEngine()
-
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=idIt is throwing 500 error.
-
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 -
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.