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

Failure on redeclaration of struct class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 2.2.1
    • Web Services
    • Any
    • MOODLE_22_STABLE
    • Hide

      1) Create web service
      2) Assign an administrator as an authenticated user
      3) Give that administrator a token
      4) Try to use the web service - I used the SOAP protocol

      Show
      1) Create web service 2) Assign an administrator as an authenticated user 3) Give that administrator a token 4) Try to use the web service - I used the SOAP protocol

      Our site has several web services and one of them had an administrator being the authenticated user due to the capabilities required. The service was uses token authenication. Recently, the service broke with upgrading Moodle code (can't saw specifically which version as we the issue just presented itself, but we are using Moodle 2.2.1 now).

      Debugging a development instance, I was able to reproduce the bug and found that the compiler was failing on the following error:

      Cannot redeclare class webservices_struct_class_000002

            jerome Jérôme Mouneyrac
            nickkoeppen Nicholas Koeppen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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