Class "Espo\Binding" not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Junior Member
    • Aug 2025
    • 14

    #1

    Class "Espo\Binding" not found

    when trying to run $ php bin/command

    i get this error


    PHP Fatal error: Uncaught Error: Class "Espo\Binding" not found in /home/jamie/dev/espoCRM/application/Espo/Core/Binding/EspoBindingLoader.php:50
    Stack trace:
    #0 /home/jamie/dev/espoCRM/application/Espo/Core/Container/ContainerBuilder.php(197): Espo\Core\Binding\EspoBindingLoader->load()
    #1 /home/jamie/dev/espoCRM/application/Espo/Core/Application.php(62): Espo\Core\Container\ContainerBuilder->build()
    #2 /home/jamie/dev/espoCRM/application/Espo/Core/Application.php(54): Espo\Core\Application->initContainer()
    #3 /home/jamie/dev/espoCRM/command.php(35): Espo\Core\Application->__construct()
    #4 /home/jamie/dev/espoCRM/bin/command(4): include('...')
    #5 {main}
    thrown in /home/jamie/dev/espoCRM/application/Espo/Core/Binding/EspoBindingLoader.php on line 50
    i have the code working on a local server though when trying to get it running on my development environment this is what i get

    i notice that the name space for the class is namespace Espo\Core\Binding not "Espo\Binding" though that doesn't explain why it works on server and not locally

    as these are core files i'd love you help getting this going

    thanks
    Jami e
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9238

    #2
    Likely, you haven't copied that Binding.php file. You have copied all folders, but there's also one file in the application/Espo/ directory.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • jamie
      Junior Member
      • Aug 2025
      • 14

      #3
      yeah thats what i though but i don't think so

      ls application/Espo/Core/Binding/
      Binder.php BindingContainer.php BindingLoader.php BindingProcessor.php EspoBindingLoader.php Key/
      BindingContainerBuilder.php BindingData.php Binding.php ContextualBinder.php Factory.php


      ls application/Espo/
      Binding.php Classes/ Controllers/ Core/ Custom/ Entities/ EntryPoints/ Hooks/ Modules/ ORM/ Repositories/ Resources/ Services/ Tools/


      Comment

      • jamie
        Junior Member
        • Aug 2025
        • 14

        #4
        arrrrg sorry man i was on the wrong dam git branch!!! ok that wroks now just gotta figure out how to do the db thing from localhost and with in docker

        Comment

        Working...