Get Events in PHP

Here’s the event that gets skipped:

id	start_date	end_date	text	description	rec_type	event_length	event_pid
22	2015-02-19 00:00:00	2015-02-20 00:00:00	Paint the bathroom	downstairs, light blue color		0	0

Event that gets picked up properly:

id	start_date	end_date	text	description	rec_type	event_length	event_pid
23	2015-02-19 08:00:00	2015-02-19 09:00:00	another event	my description		0	0

Hi, we plan to release the updated helper on the next week.

Hopefully it will include the fix for this issue as well.

Thanks Stanislav. Is there a way to get notified of the new release?

Any news on the new version of the helper?

You can try to use
github.com/DHTMLX/scheduler-helper-php

It is not the final version yet, but it already must do the necessary tasks.

Hello, i tried to use schedulerhelper.php class but have some events modified and deleted not displayed correctly. need i to set timezone? here a modified version.
SchedulerHelper.php.zip (3.49 KB)

It seems you are using older version of PHP helper

where i can get the last version?

Just double-checked and it works for me

download/file.php?id=7120

If it somehow doesn’t work for you, send me PM with your email.

Stanislav, sorry for the late reply, but I just downloaded the scheduler helper files from gitub and now I’m getting a syntax error and can’t figure out the problem:

“Parse error: syntax error, unexpected ‘[’ in SchedulerHelperDate.php on line 49”

Hello,
probably you use an older version of PHP, the helper requires v5.4+.
Problematic line:
github.com/DHTMLX/scheduler-hel … te.php#L49
the syntax foo()[index] is only supported from 5.4
php.net/manual/en/migration54.new-features.php

You can create a fork and split that into two lines, so it will be valid with an older php, although there is no guarantee this is the only incompatible place

felix822, hello. What version of PHP do you have? You need PHP>=5.4.

That’s exactly what the problem was, thank you! My host had me running php 5.2 still.

Does the new scheduler helper only work with version 4.3?

I have 4.2 I believe and I now I get other errors in the php of fields not being available:

“Fatal error: Uncaught exception ‘Exception’ with message ‘Field ‘count’ not found.’”

Hi,
can you send us a sample of data (sql entries which we could add to our db and test) that causes the error? The recurring format should work the same way with all recent versions of the scheduler, so maybe there is something with the data you load

Sure, should I post it here or email you?

Please post it here, or you can send me a PM if don’t want to put them on a public forum

PM sent, thank you!

Thanks, received it. We’ll try to reproduce the error and give you an update in a couple of days

Hello,
please try the latest version from the master branch, the bug should be fixed
github.com/DHTMLX/scheduler-helper-php