Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fImage::determineProcessor() causing error on my live server (bsd)

posted by marcus 9 years ago

Hello.

I'm trying to use fUpload to move uploaded files in a form. Everything works great locally on my Windows box but when I run the code on my server I get errors.

Notice: Undefined variable: output in /home/web80126/domains/poolkungen.se/framework/components/fImage.php on line 190 Warning: exec() has been disabled for security reasons in /home/web80126/domains/poolkungen.se/framework/components/fImage.php on line 190

The code that's triggering this looks like this

$uploader = new fUpload();
$uploader->setMaxFileSize('10MB');
$file = $uploader->move(SERVER_ROOT.APP_ROOT.'public/files/email', 'attachment');

My live server is shared hosting so I have no control over exec and stuff like that. The file is moved properly and the directory is readable/writable. I'm running r745. I can get the code to work by suppressing errors on the live server but that isn't something I really want to do.

I believe this will be fixed with the next revision - I think I caught it with the new testing setup I've been working on. Let me know if that isn't the case.

posted by wbond 9 years ago