It seems that IĀ“ve become a āvictimā of a very mysterious bug, which has been around for quite some time:
The save button within the edit view of the Leads module is ā quite simply ā not working.
And the worst part is: there is no error in the console nor anything in the logsā¦
Apparently someone in 2015 had the same strange thing happening: Leads save button not working
It āwent awayā after a few weeks, but no cause was ever found.
Now, IĀ“ve already tried quite a fe things, including
quick repair
re-set the correct permissions
change the PHP version
update to 7.12.1
rebuild all and any available files
deactivate/activate AJAX components
check the logs and the console
tried multiple browsers (Safari, Chrome, Firefox), while disabling any content blockers, etc.
, but none of the aforementioned procedures led to a result. And the weirdest part is: it came without any specific warning/change. From one day to another the button simply stopped working, while it works perfectly fine in other modules (such as contacts).
Has anybody come across this issue (and potentially found a solution)?
In other words: IĀ“ve replaced āSUGAR.ajaxUI.submitForm(_form);return false;ā
with
āSUGAR.ajaxUI.submitForm(_form);return true;ā
So far this works like a charm, but obviously isnĀ“t a permanent solution, so maybe IĀ“ll come back with a better solution (as this just solves the symptoms, not the actual problem).
For others having a similar issue:
IĀ“ve found that some time ago cloudflareĀ“s āRocketLoaderā was interfering with the !window.__cfRLUnblockHandlers function, so I thought this might be the issue; however in my case, disabling/enabling cloudflare made no difference (I use Cloudflare Teams for access control to specific web-applications); though it might be different in your case, so itĀ“s worth trying, if youĀ“re having the same issue.