Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-15281

Error on install with sound languages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: Sound Languages
    • Labels:
      None
    • Bug Tracker:
      Developer Testing
    • Distro Version:
      14.0.1.1
    • Distro:
      Self Install Debian

      Description

      Hello!
      After install and login as admin i see window "Please Select the default locales of the PBX". I can not save this page((( In console i see error:
      config.php:625 Uncaught TypeError: $.cookie is not a function

      In code it is:

      $("#submitOobe").click(function(e) {
      if($("#oobeGuiLang").val() === "") {
      return warnInvalid($("#oobeGuiLang"),_("Please select a valid language"));
      }
      if($("#oobeTimezone").val() === "") {
      return warnInvalid($("#oobeTimezone"),_("Please select a valid timezone"));
      }
      if($("#oobeSoundLang").val() === "") {
      return warnInvalid($("#oobeSoundLang"),_("Please select a valid language"));
      }
      $.cookie("lang",$("#oobeGuiLang").val());
      $(this).prop("disabled",true);
      $(this).text(_("Processing. This may take some time. Please be patient"));
      e.preventDefault();
      e.stopPropagation();
      $("#localeForm").submit();
      });

      While i am fixed is manually in file /var/www/html/admin/modules/soundlang/views/oobe.php :
      add 
      and replace from "$.cookie("lang",$("#oobeGuiLang").val());" to "Cookies.set("lang",$("#oobeGuiLang").val());"

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tm1000 Andrew Nagy
                Reporter:
                savenko savenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.