sastaran
Forum Replies Created
-
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Plugin not working (cache folder not created)Hello Takis,
Thanks for your reply. Between last night and now, the image cache folder was created, but it is empty. I asked my managed host and this was their reply:
“Different from most setup, this stack does not fully proxying Apache2. It is called hybrid because NGINX and Apache2 does their own job.
NGINX is good at serving static files such as css,js,image and icon. And it is better at serving static files than Apache2. By using this stack, your static files will be served by NGINX and dynamic files will be served by Apache2 + FPM.”So it seems like it’s a bit of both. This is on Runcloud by the way.
I managed to edit the the NginX conf file by adding only the following line as suggested by my host
rewrite .(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php;
However this breaks all images on my wordpress site. Neither having the experimental option checked with the above line or not works, so I removed the code and images work fine again.
Appending ?debug=true simply loads original file in browser. I can send the debug and site URL in private if it’s possible?
Also I read in another thread that images behind CSS don’t work. Almost all my images are behind CSS. Also I’m using Cloudflare. Would this be a dealbreaker for the plugin?
Thanks for your advice
- This reply was modified 7 years, 9 months ago by sastaran.
Forum: Plugins
In reply to: [Adaptive Images for WordPress] Plugin not working (cache folder not created)So upon testing my nginx config file I meet the following error:
nginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /etc/nginx-rc/conf.d/wpwp.conf:28
nginx: [emerg] duplicate location “/” in /etc/nginx-rc/extra.d/wpwp.location.main.autoresize.conf:1
nginx: configuration file /etc/nginx-rc/nginx.conf test failedTo add, I was trying to append the autoresize.conf with the nginx code to the main nginx.conf as my managed hosting recommends this. Seems like there is an error in adding the nginx code which might be why it’s not working.