Contacts - Document relationship is not working

Hi,

Version 7.11.3
Sugar Version 6.5.25 (Build 344)

When I create a new Document from the subpanel of Contacts, it is not showing in the subpanel but I can see it in the Document module and vice-versa.

There is no error in the error log.

Thanks and Kindest Regards,

Update: Same thing happens when I select, instead of creating.

I just tried this in my 7.11.3 and it worked well.

Check if you have any customizations in custom/modules/Contacts or custom/modules/documents that might be breaking this.

Also check permissions in upload directory;

and any errors in the javascript console on the browser.

Thanks for your reply.

Yes, when I select a document, this is the error in the browser console.

POST http://site.com/index.php 500 (Internal Server Error).

When I create a document, this is the error I’m getting in the browser console.

VM2660:49 Uncaught TypeError: Cannot read property 'value' of null
    at Object.isFileExtensionValid (eval at <anonymous> (sugar_grp1.js?v=EyvpE7t46fEZHmDo70ajtQ:438), <anonymous>:49:126)
    at HTMLInputElement.checkFileExtension (eval at <anonymous> (sugar_grp1.js?v=EyvpE7t46fEZHmDo70ajtQ:438), <anonymous>:51:167)
    at HTMLInputElement.n (sugar_grp1_yui.js?v=EyvpE7t46fEZHmDo70ajtQ:79)

Thanks

Ok, so what is the “invalid extension” of the file?

If you try with a common extension like TXT, does it upload correctly?

No, any file is not working.

I don’t know then, can you try debugging that Javascript to see why it’s null?