QloApps Forums
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Qloapps v1.6.0.0: No language pack is available for your version (German language pack)

    General Discussion
    3
    7
    996
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      namaste7 last edited by

      Namaste,

      I would like to install the German language pack for qloapps v1.6.0.0 but I receive error:

      No language pack is available for your version
      

      In version v1.5.1.0 it worked:

      Localization pack imported successfully. 
      

      I know there is a download happening from the derived PrestaShop software repository.

      What do you recommend in order to get the specific language pack for qloapps v1.6.0.0?

      Thank you very much,

      namaste7

      A 1 Reply Last reply Reply Quote 0
      • A
        akr Global Moderator @namaste7 last edited by akr

        @namaste7 We have checked the installtion of language pack Germany and we did not find any issue during download or its installation.

        We suggest you to try installing once again. If the issue persists, we will have to check this issue on your server. Just raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/ and mention your server credentials there.

        N 1 Reply Last reply Reply Quote 0
        • N
          namaste7 @akr last edited by

          Thanks @akr !

          The errors are:

          2 errors
          
              Archive cannot be downloaded from prestashop.com.
              No language pack is available for your version.
          
          

          The corresponding file is:

          /home/qloapps/www/hotelcommerce/classes/Language.php
          

          The corresponding function is:

              public static function downloadAndInstallLanguagePack($iso, $version = null, $params = null, $install = true)
              {
                  if (!Validate::isLanguageIsoCode((string)$iso)) {
                      return false;
                  }
          
                  if ($version == null) {
                      $version = _PS_VERSION_;
                  }
          
                  $lang_pack = false;
                  $lang_pack_ok = false;
                  $errors = array();
                  $file = _PS_TRANSLATIONS_DIR_.(string)$iso.'.gzip';
          
                  if (!$lang_pack_link = Tools::file_get_contents(_QLO_API_URL_.'/lang_pack/get_lang_pack.php?version='.$version.'&iso_lang='.Tools::strtolower((string)$iso))) {
                      $errors[] = Tools::displayError('Archive cannot be downloaded from prestashop.com.');
                  } elseif (!$lang_pack = json_decode($lang_pack_link)) {
                      $errors[] = Tools::displayError('Error occurred when language was checked according to your Prestashop version.');
                  } elseif (empty($lang_pack->error) && ($content = Tools::file_get_contents($lang_pack->download_link))) {
                      if (!@file_put_contents($file, $content)) {
                          if (is_writable(dirname($file))) {
                              @unlink($file);
                              @file_put_contents($file, $content);
                          } elseif (!is_writable($file)) {
                              $errors[] = Tools::displayError('Server does not have permissions for writing.').' ('.$file.')';
                          }
                      }
                  }
          
                  if (!file_exists($file)) {
                      $errors[] = Tools::displayError('No language pack is available for your version.');
                  }
          

          I checked apache logs and middleware "fastCGI process manager (php-fpm)" logs. There was no error mentioned. How can I turn on debug mode in Qloapps v1.6.0.0?

          Thanks!

          namaste7

          S 1 Reply Last reply Reply Quote 0
          • S
            shreesh Global Moderator last edited by

            @namaste7 We've tried to reproduce the issue on our end, but we haven't been able to. We'll need to debug the issue on your server in order to resolve it.

            To help us debug the issue, please raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.

            1 Reply Last reply Reply Quote 0
            • S
              shreesh Global Moderator @namaste7 last edited by

              @namaste7
              To enable debug mode, Check this post https://forums.qloapps.com/topic/399/how-can-we-run-qloapp-in-development-mode

              N 1 Reply Last reply Reply Quote 0
              • N
                namaste7 @shreesh last edited by namaste7

                @shreesh

                Thanks for answering me so promptly.

                I can verify that the apache installation is OK because I can access the remote qloapps API server using URL "https://api.qloapps.com/lang_pack/get_lang_pack.php?version=1.6.1.23&iso_lang=de" in a test.php page.

                There was a change from QloApp v1.5.1.0 to v1.6.0.0 in function downloadAndInstallLanguagePack():

                v1.6.0.0:
                https://api.qloapps.com/lang_pack/get_lang_pack.php?version=1.6.1.23&iso_lang=de 
                
                v1.5.1.0:
                http://www.prestashop.com/download/lang_packs/get_language_pack.php?version=1.6.1.23&iso_lang=de
                

                It seems that the referring file of "https://api.qloapps.com/download/lang_pack/1.1.1/de.gzip" is not properly received or processed.

                I think I need to go back to v1.5.1.0 if there is no solution to the language pack installation.

                Any ideas?

                If I have debug mode enabled how is the log file called and where is it stored?

                Error message should be: "Archive cannot be downloaded from api.qloapps.com.".

                Thank you!

                namaste7

                1 Reply Last reply Reply Quote 0
                • S
                  shreesh Global Moderator last edited by

                  @namaste7

                  We are still unable to recreate this issue on our end.

                  In order to provide you with the best assistance, we would need to further investigate the issue on your server.
                  Please raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post