Announcement

Collapse
No announcement yet.

Failed To Load Resource 404

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

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

  • #2
    Is it just a logging issue or malfunction? Thanks

    Comment


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


      • #4
        I can't reproduce. I add Item to Quote and save.

        Comment


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