{% import "@ModuleAutoUpgrade/macros/icons.twig" as icons %}
{{ 'The pre-Upgrade checklist'|trans({}, 'Modules.Autoupgrade.Admin') }}
{% if not moduleIsUpToDate %}

{{ 'Your current version of the module is out of date. Update now'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ 'Modules > Module Manager > Updates'|trans({}, 'Modules.Autoupgrade.Admin') }}

{% endif %} {% if showErrorMessage %}

{{ 'The checklist is not OK. You can only upgrade your shop once all indicators are green.'|trans({}, 'Modules.Autoupgrade.Admin') }}

{% endif %}

{{ 'Before starting the upgrade process, please make sure this checklist is all green.'|trans({}, 'Modules.Autoupgrade.Admin') }}

{% if adminDirectoryWritableReport %} {% endif %} {% if not checkPhpVersionCompatibility %} {% endif %} {% if not checkApacheModRewrite %} {% endif %} {% if notLoadedPhpExtensions|length > 0 %} {% endif %} {% if not checkMemoryLimit %} {% endif %} {% if not checkFileUploads %} {% endif %} {% if notExistsPhpFunctions|length > 0 %} {% endif %} {% if not checkPhpSessions %} {% endif %} {% if missingFiles|length > 0 %} {% endif %} {% if notWritingDirectories|length > 0 %} {% endif %}
{% if not phpUpgradeRequired %} {{ 'Your server is running on a supported PHP version.'|trans({}, 'Modules.Autoupgrade.Admin') }} {% else %} {{ 'The PHP version your server is running on is obsolete and needs to be upgraded. [1]Learn more[/1].'|trans({ '[1]': '', '[/1]': '', }, 'Modules.Autoupgrade.Admin')|raw }} {% endif %} {% if not phpUpgradeRequired %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{{ 'Your store\'s root directory (%s) is writable (with appropriate CHMOD permissions).'|trans([rootDirectory], 'Modules.Autoupgrade.Admin') }} {% if rootDirectoryIsWritable %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'The "/admin/autoupgrade" directory is writable (appropriate CHMOD permissions)'|trans({}, 'Modules.Autoupgrade.Admin') }} {% if adminDirectoryIsWritable %} {{ icons.ok }} {% else %} {{ icons.nok }} {{ adminDirectoryWritableReport }} {% endif %}
{{ 'PHP\'s "Safe mode" option is turned off'|trans({}, 'Modules.Autoupgrade.Admin')|raw }} {% if safeModeIsDisabled %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{{ 'PHP\'s "allow_url_fopen" option is turned on, or cURL is installed'|trans({}, 'Modules.Autoupgrade.Admin')|raw }} {% if allowUrlFopenOrCurlIsEnabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'PHP\'s "zip" extension is enabled'|trans({}, 'Modules.Autoupgrade.Admin')|raw }} {% if zipIsEnabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{% if storeIsInMaintenance %} {{ 'Your store is in maintenance mode'|trans({}, 'Modules.Autoupgrade.Admin') }} {% else %} {{ 'Enable maintenance mode and add your maintenance IP in [1]Shop parameters > General > Maintenance[/1]'|trans({ '[1]' : '', '[/1]' : '', }, 'Modules.Autoupgrade.Admin')|raw }} {% endif %} {% if storeIsInMaintenance %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{{ 'PrestaShop\'s caching features are disabled'|trans({}, 'Modules.Autoupgrade.Admin') }} {% if cachingIsDisabled %} {{ icons.ok }} {% else %} {{ icons.nok }} {% endif %}
{% if maxExecutionTime == 0 %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: unlimited)'|trans({}, 'Modules.Autoupgrade.Admin') }} {% else %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: %s seconds)'|trans([maxExecutionTime], 'Modules.Autoupgrade.Admin') }} {% endif %} {% if maxExecutionTime == 0 %} {{ icons.ok }} {% else %} {{ icons.warning }} {% endif %}
{{ 'Your current PHP version isn\'t compatible with your PrestaShop version.'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ icons.nok }}
{{ 'Apache mod_rewrite is disabled.'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ icons.nok }}
{% if notLoadedPhpExtensions|length > 1 %} {{ 'The following PHP extensions are not installed: %s.'|trans([notLoadedPhpExtensions|join(', ')], 'Modules.Autoupgrade.Admin') }} {% else %} {{ 'The following PHP extension is not installed: %s.'|trans([notLoadedPhpExtensions|first], 'Modules.Autoupgrade.Admin') }} {% endif %} {{ icons.nok }}
{{ 'PHP memory_limit is inferior to 256 MB.'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ icons.nok }}
{{ 'PHP file_uploads configuration is disabled.'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ icons.nok }}
{% if notExistsPhpFunctions|length > 1 %} {{ 'The following PHP functions are not installed: %s.'|trans([notExistsPhpFunctions|join(', ')], 'Modules.Autoupgrade.Admin') }} {% else %} {{ 'The following PHP function is not installed: %s.'|trans([notExistsPhpFunctions|first], 'Modules.Autoupgrade.Admin') }} {% endif %} {{ icons.nok }}
{{ 'It\'s not possible to create a PHP session.'|trans({}, 'Modules.Autoupgrade.Admin') }} {{ icons.nok }}
{{ 'The following files are missing:'|trans({}, 'Modules.Autoupgrade.Admin') }}
    {% for file in missingFiles %}
  • {{ file }}
  • {% endfor %}
{{ icons.nok }}
{{ 'It\'s not possible to write in the following folders:'|trans({}, 'Modules.Autoupgrade.Admin') }}
    {% for missingFile in notWritingDirectories %}
  • {{ missingFile }}
  • {% endfor %}
{{ icons.nok }}

{{ 'Please also make sure you make a full manual backup of your files and database.'|trans({}, 'Modules.Autoupgrade.Admin') }}

{% if showErrorMessage %}

{{ 'PrestaShop requirements are not satisfied.'|trans({}, 'Modules.Autoupgrade.Admin') }}

{% endif %}