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

community finder block, Undefined property: stdClass::$backupsize, blocks/community/renderer.php on line 263

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.3.3
    • Component/s: Local: Hub
    • Labels:

      Description

      this notice seen during browsing search results from community finder block.

      Notice: Undefined property: stdClass::$backupsize in /var/www/moodle/blocks/community/renderer.php on line 263

      This is due to the hub web service function get_courses that sometimes does not return a backup size for the downloadable course:
      a) it should always return a backup size
      b) if the backup size is equal to zero so we may not want to return the downloadable course at all
      c) I suspect that it currently fail for backupsize < 1Mb. I checked, one of the course not receiving backupsize has a size of 0.15Mb.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              nebgor Aparup Banerjee
              Peer reviewer:
              Helen Foster
              Participants:
              Component watchers:
              Jérôme Mouneyrac
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Nov/12