There was an error rendering this math block. KaTeX parse error: Expected 'EOF', got '}' at position 9: site_URL}̲/index.php?modu…
@flipflop.Joe - URLs added to OAuth seem to be wrong. From where did you copy this?
It should be having view=Authenticate see the Redirect URI suggested.
NOTE: Please do not arrive to conclusion so fast on the issues. Staying focused to identifying the cause is more important.
When I try to add or change the Google account i get the "illegal request" error.
After commenting the lines in /includes/HTTP/Request.php mentioned above, i can successfully add/Change Google user. there is no issue on syncing data after the user is added successfully.
so it is only an issue to add/Change the Google user account.
@flipflop.Joe - I retried on other domain with fresh install and it worked as expected. Closing this issue. Please re-open with more details and relevant screenshot to help reproduce the issue.
@prasad This happens when the URL is not localhost. In that case, you will see a warning from Google about the app not being review by Google and ask you if you wish to continue.
If you say yes, then you are redirected back to the auth process. By now, the referred value is change to the google.com URL instead of the crm.
@cmaggi The error you mention happens between step 4 and 5 (after you filled in login information and before trying to access Google Account) if the app is not reviewed by google. 5CFC40F8-E2F0-40BE-B8BD-8C389C64E1D1
@cmaggi If module is not Google, view can not be Authenticate. With your Code it is ok not to be in install OR Google module. Code changes (not testes jet):
if ((stripos($_SERVER['HTTP_REFERER'],
site_URL) !== 0) && (
this->get('module') != 'Install') && ((
this->get('module') != 'Google') || (
this->get('view') != 'Authenticate')) {
throw new Exception('Illegal request');
}
Thank you. @flipflop.Joe's workaround connects Vtiger to Google but when I tested the calendar sync (Calendar - List View - Google Sync Log) it shows it created events in Google, but checking the Google calendar the events do not display.
Hi, looks like the solution doesn't work for me. With
if ((stripos($_SERVER['HTTP_REFERER'],
site_URL) !== 0) && ((
this->get('module') != 'Google' &&
this->get('view') == 'Authenticate') || (
this->get('module') != 'Install'))) {
throw new Exception('Illegal request');
}
i still get the exception.. with the code
/* if ((stripos($_SERVER['HTTP_REFERER'],
site_URL) !== 0) && (
this->get('module') != 'Install')) {
throw new Exception('Illegal request');
}*/
i don't get any error message, but it looks like nothing has been done. I can reopen the procedure and start again.
I have vtiger 7.1 but migrated from a 6.5 installation
Update: I managed to get the sync working. I realized that for whatever reason, my database did not had all required tables such as "vtiger_google_sync_settings", "vtiger_google_sync_fieldmapping","vtiger_google_sync", "vtiger_google_oauth2". By creating them manually without any content, i managed to get the sync set up.
So when you sync (using @flipflop.Joe's workaround)the calendar and contacts they are appearing in Google? That's what I can't understand. It syncs but does not post in Google.
Hi @flipflop.Joe , I'm tagging you because you seem to be the more knowledgeable on the issue. I hope youcan help me.
I was having the illegal request issue. I then applied the patch in commit b26a5a1b and I didn't get the illegal request error anymore. However, after that nothing happens. The following settings page refreshes, but then nothing happens:
Sorry, found the answer to my question. Just go to Contacts or Calendar list view and go to Extensions -> Google in the left panel. However I now have a different but related problem: #1084