• Resolved ajeeshb2016

    (@ajeeshb2016)


    I am running my WordPress in a docker container where i am using two docker volumes,
    one for core files ${WP_CORE}:/var/www/html and for content I am using ${WP_CONTENT}:/var/www/html/wp-content, So after installing the simply-static plugin i am getting the following error and I could not convert the static files.

    Checking if web server can read from Temp Files Directory: /var/www/html/wp-content/plugins/simply-static/static-files/	FAIL
    Checking if web server can write to Temp Files Directory: /var/www/html/wp-content/plugins/simply-static/static-files/	FAIL
    Checking if web server can write to Local Directory: wp-content/_data/plugins/simply-static/FILE/	FAIL

    How can I fix this issue on my infrastructure?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ajeeshb2016

    (@ajeeshb2016)

    I have created a file static-files and it is showing OK now while diagnosis.

    Checking if web server can read from Temp Files Directory: /var/www/html/wp-content/plugins/simply-static/static-files/	OK
    Checking if web server can write to Temp Files Directory: /var/www/html/wp-content/plugins/simply-static/static-files/	OK

    But still generating it is blank without showing any logs and nothing is created at the backend.

    Did you check the diagnostics? It might have trouble connecting to itself in that setup if you’re using a localhost link to access the wordpress.

    Like, you access site from localhost:8000 and the simply-static scripts will attempt to connect to that address but internally wordpress is hosted on localhost:80.

    A good solution would be using extra_hosts for docker compose, if you’re using the same setup I’ve found elsewhere.

    Good luck!

    I’m interested in this too as I have the same issue

    Plugin Author patrickposner

    (@patrickposner)

    Hey @ajeeshb2016,

    as @aruraune (thanks!) already mentioned this seems to be a connection issue here. Check if you can execute https://developer.ww.wp.xz.cn/reference/functions/wp_remote_get/ if that fails, Simply Static will also fail.

    This happens mostly in local development environments, where the current domain has a different port than the real installation.

    Best regards,
    Patrick

    Hi,
    I’m experiencing the same problem when running wordpress with docker-compose (setup as described here https://docs.docker.com/samples/wordpress/) on a local machine. Is there any solution or workaround for this problem so far?
    Best,
    Benjamin

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘docker running domain’ is closed to new replies.