Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leads conversion window does not open when clicking convert Lead
#1
Please help me to solve this problem
If i click Convert Lead from the local network, there is no problem, only this problem when using an external network
When using DevTools in chrome (Ctrl + Shift + I), I see the following error message:

Failed to load resource: net::ERR_EMPTY_RESPONSE
send @ csrf-magic.js:52
send @ jquery.js:4
ajax @ jquery.js:4
callConvertLeadDiv @ Leads.js:235
(anonymous) @ VM905:1

file csrf-magic.js error code here:
return this.csrf_send(prepend + data);

Please help me
Thanks you
Reply
#2
first check the value of $site_URL in your config.inc.php, make sure it is set to the correct value as per the external network
Joe
TSolucio
Reply
#3
I think I configured it correctly
example:
- My system uses a firewall, I have configured the Reverse Proxy when I access port 80 and 443 from network external, then return to the crm local server (example: 192.168.3.20)
- configured dns domain: domain.com
Host-----Type------Value-------------TTL
crm------A---------"Ip firewall"-------3600
- File config.inc.php
$site_URL = 'http://crm.domain.com';
All normal access only convert leads is problematic
Reply
#4
try this change:

Code:
diff --git a/modules/Leads/Leads.js b/modules/Leads/Leads.js
index 1afea8a66..d6fd84f94 100644
--- a/modules/Leads/Leads.js
+++ b/modules/Leads/Leads.js
@@ -234,7 +234,7 @@ function LeadssetValueFromCapture(recordid, value, target_fieldname) {
function callConvertLeadDiv(id) {
       jQuery.ajax({
               method:'POST',
-               url:'index.php?module=Leads&action=LeadsAjax&file=ConvertLead&record='+id,
+               url:'index.php?module=Leads&action=LeadsAjax&file=ConvertLead&record='+id+'&'+csrfMagicName+'='+csrfMagicToken,
       }).done(function (response) {
               jQuery('#convertleaddiv').html(response);
               jQuery('#conv_leadcal').html();


if that doesn't work deactivate CSRF and try again by commenting this line:

https://github.com/tsolucio/corebos/blob...ex.php#L68
Joe
TSolucio
Reply
#5
The above changes are not working. Is there any other way?
Reply
#6
that is very strange, I wasn't expecting the first one to work, but deactivating completely CSRF by commenting the line should have worked... unless the error actually has nothing to do with the CSRF check.

in your first post you indicate where the error is but not the actual error message. Can you share that with us?
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)