{"issue":{"created_at":"2011-12-09T21:32:59Z","state":"open","updated_at":"2011-12-09T21:32:59Z","comments":0,"user":{"gravatar_id":"dc35a6e19cd9d978414aac45151939ae","id":1169836,"url":"https://api.github.com/users/colderis","avatar_url":"https://secure.gravatar.com/avatar/dc35a6e19cd9d978414aac45151939ae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"colderis"},"body":"Like 15 minutes ago, I came here for expose a phpThumb error.\r\nWhen trying to explain my problem, I found the answer ...\r\n\r\nSo I post it for helping others who have the same problem, and of course for warn the developers of this plugin.\r\n\r\nI had this phpThumb error :\r\n\r\n    phpThumb() v1.7.11-201108081537\r\n    http://phpthumb.sourceforge.net\r\n\r\n    Error messages disabled\r\n \r\n \r\nFirst, I noticed an error on line 847 in 'MeioUpload/Model/Behavior/MeioUploadBehavior.php' : \r\n\r\n    $thumbSaveAs = WWW_ROOT . DIRECTORY_SEPARATOR . $thumbSaveAs;\r\n\r\nthe directory separator constant is already set in the WWW_ROOT in /index.php line 30 :\r\n\r\n    define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);\r\n\r\nI replaced it.\r\nAnd then I added in function _createThumbnail : :\r\n    \r\n    $phpThumb->config_disable_debug = false;\r\n\r\nfor output the PHPThumb error.\r\nHere I saw (I'm on Mac os x) :\r\n\r\n    \"/Users/me/Sites/cake/app/Vendor/phpThumb/uploads/myModel/myFile.jpg\" does not exist\r\n\r\nwell, the error came from the $saveAs variable.\r\nSo I added after the line 847 in 'MeioUpload/Model/Behavior/MeioUploadBehavior.php' : \r\n\r\n    $saveAs = WWW_ROOT.$saveAs;\r\n\r\n__Fixed__\r\n\r\nThis is probably not the good place for correct the saveAs variable but for now its works fine.\r\n\r\n*I use CakePHP 2.0.4*\r\n*Sorry for my bad english*","assignee":null,"id":2507253,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":93,"title":"phpThumb error","html_url":"https://github.com/jrbasso/MeioUpload/issues/93","closed_at":null,"url":"https://api.github.com/repos/jrbasso/MeioUpload/issues/93","milestone":null},"action":"opened"}