Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-6095

When editing translations clicking saving doesn't do anything

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.4.1
    • Fix Version/s: None
    • Component/s: International
    • How to reproduce the issue ?:
      Hide
      - Deactivate set_time_limit() on the server running Prestashop
      - Edit translations and save
      - Nothing should happen
      Show
      - Deactivate set_time_limit() on the server running Prestashop - Edit translations and save - Nothing should happen
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      When editing translations, clicking save doesn't do anything. If the user tries to go to another page, Prestashop will ask if it needs to save changes. If the user clicks "Save" and then comes back to the translation, the translation is correctly saved. But this modification is never visible in the front end.

      So in the back office the translation is OK but on the front end it's not.

      When you click save and nothing happens, Prestashop console raises an exception on the Ajax call pointing to /src/PrestaShopBundle/Service/Command/AbstractCommand.php constructor, on line 50, saying set_time_limit is not activated.

      /**
      {{ * Constructor.}}
      {{ *}}
      {{ * Construct the symfony environment.}}
      {{ *}}
      {{ * @param AppKernel $kernel Symfony Kernel}}
      {{ */}}
      {{ public function __construct(AppKernel $kernel = null)}}
      {{ {}}
          umask(0000);
      {{     set_time_limit(0);}}

          if (null === $kernel) {
      {{         require_once PS_ROOT_DIR.'/app/AppKernel.php';}}
      {{         $kernel = new AppKernel(PS_MODE_DEV ? 'dev' : 'prod', false);}}
      {{     }}}

          $this->kernel = $kernel;
      {{     $this->application = new Application($this->kernel);}}
      {{     $this->application->setAutoExit(false);}}
      {{ }}}

      To resolve this issue the user needs to activate set_time_limit() on his hosting server.

      You need to document the fact that set_time_limit() must be set to true on the server or raise an error if it's not.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              newslang Thierry Mathez
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: