-
- 6 Posts
JoZ3 : Apparently this is because phpthumb has a security flaw, so it’s been deactivated for non-registered users.
This is the reason why you’ve got to use a server script (php) to read that file.
You may use fopen(path_to_image)… which is exactly what phpThumbOf does.
I actually got to fix the problem with phpThumbOf. The path was incorrect. If you look at the logs (core/cache/logs/error.log) after loading a page that has a phpthumbof call, what do you see ?
If you read something like "cannot fopen file" it probably means the path is incorrect or simply that your permissions are wrong (chmod to at least 755). Look at the path the log gives you and then correct it on the phpthumbof snippet.
Hope this helps.
-
- 123 Posts
changing server?!? that’s the solution? ideally i’d like to continue developing on my localhost.. I could, I guess, change the this site to be set as root and reconfigure it for the new address. that’s seems a bit retarded.... is there no simple fix for this well reported and easily reproducible problem of running phpthumbof on a modx install running inside a subdirectory?
-
- 80 Posts
is there no simple fix for this well reported and easily reproducible problem of running phpthumbof on a modx install running inside a subdirectory?
NOT YET ... But since so many of us are having this problem I’m sure Shawn is working on it, maybe we all buy him a beer once it’s fixed
Environment:
modx: rev 2.0.8-pl
localhost: Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2, MySQL client version: 5.1.37
I am running REVO 2.2 and phpthumbof 1.3.2 and have had massive problems getting it to work... I constantly get the wrong path sent to it:
[39] => GetImageSize(/kunden/352327_80637/webseiten/modx//modx/assets/web/allgemein/IMG_0779.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1318
The site is on a subfolder called "modx" and the path writes it twice. Is this a bug or a settings problem that I need to know about?
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.