Revolved

Forum Replies Created

Viewing 1 post (of 1 total)
in reply to: File not Found! #4412

Revolved
Member

After speaking with live support they indicated it was most likely an issue with our server configuration and assured that the pro version would not have this issue.

I inspected the source code in an attempt to determine the cause. (I felt it was highly unlikely to be a server configuration issue)

What I found to be the cause:

It appears that white space is added to the file name. Adding trim() to the $data[‘file’] var will resolve this issue. (a band aid until I find where the white space is added)

Open process.php locate line 32 though 37:
———————————————————
if(file_exists($data[‘file’]))
$fname = $data[‘file’];
else if(file_exists(UPLOAD_DIR . $data[‘file’]))
$fname = UPLOAD_DIR . $data[‘file’]);
else
die(‘File not found!’.$fname);

Replace with:

if(file_exists($data[‘file’]))
$fname = $data[‘file’];
else if(file_exists(UPLOAD_DIR . trim($data[‘file’])))
$fname = UPLOAD_DIR . trim($data[‘file’]);
else
die(‘File not found!’.$fname);

————————————————————–

This minor change has resolved the problem for us and hope it will help someone else as well.

I plan to search for where the white space is popped on.

Thanks for the plugin, we are going to do some further testing but looks like you have a potential buyer for the pro version at a later date.

Viewing 1 post (of 1 total)