Announcement

Collapse
No announcement yet.

Error 500: Bad 'foreign' value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Do you have any manual customizations? Could you attach your custom entityDefs file for Case entity?

    Comment


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

      Comment


      • #4
        Try to fix your custom relation "audio". Try to specify a "foreign" parameter.

        Comment


        • #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


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

            Comment

            Working...
            X