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

Loginas and logout show error if the users does not have the same language options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Trivial Trivial
    • None
    • 2.2
    • General
    • Any
    • MOODLE_22_STABLE
    • Hide

      Use on your profile English (for example)
      Install Catalan (For example)
      Create a user with lang = Catalan
      Login through admin as that user

      Use English as default platform language (for example)
      Install Catalan (For example)
      Create a user with lang = Catalan
      Login and then logout that user

      Show
      Use on your profile English (for example) Install Catalan (For example) Create a user with lang = Catalan Login through admin as that user Use English as default platform language (for example) Install Catalan (For example) Create a user with lang = Catalan Login and then logout that user

      If you try to login as another user and this user uses a language diferent than yours as can be English and Catalan. a message is shown beacause string_for_js detects $string['cancel'] differs between before and after of logging as.

      Coding error detected, it must be fixed by a programmer: Attempt to re-define already required string 'cancel' from lang file 'moodle'. Did you already ask for it with a different $a? Cancel !== Cancel- la
      Stack trace:

      line 837 of /lib/outputrequirementslib.php: coding_exception thrown
      line 299 of /lib/outputrequirementslib.php: call to page_requirements_manager->string_for_js()
      line 1076 of /lib/outputrequirementslib.php: call to page_requirements_manager->init_requirements_data()
      line 339 of /lib/outputrenderers.php: call to page_requirements_manager->get_head_code()
      line 34 of /theme/atenea2012/layout/default.php: call to core_renderer->standard_head_html()
      line 685 of /lib/outputrenderers.php: call to include()
      line 637 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1353 of /lib/setuplib.php: call to call_user_func_array()
      line 2225 of /lib/weblib.php: call to bootstrap_renderer->__call()
      line 2225 of /lib/weblib.php: call to bootstrap_renderer->header()
      line 75 of /course/loginas.php: call to notice()

            skodak Petr Skoda
            pferre22 Pau Ferrer
            Votes:
            2 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.