Hi all,
From time to time we find ourselves installing MODX in a sub-folder and noticed this was causing issues with Gallery and phpthumbof thumbnail paths.
The following code replacement seems to address the issue:
File:
/core/model/phpthumb/phpthumb.class.php (line 1024)
replace:
$AbsoluteFilename = $this->config_document_root.$filename;
with:
$AbsoluteFilename = $_SERVER['DOCUMENT_ROOT'].$filename;
It does NOT need changing back if you move the install to the root.
Is there a better way of doing this?