Hi there,
dockerized php 7.2.1 , suitecrm 7.8.10 running in apache, behind an nginx reverse proxy
I’m serving it via https://1.2.3.4/crm
host_name and site_url are correctly filled in config.php :
'host_name' => '1.2.3.4',
'site_url' => 'https://1.2.3.4/crm',
Nginx conf concerning suitecrm:
location /crm {
proxy_pass http://suitecrm/;
# Rewrite HTTPS requests from WAN to HTTP requests on LAN
proxy_redirect http:// https://;
sendfile off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
#this is the maximum upload size
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
Now i have this very weird problem, when for example accessing the Accounts , if I go the the Tickets subpanels and click the small next page button in the top right corner, I just get the loading pictogram and nothing happens.
Looking at the Firefox Debug I can see that the request is missing the “crm” subfolder. Looked at the page’s source code and saw that this button got some inline javascript with the wrong url (missing the preceding /crm/).
<button type="button" name="listViewNextButton" class="button" title="Suivant" onclick="javascript:showSubPanel('cases','/index.php?sugar_body_only=1&module=Accounts&subpanel=cases&action=SubPanelViewer&inline=1&record=191bd856-fcfe-9d7a-e96c-5784db9a4f70&ajaxSubpanel=true&_=1516282101799& ...
I suppose this inline JS is generated somewhere but couldn’t find my way to it. Why the /crm base root isn’t added to this path ? Is this a bug or did I do something wrong ?