On Thu, 01 Mar 2012 15:50:25 +0100
Peter Allgeyer <[email protected]> wrote:
> > Does it only happen when you use a grant?
>
> Download works perfectly. Only grants are affected.
> >
> > Try cranking up PHP's "error_reporting" level: set
> > error_reporting = E_ALL | E_NOTICE
> > in php.ini and reload.
So to get the problem correctly, you have an internal error when _using_
(uploading) a grant? So you create a grant (works), then the upload fails.
Odd.
Let's try some form of crude debugging:
change "uploadErrorStr()" in funcs.php to read:
function uploadErrorStr($FILE)
{
logEvent(print_r($FILE, true));
return $FILE["error"];
}
also change failUpload() in grant.php to read:
function failUpload($file)
{
logEvent("upload failed at: " . print_r(debug_backtrace(), true));
}
then look at the contents of the log file (or syslog in your case).