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

Call to undefined method VtResource::getNid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.1
    • None
    • RHEL 5.5
      Source code copyright indicates VoiceAuthoring apparently from Horizon Wimba
    • PostgreSQL
    • Hide

      Something with Reflection and hasmethod could avoid the FATAL error, at least...
      UNTESTED HAND-WRITTEN INCOMPLETE PATCH:
      @109.115 or something like that
      + $rc = new ReflectionClass(get_class($result));
      + if (! $rc->hasMethod('getNid'))

      { + //moodle error about voice recording failure here + $getnid = null; + }

      + else

      { - $getnid = $result ? $result->getNid() : null; + $getnid = $result ? $result->getNid() : null; + }
      Show
      Something with Reflection and hasmethod could avoid the FATAL error, at least... UNTESTED HAND-WRITTEN INCOMPLETE PATCH: @109.115 or something like that + $rc = new ReflectionClass(get_class($result)); + if (! $rc->hasMethod('getNid')) { + //moodle error about voice recording failure here + $getnid = null; + } + else { - $getnid = $result ? $result->getNid() : null; + $getnid = $result ? $result->getNid() : null; + }
    • MOODLE_21_STABLE

      PHP Fatal error: Call to undefined method VtResource::getNid() in /var/www/html/lms/learn/mod/voiceauthoring/voiceauthoring.php on line 115

      No idea what caused it, really. Will dig further with my team.

      But submitting the idea for a work-around, at least.

            aborrow Anthony Borrow
            richardlynch Richard Lynch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

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