Lucas,
Please follow this:
Open your \include\class.ticket.php, and find this code:
$sql ='SELECT attach_id,file_size,file_name FROM '.TICKET_ATTACHMENT_TABLE.
then replace with this:
$sql ='SELECT attach_id,file_size,file_name,file_key FROM '.TICKET_ATTACHMENT_TABLE.
Find again this code:
while(list($id,$size,$name)=db_fetch_row($res)){
then replace with this code:
while(list($id,$size,$name,$key)=db_fetch_row($res)){
Find again this code:
$attachstr.= "<a class='Icon file' href='attachment.php?id=$id&ref=$hash' target='_blank'><b>$name</b></a> (<i>$size</i>) ";
after that line, please add this following code:
global $cfg;
$attachstr.= "<br />Attachment Directory: ".$cfg->getUploadDir().'/'.$key.'_'.$name;
After that, please go to your viewticket page belongs to a ticket which has the attachment file in it.
You should see such string like this:
Attachment Directory: blablabla
Let us know what is the value of that blablabla.
Sincerely,
Masino Sinaga