This case is similar to http://www.osticket.com/forum/discussion/84193 but I never saw a resolution. I was able to follow @AR84 comment and use that as a workaround. Thank you @AR84. This means that at least a few other people have ran into this problem. Let me explain the rest of my details for everyone. I am hoping someone can comment and explain why this workaround was needed, or if there is a better fix available.
I have been using osTicket for over a year now. I am running Ubuntu 1404 with osTicket v1.9.4. On Saturday, I upgraded osTicket to v1.9.14. This is my first time upgrading and the installation went pretty well. Additionally, I upgraded PHP from 5.5 to 5.6, and this introduced some problems with imap, and ldap that took extra time to figure out. I resolved the PHP problems and I thought everything was complete.
I received an emergency call this morning reporting that attachments from osTicket were not opening. When an agent clicked on any attachment, it opened a blank webpage and nothing would load. It didn't matter what attachment file type, they all opened into a blank webpage. Following AR84's post from the above linked ticket, I replaced the "function getAttachments" section of code from the v1.9.14 version and replaced the section of code from v1.9.4. The file that was changed is found in /var/www/html/osticket/include/class.thread.php. This resolved my emergency and attachments are opening once again.
My question is why did I have to change this section of code?
Am I removing new security features applied to attachments?
Did I not upgrade properly?
Is there a better way to fix the attachment problem that I was having?
I attached the sections of code that was replaced from v1.9.14 and v1.9.4. I also attached my "Dashboard > Information" and "Settings > Tickets" options.
Thank you for your help. Let me know if there are any followup questions.
I have been using osTicket for over a year now. I am running Ubuntu 1404 with osTicket v1.9.4. On Saturday, I upgraded osTicket to v1.9.14. This is my first time upgrading and the installation went pretty well. Additionally, I upgraded PHP from 5.5 to 5.6, and this introduced some problems with imap, and ldap that took extra time to figure out. I resolved the PHP problems and I thought everything was complete.
I received an emergency call this morning reporting that attachments from osTicket were not opening. When an agent clicked on any attachment, it opened a blank webpage and nothing would load. It didn't matter what attachment file type, they all opened into a blank webpage. Following AR84's post from the above linked ticket, I replaced the "function getAttachments" section of code from the v1.9.14 version and replaced the section of code from v1.9.4. The file that was changed is found in /var/www/html/osticket/include/class.thread.php. This resolved my emergency and attachments are opening once again.
My question is why did I have to change this section of code?
Am I removing new security features applied to attachments?
Did I not upgrade properly?
Is there a better way to fix the attachment problem that I was having?
I attached the sections of code that was replaced from v1.9.14 and v1.9.4. I also attached my "Dashboard > Information" and "Settings > Tickets" options.
Thank you for your help. Let me know if there are any followup questions.