I am seeing the same behavior on a different server with the current version of Moodle and the 5.x branches of PHP and MySQL.
Redhat Enterprise Linux 4
Moodle 1.7 Stable
Apache/2.0.52
PHP Version 5.2.0
MySQL 5.0.27-standard
Looking at my server error log, I see that a number of undefined variable errors were thrown by PHP.
PHP Notice: Undefined variable: teacherid in /mod/scheduler/view.php on line 359, referer: [my moodle address]/mod/scheduler/view.php?action=addsession&id=15
PHP Notice: Undefined variable: teacherid in /mod/scheduler/view.php on line 366, referer: [my moodle address]/mod/scheduler/view.php?action=addsession&id=15
PHP Notice: Undefined variable: teacherid in /mod/scheduler/view.php on line 368, referer: [my moodle address]/mod/scheduler/view.php?action=addsession&id=15
PHP Notice: Undefined variable: exclusive in /mod/scheduler/view.php on line 373, referer: [my moodle address]/mod/scheduler/view.php?action=addsession&id=15
PHP Notice: Undefined variable: hasslots in /mod/scheduler/view.php on line 374, referer: [my moodle address]/mod/scheduler/view.php?action=addsession&id=15
PHP Notice: Undefined variable: exclusive in /mod/scheduler/view.php on line 495, referer: [my moodle address]/mod/scheduler/view.php?action=newmoveslot&id=15
PHP Notice: Undefined variable: attended in /mod/scheduler/view.php on line 499, referer: [my moodle address]/mod/scheduler/view.php?action=newmoveslot&id=15
PHP Notice: Undefined variable: displayyear in /mod/scheduler/view.php on line 500, referer: [my moodle address]/mod/scheduler/view.php?action=newmoveslot&id=15
PHP Notice: Undefined variable: displaymonth in /mod/scheduler/view.php on line 500, referer: [my moodle address]/mod/scheduler/view.php?action=newmoveslot&id=15
PHP Notice: Undefined variable: displayday in /mod/scheduler/view.php on line 500, referer: [my moodle address]/mod/scheduler/view.php?action=newmoveslot&id=15
I haven't taken a look at the code yet to see what might be going wrong, but I will soon.
I'm running Moodle 1.7 with the current Scheduler (http://moodle.org/mod/data/view.php?d=13&rid=328) on Redhat Enterprise Linux 4 with PHP 4.3.9 and MySQL 4.1.20. I see the same error as was initially reported: if I add multiple slots using scheduler, no slots are created, but if I add a single slot, one is created.
I have all of Moodle's debuggers turned on, but it hasn't thrown any PHP errors.