Sorry, activity list was not loaded correctly.
Version: OroCRM 3.0 CE, selfhosted Browser: Chrome (OSX), Safari (OSX) Problem:
When I open a specific contact I see the flash message "Sorry, activity list was not loaded correctly." on the very top of the page. The console shows this error:
oro.min.js?version=692694dc:1296 jQuery.Deferred exception: Unexpected end of JSON input SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at e._createAddressBook (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1362:31071)
at e.initialize (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1362:30909)
at e.initialize (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1362:31847)
at e.t (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1300:15111)
at e [as constructor] (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1362:30859)
at new e (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1362:31779)
at a._initializeComponent (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1302:4346)
at a._onComponentLoaded (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1302:4003)
at u (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2189) Error: Exception in jQuery.Deferred
at Function.e.Deferred.getStackHook (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1297:16363)
at http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2699
at c (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:430)
at Object.fireWith (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1201)
at fire (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1237)
at c (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:430)
at Object.fireWith [as resolveWith] (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1201)
at Object.s.(anonymous function) [as resolve] (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:3157)
at http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1301:26869
at A (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1297:26676)
oro.min.js?version=692694dc:1296 jQuery.Deferred exception: Cannot read property '0' of undefined TypeError: Cannot read property '0' of undefined
at a._onRequireJsError (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1302:5528)
at u (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2189)
at h (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2504) Error: Exception in jQuery.Deferred
at Function.e.Deferred.getStackHook (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1297:16363)
at http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2699
at c (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:430)
at Object.fireWith (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1201)
at fire (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1237)
at c (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:430)
at Object.fireWith [as rejectWith] (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:1201)
at h (http://crm.arroba-it.de/js/oro.min.js?version=692694dc:1296:2621)
Debug: Error: Rendering timeout for view of element: "//div[@id="container"]"
at e.<anonymous> (oro.min.js?version=692694dc:1302)
Hi @Konafets, Please share the log file (var/logs/prod.log), if this is prod environment. If you are using dev environment, you also could check ajax tab in a developer toolbar for few last requests. Looks like it's returned some exception instead of json content.
Hi @anyt,
this is the repeating error in the log:
[2019-01-28 15:13:30] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "The request has both a trusted "FORWARDED" header and a trusted "X_FORWARDED_PORT" header, conflicting with each other. You should either configure your proxy to remove one of them, or configure your project to distrust the offending one." at /var/www/virtual/konafets/orocrm/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 71 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException(code: 0): The request has both a trusted \"FORWARDED\" header and a trusted \"X_FORWARDED_PORT\" header, conflicting with each other. You should either configure your proxy to remove one of them, or configure your project to distrust the offending one. at /var/www/virtual/konafets/orocrm/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:71, Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException(code: 0): The request has both a trusted \"FORWARDED\" header and a trusted \"X_FORWARDED_PORT\" header, conflicting with each other. You should either configure your proxy to remove one of them, or configure your project to distrust the offending one. at /var/www/virtual/konafets/orocrm/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php:2115)"} []
Where can I configure OroCrm or Symfony to distrust one header as mentioned in the error?
Hi @anyt,
I talked with my hoster. They say that the server setup is not responsible for the headers at all and suggested to configure it in the app.
A curl call shows this (I substituted my domain with example.com):
curl -I "http://crm.example.com/"
HTTP/1.1 302 Found
Date: Thu, 31 Jan 2019 10:40:03 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/7.2.13
Cache-Control: max-age=0, must-revalidate, no-cache, no-store, private
Expires: 0
Pragma: no-cache
Set-Cookie: CRMID=ju62ddc65ov3kk15sb3df02rtq; path=/; HttpOnly
Location: http://crm.example.com/user/login
Connection: close
Content-Type: text/html; charset=UTF-8
Do you have any ideas?