I’m unable to get phpThumb / pThumb to work, I’m thinking it may have to do with my multi-site / multi-context setup…(different domains)
Step to reproduce
I have tried uninstalling and reinstalling pThumb a few times with the same result.
“photo_a” is the full resolution photo, currently rendering properly as text:
I have also tried setting
phpthumb_document_root in the context settings. It does not seem to have taken any affect.
I’m assuming the final result would be a unique URL to a thumbnail of my photo, instead I’m getting back what I put in:
I’m receiving the following error on installation:
xPDOVehicle validator failed: type php (XXXX/core/packages/pthumb-2.3.3-pl/xPDOTransportVehicle/aea43ca81ababaf9acb1782bbccb4b19.validate.resizer.validator)
I’m seeing this error repeating in the log when I refresh the live page:
[2019-12-24 22:53:10] (ERROR @ XXXX/core/components/phpthumbof/model/phpthumbof.class.php : 156) [pThumb] Resource: 5 || Image: (none) File not found: XXXX/_files/images/articles/1.jpg *** Skipping *** [2019-12-24 22:53:11] (ERROR @ XXXX/core/components/fastfield/model/fastfield/fastfield.php : 97) fastField: Resource `0` doesn't exist [2019-12-24 22:53:11] (ERROR in resource 5 @ XXXX/core/model/modx/modparser.class.php : 1373) Bad link tag `[[~0]]` encountered
The second line (above) would never work, it’s not the correct path. Somehow I need to add a few folders to that.
Here is a screenshot of my current phpThumb settings:
- MODX: 2.7.1-pl
- MIGX: 2.12.0-pl
- PHP: 7.3.3
- MySQL: 5.1.73 (latin1, latin1_swedish_ci)
- pThumb 2.3.3-pl
I would like to automatically produce thumbnails of higher-quality photos for lazy loading purposes. Initially I thought I could just use the thumbnail functionality already being produced in the MODX media browser, but I couldn’t get that to work. I’m open to the most efficient way of accomplishing this…any ideas?
Thank you for your help and Merry Christmas to you!