TLDR;
Set your Media Source baseUrlRelative to false, but use a relative baseUrl.
:-/
I have the feeling that Gallery is not equipped to handle a MODX installation on a cPanel-style URL like this:
www.domain.com/~cPanelUserName/
The reason is that is seems to (incorrectly) incorporate the ~cPanelUserName part in the absolute file path, like so (taken from the Error Log):
setSourceFilename(/home/cPanelUserName/public_html/~cPanelUserName/assets/files/gallery/6/17.jpg) set $this->sourceFilename to "/home/cPanelUserName/public_html/~cPanelUserName/assets/files/gallery/6/17.jpg" in file "phpthumb.class.php" on line 263
I'm having a very hard time tracking down exactly where it gets the tilde part from. I certainly have my MODX_BASE_URL set to
/~cPanelUserName/ as this is what the MODX installer determined for itself.
Can anyone with greater knowledge of Gallery (I've been trawling thru the source for a while now) point out where it uses the BASE_URL when trying to calculate the file path?
[ed. note: atmmarketing last edited this post 9 years, 11 months ago.]