Hello everyone,
I am having some issues with attachments. I created folder "attachments" in the root directory of /support with chmod 777. In the Admin Panel I assigned folder "attachments" but it fails on me when I try to save the setting. I figured out it should be in the upper directory so in the Admin Panel I put "../attachments" instead. I saved and went to test it out and it did not work. It gave me this error:
Warning: move_uploaded_file(attachments/D9B2156F24F6900_all.txt) : failed to open stream: No such file or directory in /home/XXXXX/public_html/support/include/class.ticket.php on line 684
Warning: move_uploaded_file() : Unable to move '/tmp/phpZ7RQsF' to 'attachments/D9B2156F24F6900_all.txt' in /home/XXXXX/public_html/support/include/class.ticket.php on line
At this point I deleted the "attachments" folder from /support and put it in /support/scp with all access. In Admin Panel I changed the directory to save from "../attachments" to "attachments". So far so good but it gave me again the same error.
Then I just added the "attachments" directory to /support and I attached without error. I went to view the open ticket and when I clicked on it I am getting "No such file" error.
Apparently, the file was attached in /support/attachments but the link is looking at /support/scp/attachments. I have limited knowledge in PHP so any help will be appreciated.
Thanks