Error 500: Bad 'foreign' value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmanovRu
    Junior Member
    • Jun 2019
    • 11

    Error 500: Bad 'foreign' value

    When editing case via a minimized form, an Error 500: Bad 'foreign' value comes up when saving. There is no such error when editing via the extended form and saving.
    Log:
    [2020-12-17 22:37:53] Espo.ERROR: (0) Bad 'foreign' value.; PUT /Case/5fdb5aab7680fbbae; line: 385, file: /var/www/html/espocrm/application/Espo/ORM/Repository/RDBRepository.php [] []

    EspoCRM - Version 6.0.8
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    Do you have any manual customizations? Could you attach your custom entityDefs file for Case entity?
    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

    • AmanovRu
      Junior Member
      • Jun 2019
      • 11

      #3
      I hope I understood correctly and attached the right file
      Attached Files

      Comment

      • yuri
        Member
        • Mar 2014
        • 8453

        #4
        Try to fix your custom relation "audio". Try to specify a "foreign" parameter.
        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

        • AmanovRu
          Junior Member
          • Jun 2019
          • 11

          #5
          I deleted the audio object completely, the error in the reaped form remains. At the same time, going directly to the extended form, the error is not observed.
          New errors in the logs:


          [2020-12-21 11:26:01] Espo.WARNING: E_WARNING: rename(data/tmp/tmpmBIMjX,data/cache/application/cronLastRunTime.php): Permission denied {"code":2,"message":"rename(data/tmp/tmpmBIMjX,data/cache/application/cronLastRunTime.php): Permissi$
          [2020-12-21 11:26:01] Espo.WARNING: E_WARNING: file_put_contents(data/cache/application/cronLastRunTime.php): failed to open stream: Permission denied {"code":2,"message":"file_put_contents(data/cache/application/cronLastRunTime.php): f$
          [2020-12-21 11:26:02] Espo.WARNING: E_WARNING: rename(data/tmp/tmpfD8GpU,data/cache/application/webhooks.php): Permission denied {"code":2,"message":"rename(data/tmp/tmpfD8GpU,data/cache/application/webhooks.php): Permission denied","fi$
          [2020-12-21 11:26:02] Espo.WARNING: E_WARNING: file_put_contents(data/cache/application/webhooks.php): failed to open stream: Permission denied {"code":2,"message":"file_put_contents(data/cache/application/webhooks.php): failed to open $
          [2020-12-21 11:26:02] Espo.ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Could not store 'webhooks'." at /var/www/html/espocrm/application/Espo/Core/Utils/DataCache.php line 101 {"exception":"[object] (Espo\\Core\\Exceptions\\E$
          [2020-12-21 11:26:14] Espo.ERROR: (0) Bad 'foreign' value.; PUT /Case/5fe082f82199c5a29; line: 385, file: /var/www/html/espocrm/application/Espo/ORM/Repository/RDBRepository.php [] []


          Comment

          • item
            Active Community Member
            • Mar 2017
            • 1476

            #6
            Hello,
            you have as see log : Permission denied
            see : https://docs.espocrm.com/administrat...configuration/
            at permission.. ask to your provider.

            If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

            Comment

            Working...