Moodle
  1. Moodle
  2. MDL-29802

Missing argument 2 for calendar_set_filters

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
      None
    • Environment:
      Using Moodle 2.0.2+ (Build: 20110323) and FIREFOX 3.5.3 / SAFARI Version 4.1.3 (4533.19.4) with 10.4.11 mac ppc with xampp install on localhost.
    • Database:
      MySQL
    • Workaround:
      Hide

      If using aardvark theme use post-it version and upload UPcoming Events block

      Show
      If using aardvark theme use post-it version and upload UPcoming Events block
    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      19311

      Description

      Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though

      There may be a tracker already but doing it again just in case.

      This bug info shows on page:

      Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

      Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

      ...spotted this in calendar/lib.php 1250:

      function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
      global $SESSION, $USER, $CFG, $DB;

      // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
      // the code to function incorrectly UNLESS we convert it to an integer. One case where
      // PHP's loose type system works against us.
      if(is_string($SESSION->cal_courses_shown)) {
      $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);

      **ADDITIONAL**

      My efforts to clear this made the display worse. Can delete individual events, and create new ones no problem. But cannot delete the recurring without duration series or can't re-edit series to a terminal duration. Am able to hide from own user but not other users. The screen grab shows the display not looking pretty...

      Even though it seems database related did overwrite calendar root directory with backed up folder from a moodle previous to the event creation current installation to see if anything changed but NG.

      Noticed missing info on the pre-delete page..

      This Event is part of a repeating Event series. You can delete this Event only, or all {$a} Events in the series at once.

      See display grab attached and info from firebugging the page elements that may or may not help

      Is there a hack to reset Upcoming Events or to delete all events or have I missed something in site admin?

      1. calendar bug event16.txt
        0.8 kB
        geoff robinson
      1. calendarbugPicture 5.png
        47 kB

        Activity

        geoff robinson created issue -
        geoff robinson made changes -
        Field Original Value New Value
        Priority Minor [ 4 ] Major [ 3 ]
        geoff robinson made changes -
        Description Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already posted on tracker but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);
        Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);
        geoff robinson made changes -
        Testing Instructions Post Upcoming Events recurring without duration view in aardvark theme
        Description Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);
        Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);



        ***ADDITIONAL***

        My efforts to clear this made the display worse. Can delete individual events, and create new ones no problem. But can delete the recurring without duration series or can't re-edit series to a terminal duration. Am able to hide from own user but not other users. The screen grab shows the display not looking pretty...

        Even though it seems database related did overwrite calendar root directory with backed up folder from a moodle previous to the event creation current installation to see if anything changed but NG.

        Noticed missing info on the pre-delete page..

        This Event is part of a repeating Event series. You can delete this Event only, or all {$a} Events in the series at once.

        See display grab attached and info from firebugging the page elements that may or may not help

        Is there a hack to reset Upcoming Events or to delete all events or have I missed something in site admin?
        Priority Major [ 3 ] Critical [ 2 ]
        Attachment calendar bug event16.txt [ 25657 ]
        Attachment calendarbugPicture 5.png [ 25658 ]
        geoff robinson made changes -
        Description Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);



        ***ADDITIONAL***

        My efforts to clear this made the display worse. Can delete individual events, and create new ones no problem. But can delete the recurring without duration series or can't re-edit series to a terminal duration. Am able to hide from own user but not other users. The screen grab shows the display not looking pretty...

        Even though it seems database related did overwrite calendar root directory with backed up folder from a moodle previous to the event creation current installation to see if anything changed but NG.

        Noticed missing info on the pre-delete page..

        This Event is part of a repeating Event series. You can delete this Event only, or all {$a} Events in the series at once.

        See display grab attached and info from firebugging the page elements that may or may not help

        Is there a hack to reset Upcoming Events or to delete all events or have I missed something in site admin?
        Set Site wide repeated without duration weekly upcoming events as admin within Magazine theme (main). Upcoming Events fine in Magazine theme but this bug in Aardvark. Can't clear the series of events now even when editing to a terminal duration. Can clear each event individually though


        There may be a tracker already but doing it again just in case.

        This bug info shows on page:

        Warning: Missing argument 2 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        Warning: Missing argument 3 for calendar_set_filters(), called in /Applications/XAMPP/xamppfiles/htdocs/moodle20/theme/aardvark/layout/upcoming.php on line 25 and defined in /Applications/XAMPP/xamppfiles/htdocs/moodle20/calendar/lib.php on line 1250

        ...spotted this in calendar/lib.php 1250:

        function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NULL, $groupeventsfrom = NULL, $ignorefilters = false)) {
            global $SESSION, $USER, $CFG, $DB;

            // Insidious bug-wannabe: setting $SESSION->cal_courses_shown to $course->id would cause
            // the code to function incorrectly UNLESS we convert it to an integer. One case where
            // PHP's loose type system works against us.
            if(is_string($SESSION->cal_courses_shown)) {
                $SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);



        ***ADDITIONAL***

        My efforts to clear this made the display worse. Can delete individual events, and create new ones no problem. But cannot delete the recurring without duration series or can't re-edit series to a terminal duration. Am able to hide from own user but not other users. The screen grab shows the display not looking pretty...

        Even though it seems database related did overwrite calendar root directory with backed up folder from a moodle previous to the event creation current installation to see if anything changed but NG.

        Noticed missing info on the pre-delete page..

        This Event is part of a repeating Event series. You can delete this Event only, or all {$a} Events in the series at once.

        See display grab attached and info from firebugging the page elements that may or may not help

        Is there a hack to reset Upcoming Events or to delete all events or have I missed something in site admin?
        geoff robinson made changes -
        Environment Using Moodle 2.0.2+ (Build: 20110323) and FIREFOX 3.5.3 / SAFARI Version 4.1.3 (4533.19.4) with 10.4.11 mac ppc with xampp install on localhost. Using Moodle 2.1.2+ (Build: 20110323) and FIREFOX 3.5.3 / SAFARI Version 4.1.3 (4533.19.4) with 10.4.11 mac ppc with xampp install on localhost.
        geoff robinson made changes -
        Environment Using Moodle 2.1.2+ (Build: 20110323) and FIREFOX 3.5.3 / SAFARI Version 4.1.3 (4533.19.4) with 10.4.11 mac ppc with xampp install on localhost. Using Moodle 2.0.2+ (Build: 20110323) and FIREFOX 3.5.3 / SAFARI Version 4.1.3 (4533.19.4) with 10.4.11 mac ppc with xampp install on localhost.
        Hide
        Michael de Raadt added a comment -

        Thanks for reporting this issue.

        We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported.

        If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

        Michael d.

        TW9vZGxlDQo=

        Show
        Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year. It was reported as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.5 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d. TW9vZGxlDQo=
        Hide
        Michael de Raadt added a comment -

        I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        This is being done as part of a bulk annual clean-up of issues.

        If you still believe this is an issue in supported versions, please create a new issue.

        Show
        Michael de Raadt added a comment - I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported. This is being done as part of a bulk annual clean-up of issues. If you still believe this is an issue in supported versions, please create a new issue.
        Michael de Raadt made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee moodle.com [ moodle.com ]
        Resolution Won't Fix [ 2 ]

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: