Ok people in case someone hits this same error... after a long debug session the problem is that phpThumb library is placed somewhere at the inner levels of the site folders more exactly "include/image_upload/phpThumb" and so its doc_root is calculated right in that place. phpThumb has a config variable called config_allow_src_above_docroot which is set to false by default and of course since source images are in upper folders in the site hierarchy it will not work.
My solution was to add $phpThumb->config_allow_src_above_docroot = true to image_upload.php right when generating the thumbnail and now works as expected. Modifying the config file does not work dunno why, it would have been a cleaner solution.
1 2007-02-27 23:36
Re: Image upload problem (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2007-02-27 14:09
Re: Image in post - thumbnail! (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This is doing exactly what you need http://www.punres.org/viewtopic.php?id=789
Now I tried to install it yesterday on an already modded up installation and gave up after two hours of installing and reinstalling. If you can make it work please post in here.
3 2007-02-27 11:00
Re: Mods pack? (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Thanks, it doesn't seem to include attachment and image upload mods though.
Does anyone have these mods installed? I would appreciate if someone would make available the site files (db is not needed as I can run install_mod for each mod). Thanks in advance!
4 2007-02-27 08:55
Topic: Mods pack? (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hi all,
As I didn't get far installing mods by myself (I have failed at image upload, can't roll back already have other mods installed before it and line numbers do not match anymore etc) I was wondering if there is a mod pack install package? Like a forum install that already has most used mods installed?
Thanks!
5 2007-02-27 08:15
Re: Image upload problem (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Alreay tried that and I do have GD installed...
(Sorry for posting in the wrong forum)
-soso
6 2007-02-26 23:12
Topic: Image upload problem (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hi all,
I installed image upload mod, everything looks ok, the files are uploaded ok in the /uploads folder but the thumbnails are missing. The /uploads folder is writable dunno what the problem could be.
San for errors command returns: Missing thumbnails.
Anyone can help?
Thanks,
-soso