Bad server response

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JanBab
    Member
    • Mar 2020
    • 55

    Bad server response

    Hi,
    EspoCRM shows "Bad server response".
    Log ending with following errors:

    [2020-05-12 08:52:46] Espo.WARNING: E_WARNING: get_class() expects parameter 1 to be object, null given {"code":2,"message":"get_class() expects parameter 1 to be object, null given","file":"C:\\xampp\\htdocs\\espocrm\\applica tion\\Espo\\ORM\\Repositories\\RDB.php","line":70, "context":{"entityType":"AuthToken","entityManager ":"[object] (Espo\\Core\\ORM\\EntityManager: {})","entityFactory":"[object] (Espo\\ORM\\EntityFactory: {})"}} []
    [2020-05-12 08:52:46] Espo.ERROR: Uncaught Exception TypeError: "Argument 1 passed to Espo\ORM\DB\Mapper::select() must implement interface Espo\ORM\IEntity, null given, called in C:\xampp\htdocs\espocrm\application\Espo\ORM\Repos itories\RDB.php on line 209" at C:\xampp\htdocs\espocrm\application\Espo\ORM\DB\Ma pper.php line 114 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Espo\\ORM\\DB\\Mapper::select() must implement interface Espo\\ORM\\IEntity, null given, called in C:\\xampp\\htdocs\\espocrm\\application\\Espo\\ORM \\Repositories\\RDB.php on line 209 at C:\\xampp\\htdocs\\espocrm\\application\\Espo\\ORM \\DB\\Mapper.php:114)"} []

    Thanks
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    when exactly this error occurred? Try to logout and login again. Then try to reproduce the error again.

    Comment

    • JanBab
      Member
      • Mar 2020
      • 55

      #3
      It is not possible to login. EspoCRM shows this error on login page.
      The log is constantly growing. There are approximately 5 of these errors every minute.
      Last edited by JanBab; 05-12-2020, 09:14 AM.

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        Try to make rebuild via CLI
        Code:
        php rebuild.php

        Comment

        • JanBab
          Member
          • Mar 2020
          • 55

          #5
          Everythings works ....
          Here is how ...
          1. Rename directory "Resources" (espocrm\custom\Espo\Custom) to ...\Resources_OLD
          2. Remove directory "application" (espocrm\data\cache)
          3. Login to EspoCRM
          4. Run Clear cache and Rebuild
          5. Rename directory Resources_OLD back to Resources

          Comment

          Working...