MODX Cloud does not run on Apache and therefore any .htaccess directives will be ignored. You'll need to find the nginx directive on the page for Adaptive Images and then follow the directions at the top of this page to implement them:
https://modxcloud.com/userguide/using-modx-cloud/tools-and-configuration/web-rules-rewrites-redirects-tweaks.html
I hope this helps.
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 1,078 Posts
This is beyond me — but I found this within the adaptive-images documentation:
You'll need to ensure you've got PHP running with nginx too, but that's outside of the scope of this site.
-
- 56 Posts
Hi mmcgee - is PHP not running on MODX cloud?!
-
- 56 Posts
Hi mmcgee
Thanks ever so for the links. The different re-write rule was accepted by MODX cloud. However, I am back to having a blank screen on any page! Could it be something to do with the fact that the re-write refers to adaptive-images.php, but in my head chunk I am referring to [[adaptive-images]]
Actually the adaptive images has nothing to do with MODX. The server, every time it sees a request for an image, loads the adaptive-images.php file instead of the requested image file. MODX doesn't get involved at all.
If you want to use a snippet, it would be in a resource with no template, and your rewrite rule would point to that resource's URL instead of the adaptive-images.php file. I haven't looked at how Adaptive Images works, so I'm not sure a snippet would even work at all.
A white-page means that there was a fatal PHP error that stops MODX, so you would need to look at your server's PHP error logs to find out just what the problem is.
-
- 56 Posts
Hello Sottwell
Thanks for responding. I am using MODX cloud, so presume the servers are theirs.
Then you can find your PHP error logs in your home directory, above the www directory.