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

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

{% endif %} {% if showErrorMessage %}

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

{% endif %}

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

{% if phpRequirementsState != constant('PrestaShop\\Module\\AutoUpgrade\\UpgradeSelfCheck::PHP_REQUIREMENTS_VALID') %} {% endif %} {% if adminDirectoryWritableReport %} {% endif %} {% if not isLocalEnvironment %} {% 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 not checkKeyGeneration %} {% endif %} {% if missingFiles|length > 0 %} {% endif %} {% if notWritingDirectories|length > 0 %} {% endif %} {% if not isShopVersionMatchingVersionInDatabase %} {% endif %}
{% if phpRequirementsState == constant('PrestaShop\\Module\\AutoUpgrade\\UpgradeSelfCheck::PHP_REQUIREMENTS_INVALID') %} {{ 'Your current PHP version isn\'t compatible with your PrestaShop version. (Expected: %s - %s | Current: %s)'|trans([ phpCompatibilityRange['php_min_version'], phpCompatibilityRange['php_max_version'], phpCompatibilityRange['php_current_version'], ]) }} {% else %} {{ 'We were unable to check your PHP compatibility with the destination PrestaShop version.'|trans({}) }} {% endif %} {% if phpRequirementsState == constant('PrestaShop\\Module\\AutoUpgrade\\UpgradeSelfCheck::PHP_REQUIREMENTS_INVALID') %} {{ icons.nok(psBaseUri) }} {% else %} {{ icons.warning(psBaseUri) }} {% endif %}
{{ 'Your store\'s root directory (%s) is writable (with appropriate CHMOD permissions).'|trans([rootDirectory]) }} {% if rootDirectoryIsWritable %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {% endif %}
{{ 'The "/admin/autoupgrade" directory is writable (appropriate CHMOD permissions)'|trans({}) }} {% if adminDirectoryIsWritable %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {{ adminDirectoryWritableReport }} {% endif %}
{{ 'PHP\'s "Safe mode" option is turned off'|trans({})|raw }} {% if safeModeIsDisabled %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.warning(psBaseUri) }} {% endif %}
{{ 'PHP\'s "allow_url_fopen" option is turned on, or cURL is installed'|trans({})|raw }} {% if allowUrlFopenOrCurlIsEnabled %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {% endif %}
{{ 'PHP\'s "zip" extension is enabled'|trans({})|raw }} {% if zipIsEnabled %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {% endif %}
{% if storeIsInMaintenance %} {{ 'Your store is in maintenance mode'|trans({}) }} {% else %} {{ 'Enable maintenance mode and add your maintenance IP in [1]Shop parameters > General > Maintenance[/1]'|trans({ '[1]' : '', '[/1]' : '', })|raw }} {% endif %} {% if storeIsInMaintenance %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {% endif %}
{{ 'PrestaShop\'s caching features are disabled'|trans({}) }} {% if cachingIsDisabled %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.nok(psBaseUri) }} {% endif %}
{% if maxExecutionTime == 0 %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: unlimited)'|trans({}) }} {% else %} {{ 'PHP\'s max_execution_time setting has a high value or is disabled entirely (current value: %s seconds)'|trans([maxExecutionTime]) }} {% endif %} {% if maxExecutionTime == 0 %} {{ icons.ok(psBaseUri) }} {% else %} {{ icons.warning(psBaseUri) }} {% endif %}
{{ 'Apache mod_rewrite is disabled.'|trans({}) }} {{ icons.nok(psBaseUri) }}
{% if notLoadedPhpExtensions|length > 1 %} {{ 'The following PHP extensions are not installed: %s.'|trans([notLoadedPhpExtensions|join(', ')]) }} {% else %} {{ 'The following PHP extension is not installed: %s.'|trans([notLoadedPhpExtensions|first]) }} {% endif %} {{ icons.nok(psBaseUri) }}
{{ 'PHP memory_limit is inferior to 256 MB.'|trans({}) }} {{ icons.nok(psBaseUri) }}
{{ 'PHP file_uploads configuration is disabled.'|trans({}) }} {{ icons.nok(psBaseUri) }}
{% if notExistsPhpFunctions|length > 1 %} {{ 'The following PHP functions are not installed: %s.'|trans([notExistsPhpFunctions|join(', ')]) }} {% else %} {{ 'The following PHP function is not installed: %s.'|trans([notExistsPhpFunctions|first]) }} {% endif %} {{ icons.nok(psBaseUri) }}
{{ 'It\'s not possible to create a PHP session.'|trans({}) }} {{ icons.nok(psBaseUri) }}
{{ 'Unable to generate private keys using openssl_pkey_new. Check your OpenSSL configuration, especially the path to openssl.cafile.'|trans({}) }} {{ icons.nok(psBaseUri) }}
{{ 'The following files are missing:'|trans({}) }}
    {% for file in missingFiles %}
  • {{ file }}
  • {% endfor %}
{{ icons.nok(psBaseUri) }}
{{ 'It\'s not possible to write in the following folders:'|trans({}) }}
    {% for missingFile in notWritingDirectories %}
  • {{ missingFile }}
  • {% endfor %}
{{ icons.nok(psBaseUri) }}
{{ 'The version of PrestaShop does not match the one stored in database. Your database structure may not be up-to-date and/or the value of PS_VERSION_DB needs to be updated in the configuration table. [1]Learn more[/1].'|trans({ '[1]': '', '[/1]': '', })|raw }} {{ icons.nok(psBaseUri) }}

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

{% if showErrorMessage %}

{{ 'PrestaShop requirements are not satisfied.'|trans({}) }}

{% endif %}