Yetiforcecrm: Major issues with Caldav

Created on 31 May 2017  ·  34Comments  ·  Source: YetiForceCompany/YetiForceCRM

Issue

I have enable the API in config/api.php, went I do a sync from

Actual Behavior

Created key for Caldav applied in outlook using caldav synchronizer.

Expected Behavior

In api/dav.php there is ICS file but only from outlook but they are not being populated inside of YT calendar?

How to trigger the error

  1. Sync calendar from outlook

Your Environment

  • YetiForce Version used: 3.4.0
  • Browser name and version: Chrome
  • Operating System and version: Windows Server 2012 R2
🤷‍♂️ MoreInfoRequired

All 34 comments

In version 4.0.0 several fixes have been added. Test the latest version

Thanks for getting back to me Marius but when I install the 4.0.0 the password I set up in the install wizard don't work when the application has installed any thoughts?

for eg I have installed on this domain but the login details that I set up via install wizard are not working?

http://crm.curo.recyclingmanagement.com

could you send me a detualt export of one that is work do that I can import user and test it if you don't mind??

Error I'm getting after installed locally

Error!!!
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'yt56.vtiger_tab' doesn't exist Failed to prepare SQL: SELECT * FROM vtiger_tab

could you send me a preinstall instance so I can test out on my side?

System requirements checked?
Before installation, turn on the logs and see what is wrong
check mysqlnd

System requirements all ok, how can I turn on the logs?

Install successful now I'm doing the CalDAV sync but only outlook to yeti not both ways also the ics are not going into yetiforce where have I gone wrong

Write how you solve the installation problem will help other users. Check that cron works properly and check logs

there has been no log file created, I had to install the instance on another server so must be a missing module.

Only thing that's in the logs is

[06-Jun-2017 11:03:07 Europe/London] PHP Notice:  Only variable references should be returned by reference in C:\xampp\htdocs\crm\vendor\yetiforce\Fields\Owner.php on line 186

[06-Jun-2017 11:03:08 Europe/London] PHP Notice:  Undefined offset: 113 in C:\xampp\htdocs\crm\cache\templates_c\basic\3192f56aee2cf598e27185dd3e44be3d93c34f8c_0.file.Reminders.tpl.php on line 49

But surely this has nothing to do with the CalDav?

This is my API.php file

$enabledServices = [
    'dav',
    'webservices',
    'webservice',
];
/* +***************   DAV   **************** */
$enableBrowser = true;
$enableCardDAV = true;
$enableCalDAV = true;
$enableWebDAV = true;

/* +*********   Webservice config  ********* */
$API_CONFIG = [
    'ENCRYPT_DATA_TRANSFER' => false,
    'AUTH_METHOD' => 'Basic',
    'PRIVATE_KEY' => 'config/private.key',
    'PUBLIC_KEY' => 'config/public.key',
];

any ideas?

@mariuszkrzaczkowski What do you think it could be ?

Make sure you have a properly configured server, because you should not see notice in the error logs
Take a screenshot of the configuration

What configuration sorry, Thank you for coming back to me @mariuszkrzaczkowski

See below.
system req

Could it be APCu I can get this installed if need?

show full details from server configuration. apcu is opcjonal

system req

This all ok? @mariuszkrzaczkowski

Why is it not working for me is it working on your demo can I try?

Corrects the errors that appear in the last screenshot you passed, the red lines is that it does not meet the requirement, these parameters are configured in a file called php.ini, find it in your system.

The less red lines you have, the less errors you'll find in CRM

The error I got CalDav Synchronizer this is using your demo?

CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '403' ('Forbidden'). Message:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /api/dav.php/calendars/demo/YFCalendar/
on this server.<br />
</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

   at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<EnsureSuccessStatusCode>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequest>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequestAndReadResponse>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at CalDavSynchronizer.DataAccess.CalDavDataAccess.<GetVersions>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at CalDavSynchronizer.DataAccess.CalDavDataAccess.<GetVersions>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CalDavSynchronizer.Implementation.CalDavRepository`1.<GetAllVersions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at GenSync.Synchronization.Synchronizer`7.<Synchronize>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.<Synchronize>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CalDavSynchronizer.Scheduling.SynchronizationProfileRunner.<RunAndRescheduleNoThrow>d__22.MoveNext()

Could this be the issues on my local Pc? Would I have to give outlook admin privilege

Also say's php 5.5 is recommended so I changed that to 5.5 from 5.6 now I'm getting 500 error?

Something really wrong?

Can anyone help me?
@mariuszkrzaczkowski

<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /api/dav.php/calendars/demo/YFCalendar/
on this server.<br />
</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

He writes that you do not have permissions problem on the side of apache or file permissions.
Ask the administrator to solve this problem.

What file's do I need to set the permissions on?

Bere in mind this is your demo I test it with?

You have a problem with the server configuration then it must check the administrator

could you let me what the problem is with my configuration? as I tested it with your demo and still didn't work in my CalDAV synchronizer?

@mariuszkrzaczkowski ?

Was this page helpful?
0 / 5 - 0 ratings