File not Found!

Viewing 2 posts - 1 through 2 (of 2 total)
#4409

Revolved
Member

We are testing the Free version to determine if this plugin is going to work for us and be easy to use. (most of all the plugin has to work)

When creating a package everything seems fine (although updating a package shows a page displaying only “Updated!” in the wp dashboard), I check the directory through ftp and the file is uploaded. But clicking the Download just gives us a File not Found! message.

We have read several other topics of others experiencing the same issue. We have attempted to resolve on our own but still no luck. We need a solution before we are going to consider buying.

Thanks in advance, hope you can help.

#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 2 posts - 1 through 2 (of 2 total)

The topic ‘File not Found!’ is closed to new replies.