Can't create a new event

Hi,

It’s really strange. The system has been working perfectly for a while now, but for some reason, I now can’t create new events.

When I do, it doesn’t get saved.

You can try here: shul.co.uk/diary/calendar.php

Any help as to why would be appreciated!

You have a custom onEventSave handler

scheduler.attachEvent(“onEventSave”, function(id, data, is_new_event) {

which must ends with return true, currently it doesn’t return anything by default.

Based on my code, it will always either return true or false.
That isn’t the problem. I added in ‘return false’ at the end if that helps.

It’s getting past that, but then not saving the event.
I’m getting the following error in the console:

I added in ‘return false’ at the end if that helps.

When this handler returns false or returns nothing - it blocks the data saving.
It must return true to allow saving.

I just changed it, but what I was trying to say was that that wasn’t the problem.
If I return false, it doesn’t remove the lightbox, whereas if I return true, it does remove the lightbox.
That works as it should.

The problem is in the cases where it DOES return true, and the event is new.
I get the following error:

Failed to load resource: the server responded with a status of 403 (Forbidden) http://www.shul.co.uk/diary/data/events_multiselect_options.php?editing=true

You can see it here: shul.co.uk/diary/calendar.php

The problem is AFTER the onEventSave function is run.

I’m not sure if this is related, but the following function also isn’t working any more:

dp.setUpdated(eventID, true, "updated");

I get the following error: Cannot call method ‘setUpdated’ of undefined

Could there be something wrong with the setting up of of ‘dp’ object?
It’s really strange, as I haven’t edited the ‘dp’ object recently, yet loads of stuff has just randomly stopped working.

Any help with this issue would be greatly appreciated!

Ignore the post about the ‘dp’ object, I’ve fixed that.
I can’t work out what’s wrong with the creating new event problem though.

Turns out the same thing happens when editing an event as well.

It looks like it’s just the general event saving process.

Don’t worry.
I’ve fixed it now.

Turns out it was a server problem.
My web hosting company had just added on a new security system that caused certain parts of the scheduler not to work.

I don’t see the problem while testing from my side ( maybe already was fixed )
After pressing save button server will call server side script to save data, and if return 403 error - there is something wrong with server side code. ( invalid path, or custom code in connector which blocks operation )

Ye, I just said in the above post.
It was a server problem, which they’ve now fixed for me.