Hello Espo Community!
Just this week I created a fresh LAMP (Ubuntu Server v20.04, Apache v2.4.41, MySQL v8.0.25, PHP v7.4.3) server to run a testing/prototyping EspoCRM instance on. This is in an effort to get my company off of the absolutely atrocious Zoho CRM that we are massively dissatisfied with.
I've just been adding fields and creating some relationships to mimic how our current CRM system looks and functions, no extensions or anything loaded up. I seem to have broken something in how the client interprets Relationships between data!!
Being a furniture manufacturer, we frequently work with company executives. It helps to know who a given Contact's assistant is, or who another given Contact reports directly to. So, this sounds like a One-to-One relationship right? All I need is a field on the Contact page that I can lookup another Contact with. I decided to try this with a One-to-One Right relationship. However, when I implemented this I went to a Contact record named Wig-Wom Willy and tried set another Contact named Tom Twinkie as Willy's Assistant to test it, and boom, the 500 errors starting flowing in. Inputting data into this new Assistant 1t1R field seems to have broken something where the client GUI constantly throws 500 errors now! All my screenshots attached with annotations...
I did some investigating, checking out the EspoCRM log and discovering a constant "Syntax error or access violation: 1066 Not unique table/alias: 'contact'" on the test Contact, Wig-Wom Willy. From the log I see this error seems to be thrown from Line 72 of the SqlExecutor.php file, all included in my attachments.
Any idea why this is occurring? I presume I probably used the One-to-One entity incorrectly, however the Admin Doc doesn't really extrapolate this too much, but maybe that is just me. Really appreciate anyone's help!
Thanks,
Josh
Just this week I created a fresh LAMP (Ubuntu Server v20.04, Apache v2.4.41, MySQL v8.0.25, PHP v7.4.3) server to run a testing/prototyping EspoCRM instance on. This is in an effort to get my company off of the absolutely atrocious Zoho CRM that we are massively dissatisfied with.
I've just been adding fields and creating some relationships to mimic how our current CRM system looks and functions, no extensions or anything loaded up. I seem to have broken something in how the client interprets Relationships between data!!
Being a furniture manufacturer, we frequently work with company executives. It helps to know who a given Contact's assistant is, or who another given Contact reports directly to. So, this sounds like a One-to-One relationship right? All I need is a field on the Contact page that I can lookup another Contact with. I decided to try this with a One-to-One Right relationship. However, when I implemented this I went to a Contact record named Wig-Wom Willy and tried set another Contact named Tom Twinkie as Willy's Assistant to test it, and boom, the 500 errors starting flowing in. Inputting data into this new Assistant 1t1R field seems to have broken something where the client GUI constantly throws 500 errors now! All my screenshots attached with annotations...
I did some investigating, checking out the EspoCRM log and discovering a constant "Syntax error or access violation: 1066 Not unique table/alias: 'contact'" on the test Contact, Wig-Wom Willy. From the log I see this error seems to be thrown from Line 72 of the SqlExecutor.php file, all included in my attachments.
Any idea why this is occurring? I presume I probably used the One-to-One entity incorrectly, however the Admin Doc doesn't really extrapolate this too much, but maybe that is just me. Really appreciate anyone's help!
Thanks,
Josh
Comment