Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78642

Unexpected return type error in assignment when portfolios are enabled

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide
      1. Log in as admin
      2. Navigate to Advanced features in site administration
      3. Tick Enable portfolios and save changes
      4. Create a user
      5. Create a course
      6. Enrol user as student on course
      7. Create assignment on course
      8. Log out
      9. Log in as student
      10. Navigate to course assignment
      11. Make file submission
      12. Confirm submission is successful, and no errors are shown
      Show
      Log in as admin Navigate to Advanced features in site administration Tick Enable portfolios and save changes Create a user Create a course Enrol user as student on course Create assignment on course Log out Log in as student Navigate to course assignment Make file submission Confirm submission is successful, and no errors are shown

      Hi,

      when submitting a file in activity assignment or view a submission you get following error:

      mod_assign\output\renderer::get_portfolio_button(): Return value must be of type string, null returned

      Moodle 4.2.1+ (Build: 20230629)
      PHP 8.1.20, apache Apache/2.4.52 with fpm

            pholden Paul Holden
            baltaner Bertold Altaner
            Mihail Geshoski Mihail Geshoski
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.