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

Bagisto

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

Error on return value in ModelProxy::targetClass()

Installing Bagisto
2
4
1.7k
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.
  • Y
    Yorg last edited by 6 Sept 2021, 11:22

    Hi everyone,

    I'm trying to setup Bagisto into an existing Laravel application, but I'm currently stuck on this error:
    Return value of Konekt\Concord\Proxies\ModelProxy::targetClass() must be of the type string, null returned

    The error originates in packages/Webkul/Category/src/Providers/CategoryServiceProvider.php in the following line:
    CategoryProxy::observe(CategoryObserver::class);

    It's a fresh installation, but I'm trying to implement it in an existing Laravel application (we're trying to get Bagisto working with our in-house CMS.). So far I've added the composer packages and added everything in config/app.php under the providers key.

    I searched but I couldn't find a solution to this. Can you guys help me out here?

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 6 Sept 2021, 12:03

      Hi @Yorg,

      can you share the full implementation step by step so that I can investigate it further?

      1 Reply Last reply Reply Quote 0
      • Y
        Yorg last edited by Yorg 6 Sept 2021, 14:15 6 Sept 2021, 13:54

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 7 Sept 2021, 04:43

          Hi,

          What about this file?

          https://github.com/bagisto/bagisto/blob/797916ccf4ed896d9a9ce076941df3daeda330f2/config/concord.php#L3

          Have you added this?

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