Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
440 stars 171 forks source link

Docker compose error #113

Closed CarlosLannister closed 5 years ago

CarlosLannister commented 5 years ago

Just try to launch de master branch with docker compose and several errors appear. Adminer is launched but it´s appear to be some problem with nbbc.php

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/mellivora/include/thirdparty/nbbc/nbbc.php on line 214

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/mellivora/include/thirdparty/nbbc/nbbc.php on line 226

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/mellivora/include/thirdparty/nbbc/nbbc.php on line 230

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /var/www/mellivora/include/mellivora.inc.php on line 28

Warning: session_start(): Cannot start session when headers already sent in /var/www/mellivora/include/mellivora.inc.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /var/www/mellivora/include/thirdparty/nbbc/nbbc.php:214) in /var/www/mellivora/include/general.inc.php on line 386
imrantvlk commented 5 years ago

I got the same error. Any update on how to fix this?

Nakiami commented 5 years ago

Looks like changes in PHP 7.3.

Try changing

FROM php:7-apache

to

FROM php:7.2-apache

in Dockerfile and then rebuilding.

CarlosLannister commented 5 years ago

Yes, It's a problem with PHP/7.3.0. Everything seem to work with php:7.2-apache, thanks.

Nakiami commented 5 years ago

Fixed in https://github.com/Nakiami/mellivora/commit/16b237b861cdfa44f0b44d731f158f1a5a5d21e4, thanks.