docker-compose-wordpress icon indicating copy to clipboard operation
docker-compose-wordpress copied to clipboard

Startup fails (almost) silently when a plugin contains a PHP syntax error

Open carlobeltrame opened this issue 7 years ago • 1 comments

When mounting a local plugin as a volume into the wordpress service for development, changes are reflected immediately inside the container, and typos and syntax errors result in easy-to-see error messages in the browser. However, when (re-)starting the docker-compose application while there are syntax errors in the mounted plugins, startup fails when trying to activate the plugin. The output of the service in that case looks like wordpress_wordpress_1 exited with code 255 which does not point in any way towards the root of the problem.

Solution: Output more detailed error messages in docker-entrypoint.sh, indicating which part of the startup process failed more clearly.

carlobeltrame avatar Oct 10 '17 07:10 carlobeltrame

I've had the exact same issue. Thanks to @carlobeltrame , I quickly found the cause. Else, I could have spent a long time, or even give up on this great project.

eostis avatar Jan 15 '18 10:01 eostis