Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3728

AJAX marking block After Installation and activation in a course blank course page

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.2, 2.3
    • Fix Version/s: None
    • Component/s: Block: AJAX Marking
    • Labels:
      None
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE

      Description

      I installed the version 2.2.0b6 (2012061203). In the courses I activatet the block. There will be a blank page (nothing is visible) . All other courses are visible. If I deactivate the block in the admin site, the course is visible.

        Gliffy Diagrams

          Activity

          Hide
          mattgibson Matt Gibson added a comment -

          Hi Juerg

          Thanks for the report. Can you try turning debugging on to DEVELOPER level and setting it to display errors, then paste any error message you get as a comment here?

          Debugging settings are outlined here: http://docs.moodle.org/22/en/Debugging

          Show
          mattgibson Matt Gibson added a comment - Hi Juerg Thanks for the report. Can you try turning debugging on to DEVELOPER level and setting it to display errors, then paste any error message you get as a comment here? Debugging settings are outlined here: http://docs.moodle.org/22/en/Debugging
          Hide
          juerg.hoerner Juerg Hoerner added a comment -

          Hi Matt

          This is the message:

          Fatal error: Class 'block_ajax_marking_module_base' not found in /home/www/web177/html/mku2/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php on line 39

          Show
          juerg.hoerner Juerg Hoerner added a comment - Hi Matt This is the message: Fatal error: Class 'block_ajax_marking_module_base' not found in /home/www/web177/html/mku2/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php on line 39
          Hide
          juerg.hoerner Juerg Hoerner added a comment - - edited

          I changed chmod of forum quiz and workshop to 0 --> message

          What can I test for you to find a solution?

          Debug info:
          Error code: codingerror
          Stack trace:

          line 616 of /lib/dml/moodle_database.php: coding_exception thrown
          line 49 of /blocks/ajax_marking/lib.php: call to moodle_database->get_in_or_equal()
          line 136 of /blocks/ajax_marking/lib.php: call to block_ajax_marking_teacherrole_sql()
          line 77 of /blocks/ajax_marking/block_ajax_marking.php: call to block_ajax_marking_get_my_teacher_courses()
          line 281 of /blocks/moodleblock.class.php: call to block_ajax_marking->get_content()
          line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
          line 929 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 981 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 352 of /lib/blocklib.php: call to block_manager->ensure_content_created()
          line 9 of /theme/formal_white/layout/general.php: call to block_manager->region_has_content()
          line 765 of /lib/outputrenderers.php: call to include()
          line 712 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
          line 206 of /course/view.php: call to core_renderer->header()

          Show
          juerg.hoerner Juerg Hoerner added a comment - - edited I changed chmod of forum quiz and workshop to 0 --> message What can I test for you to find a solution? Debug info: Error code: codingerror Stack trace: line 616 of /lib/dml/moodle_database.php: coding_exception thrown line 49 of /blocks/ajax_marking/lib.php: call to moodle_database->get_in_or_equal() line 136 of /blocks/ajax_marking/lib.php: call to block_ajax_marking_teacherrole_sql() line 77 of /blocks/ajax_marking/block_ajax_marking.php: call to block_ajax_marking_get_my_teacher_courses() line 281 of /blocks/moodleblock.class.php: call to block_ajax_marking->get_content() line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents() line 929 of /lib/blocklib.php: call to block_base->get_content_for_output() line 981 of /lib/blocklib.php: call to block_manager->create_block_contents() line 352 of /lib/blocklib.php: call to block_manager->ensure_content_created() line 9 of /theme/formal_white/layout/general.php: call to block_manager->region_has_content() line 765 of /lib/outputrenderers.php: call to include() line 712 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() line 206 of /course/view.php: call to core_renderer->header()
          Hide
          vaughany Paul Vaughan added a comment -

          Just to add I'm seeing the same issue but with a different stack trace:

          Fatal error: Class 'block_ajax_marking_module_base' not found in /var/www/moodle/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php on line 39
          Call Stack

          1. Time Memory Function Location
            1 0.0007 172980 {main}

            ( ) ../view.php:0
            2 0.4043 12724184 core_renderer->header( ) ../view.php:215
            3 0.4191 13099992 core_renderer->render_page_layout( ) ../outputrenderers.php:712
            4 0.4194 13133568 include( '/var/www/sdcmoodle2/theme/sdctwo/layout/general.php' ) ../outputrenderers.php:765
            5 0.4591 13839076 block_manager->region_has_content( ) ../general.php:6
            6 0.4591 13839188 block_manager->ensure_content_created( ) ../blocklib.php:352
            7 0.4591 13839360 block_manager->create_block_contents( ) ../blocklib.php:981
            8 1.0652 23464812 block_base->get_content_for_output( ) ../blocklib.php:929
            9 1.0652 23465764 block_base->formatted_contents( ) ../moodleblock.class.php:232
            10 1.0652 23465820 block_ajax_marking->get_content( ) ../moodleblock.class.php:281
            11 1.0678 23658832 block_ajax_marking_get_my_teacher_courses( ) ../block_ajax_marking.php:77
            12 1.0678 23658940 block_ajax_marking_teacherrole_sql( ) ../lib.php:136
            13 1.0678 23658996 block_ajax_marking_get_module_classes( ) ../lib.php:44
            14 1.0688 23714084 require_once( '/var/www/moodle/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php' ) ../lib.php:243

          I'm running PHP 5.4.4 which might go some way to explaining this.

          Show
          vaughany Paul Vaughan added a comment - Just to add I'm seeing the same issue but with a different stack trace: Fatal error: Class 'block_ajax_marking_module_base' not found in /var/www/moodle/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php on line 39 Call Stack Time Memory Function Location 1 0.0007 172980 {main} ( ) ../view.php:0 2 0.4043 12724184 core_renderer->header( ) ../view.php:215 3 0.4191 13099992 core_renderer->render_page_layout( ) ../outputrenderers.php:712 4 0.4194 13133568 include( '/var/www/sdcmoodle2/theme/sdctwo/layout/general.php' ) ../outputrenderers.php:765 5 0.4591 13839076 block_manager->region_has_content( ) ../general.php:6 6 0.4591 13839188 block_manager->ensure_content_created( ) ../blocklib.php:352 7 0.4591 13839360 block_manager->create_block_contents( ) ../blocklib.php:981 8 1.0652 23464812 block_base->get_content_for_output( ) ../blocklib.php:929 9 1.0652 23465764 block_base->formatted_contents( ) ../moodleblock.class.php:232 10 1.0652 23465820 block_ajax_marking->get_content( ) ../moodleblock.class.php:281 11 1.0678 23658832 block_ajax_marking_get_my_teacher_courses( ) ../block_ajax_marking.php:77 12 1.0678 23658940 block_ajax_marking_teacherrole_sql( ) ../lib.php:136 13 1.0678 23658996 block_ajax_marking_get_module_classes( ) ../lib.php:44 14 1.0688 23714084 require_once( '/var/www/moodle/blocks/ajax_marking/modules/forum/block_ajax_marking_forum.class.php' ) ../lib.php:243 I'm running PHP 5.4.4 which might go some way to explaining this.
          Hide
          mattgibson Matt Gibson added a comment -

          Gah! These tracker emails have stopped arriving again. OK, I can see the issue here now and it's an easy fix. Am I right in thinking you guys have some of the other standard modules disabled?

          Show
          mattgibson Matt Gibson added a comment - Gah! These tracker emails have stopped arriving again. OK, I can see the issue here now and it's an easy fix. Am I right in thinking you guys have some of the other standard modules disabled?
          Hide
          juerg.hoerner Juerg Hoerner added a comment -

          What you mean with standard modules? I have made a new installation and did not disable any module.

          Show
          juerg.hoerner Juerg Hoerner added a comment - What you mean with standard modules? I have made a new installation and did not disable any module.
          Hide
          mattgibson Matt Gibson added a comment -

          I've fixed these errors by adding the missing file includes in the latest release, which I just uploaded. Still unsure why the same code runs for me, but not for you guys, but it ought to work now. Please let me know if not.

          Show
          mattgibson Matt Gibson added a comment - I've fixed these errors by adding the missing file includes in the latest release, which I just uploaded. Still unsure why the same code runs for me, but not for you guys, but it ought to work now. Please let me know if not.
          Hide
          juerg.hoerner Juerg Hoerner added a comment -

          Testing on moodle 2.3.1
          Front page not visible: Fatal error: Class 'mod_assignment_grading_form' not found in /var/www/www.moodle.alte-kanti-aarau.ch/maksa2/blocks/ajax_marking/modules/assignment/block_ajax_marking_assignment_form.class.php on line 37

          Testing 2.2.1 it works

          Show
          juerg.hoerner Juerg Hoerner added a comment - Testing on moodle 2.3.1 Front page not visible: Fatal error: Class 'mod_assignment_grading_form' not found in /var/www/www.moodle.alte-kanti-aarau.ch/maksa2/blocks/ajax_marking/modules/assignment/block_ajax_marking_assignment_form.class.php on line 37 Testing 2.2.1 it works
          Hide
          bbear31oz Steven Evans added a comment -

          Hey Matt, thanks for this great block... I had the same result when upgrading from 2.2 to 2.3 - Marking Block works brilliantly in 2.2 but in 2.3 the Front Page displays blank - and the debugging info repeats the Fatal Error message that Juerg reported. Hope you are able to get this to run in 2.3.1 we love your block, and it might prevent us from upgrading if we can't use it.
          Cheers

          Show
          bbear31oz Steven Evans added a comment - Hey Matt, thanks for this great block... I had the same result when upgrading from 2.2 to 2.3 - Marking Block works brilliantly in 2.2 but in 2.3 the Front Page displays blank - and the debugging info repeats the Fatal Error message that Juerg reported. Hope you are able to get this to run in 2.3.1 we love your block, and it might prevent us from upgrading if we can't use it. Cheers
          Hide
          mattgibson Matt Gibson added a comment -

          Hi guys.

          2.3 has thrown up some strange SQL bugs, so I'm having to reorganise the code to get automated tests running in order to make sure everything works smoothly. This is 75% done and a 2.3 version is on the way although still a week or so to go.

          I'm going to close this bug now as it works on 2.2. If other bugs emerge when the 2.3 code is released please open new issues for them.

          @Steven Glad you like it I'm working as fast as I can, so you shouldn't have to wait too long to upgrade.

          Show
          mattgibson Matt Gibson added a comment - Hi guys. 2.3 has thrown up some strange SQL bugs, so I'm having to reorganise the code to get automated tests running in order to make sure everything works smoothly. This is 75% done and a 2.3 version is on the way although still a week or so to go. I'm going to close this bug now as it works on 2.2. If other bugs emerge when the 2.3 code is released please open new issues for them. @Steven Glad you like it I'm working as fast as I can, so you shouldn't have to wait too long to upgrade.
          Hide
          mattgibson Matt Gibson added a comment -

          Version 2.3.1 of the block is now working for me and available to download, so please all have a look and see if it resolves these issues.

          Show
          mattgibson Matt Gibson added a comment - Version 2.3.1 of the block is now working for me and available to download, so please all have a look and see if it resolves these issues.

            People

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

              Dates

              • Created:
                Updated:

                Development