PrestaShop / PrestaShop/docker

PS_INSTALL_AUTO=1 does not add Rijndael keys to settings

Open
#137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Dockerfile
Stars
281
Forks
190
PR merge metrics
No merged PRs in 30d

Description

Hello,

PS_INSTALL_AUTO=1 does not add Rijndael keys to the settings it seems.
Using image: prestashop/prestashop:1.6-7.2-apache

The following code is shown in the frontoffice and backoffice:

Warning: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' (this will throw an Error in a future version of PHP) in /var/www/html/classes/Cookie.php on line 79

Warning: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' (this will throw an Error in a future version of PHP) in /var/www/html/classes/Cookie.php on line 79

Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /var/www/html/classes/Rijndael.php on line 124

Warning: openssl_decrypt(): IV passed is only 7 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in /var/www/html/classes/Rijndael.php on line 91

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/tools/smarty/sysplugins/smarty_internal_compilebase.php on line 75

Warning: openssl_encrypt(): IV passed is only 7 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in /var/www/html/classes/Rijndael.php on line 52

Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /var/www/html/classes/Rijndael.php on line 124

My docker-compose file looks as follows:

version: '3.4'

networks:
  network:
    driver: bridge

volumes:
    db-data:
    app-data:

services:
  prestashop:
    image: prestashop/prestashop:1.6-7.2-apache
    ports:
      - "80:80"
    networks:
      - network
    depends_on:
      - db
    volumes:
      - ./prestashop:/var/www/html
    environment:
      ADMIN_MAIL: my@email.com
      ADMIN_PASSWD: password
      PS_DEV_MODE: 1
      PS_COUNTRY: NL
      PS_DOMAIN: localhost
      PS_ERASE_DB: 1
      PS_FOLDER_ADMIN: backoffice
      PS_FOLDER_INSTALL: install
      PS_HANDLE_DYNAMIC_DOMAIN: 1
      PS_INSTALL_AUTO: 1
      PS_LANGUAGE: en
      DB_SERVER: db
      DB_USER: prestashop
      DB_PASSWD: password

  db:
    image: mariadb:latest
    networks:
      - network
    volumes:
       - db-data:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: prestashop
      MYSQL_USER: prestashop
      MYSQL_PASSWORD: password

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the prestashop/prestashop:1.6-7.2-apache image and PS_INSTALL_AUTO=1, then inspect the generated settings alongside classes/Cookie.php and classes/Rijndael.php. Done means the Rijndael keys are present after automatic installation and the reported undefined-constant and encryption warnings no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.