Failed To Load Resource 404

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • worldmiros
    Senior Member
    • Dec 2015
    • 120

    Failed To Load Resource 404

    I'm getting an error when I want to add an item to invoice itemlist. Server log states (hostname in replace for the actual hostname):
    Code:
     [2016-08-29 17:41:12] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/hostname.com/application/Espo/Core/Acl/Table.php","line":269} [] [2016-08-29 17:41:13] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/hostname.com/application/Espo/Core/Acl/Table.php","line":274} [] [2016-08-29 17:42:48] Espo.ERROR: API [GET]:/:controller/:id, Params:Array (     [controller] => Case     [id] => 576ae7d9bb1d91ce4 ) , InputData:  -  [] [] [2016-08-29 17:42:48] Espo.ERROR: Display Error: , Code: 404 URL: /api/v1/Case/576ae7d9bb1d91ce4 [] [] [2016-08-29 17:44:40] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/hostname.com/application/Espo/Core/Acl/Table.php","line":269} [] [2016-08-29 17:44:40] Espo.WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/var/www/hostname.com/application/Espo/Core/Acl/Table.php","line":274} [] [2016-08-29 17:45:14] Espo.ERROR: API [GET]:/:controller/:id, Params:Array (     [controller] => Case     [id] => 576ae7d9bb1d91ce4 ) , InputData:  -  [] [] [2016-08-29 17:45:14] Espo.ERROR: Display Error: , Code: 404 URL: /api/v1/Case/576ae7d9bb1d91ce4 [] []
    And on the browser, I'm getting:
    Code:
    Failed to load resource: the server responded with a status of 404 (Not Found)
    Last edited by worldmiros; 08-29-2016, 06:44 PM.
  • yuri
    Member
    • Mar 2014
    • 8511

    #2
    Is it just a logging issue or malfunction? Thanks
    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

    • worldmiros
      Senior Member
      • Dec 2015
      • 120

      #3
      A malfunction. This occurs when I'm trying to add a item to itemlist of the invoice. I wrote some custom code to get the matter of the account in the invoice, then I get the task or calls of the matter. They're task items that passes my condition (based on status) that compels user to chose only these items of the entity.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8511

        #4
        I can't reproduce. I add Item to Quote and save.
        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

        • worldmiros
          Senior Member
          • Dec 2015
          • 120

          #5
          I resolved my issue. This is was my fault. I created a condition that filters all the matters based on the parent account(accounts) in the invoice, then filter entity's items based on the parent account(matter). Issue was, for example, Task entity, the parent was an account, not a matter, and the directory was getting lost. My apologies, issued resolved.

          Comment

          Working...