Closed jakubhyza closed 1 year ago
has this been fixed?
Yes
It's still not working for me
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete... Pulling from finnie2006/nginx-ptero Digest: sha256:333ae8f3ab88b589f09a9d409da0e3640f8622fa1f3438099d3e8d41422ae2ce Status: Image is up to date for ghcr.io/finnie2006/nginx-ptero:latest [Pterodactyl Daemon]: Finished pulling Docker container image :/home/container$ ./start.sh container@pterodactyl~ Server marked as running... ⟳ Starting PHP-FPM... ⟳ Starting Nginx... ✓ Successfully started 2022/12/08 09:34:21 [error] 20#20: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function session_start() in /home/container/webroot/index.php:94 Stack trace:
thrown in /home/container/webroot/index.php on line 94" while reading response header from upstream, client: x.y.z.c, server: , request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/home/container/tmp/php-fpm.sock:", host: "a.b.c.d:20030" x.y.z.c - - [08/Dec/2022:09:34:21 +0000] "GET / HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
You are using the wrong docker image
8.0 tag works fine, thanks.
Great!, please note that the latest tag is not getting updated anymore so use the 8.X tags
Sessions doesn't work
Description I was trying to install Nameless mc inside the container. I was unable to install it. Error log shows this message:
/home/container/webroot/core/init.php(18): Call to undefined function session_start()
How to replicate the issue I tried to create test.php file just with session_start() command and get ERROR 500 as the result. Console output was:
[error] 25#25: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function session_start() in /home/container/webroot/test.php:3
I run
php -m
and I can't see session. Looks like sessions are not installed in the container even if I know there isapk add php8-session
inside the docker file.Can you help me please to fix this issue? Thank you.