![]() => $AvailableImageOutputFormats = array(text ico bmp wbmp gif png jpeg webp) in file "" on line 1005 => Addding ImageMagick formats to $AvailableImageOutputFormats (text ico bmp wbmp gif png jpeg webp) in file "" on line 999 => setSourceFilename(XXX/_files/images/articles/1.jpg) set $this->sourceFilename to "XXX/_files/images/articles/1.jpg" in file "" on line 294 I am continuing to play with this, here is the latest log: (ERROR XXX/core/components/phpthumbof/model/ : 156) Resource: 5 || Image: _files/images/articles/1.jpg I changed all of the paths to relative, no change. So the standard approach is to have all baseURL settings end in a slash and never use a slash at the beginning of anything that will be added to them. Note that it’s a modx convention that all path and URL settings end in a slash. Here are a full list of my current Context Settings and Media Source Properties: How do I change the output to give me the relative path?!?!?!!? Settings/Properties Instead, it should be: “/_files/cache/1.6481d8d1.jpg”, if I navigate there, it works. Success, I now have a thumbnail! But wait…Now the file location is based off the root of MODX, not the context/domain root, so it’s not displaying: “/sites/site_a/_files/cache/1.6481d8d1.jpg”. So I changed my code in the chunk to the following, adding in the missing directories: The full path from the root is: XXX/ sites/site_a/_files/images/articles/1.jpg. The path is missing a couple directories in between. The error is correct, the file is not there. XXX = the full path from the root of my server On load I receive the following error in the log: (ERROR XXX/core/components/phpthumbof/model/ : 156) Resource: 5 || Image: (none)įile not found: XXX/_files/images/articles/1.jpg *** Skipping *** Where ] = /_files/images/articles/1.jpg (working perfectly, but this is not the full path from the root, this is a relative path based on the context and domain) I’m using multiple contexts with separate media sources. I think I have a better understanding of what the issue is, but I’m still stuck. I have spent many hours trying to figure this out. Here is a screenshot of my current phpThumb settings: Somehow I need to add a few folders to that. The second line (above) would never work, it’s not the correct path. (ERROR in resource 5 XXXX/core/model/modx/ : 1373) Bad link tag `]` encountered (ERROR XXXX/core/components/fastfield/model/fastfield/fastfield.php : 97) fastField: Resource `0` doesn't exist I’m seeing this error repeating in the log when I refresh the live page: (ERROR XXXX/core/components/phpthumbof/model/ : 156) Resource: 5 || Image: (none)įile not found: XXXX/_files/images/articles/1.jpg *** Skipping *** I’m receiving the following error on installation: xPDOVehicle validator failed: type php (XXXX/core/packages/pthumb-2.3.3-pl/xPDOTransportVehicle/) 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: /_files/images/articles/1.jpg. It does not seem to have taken any affect. I have also tried setting phpthumb_document_root in the context settings. “photo_a” is the full resolution photo, currently rendering properly as text: I have tried uninstalling and reinstalling pThumb a few times with the same result. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |