Hi @support@complavis.de,
Thank you for your detailed report.
Unfortunately, I had trouble following along through everything that you did.
Please see my next comment for my best advise for you and everyone else.
Hi guys,
The Problem
The problem is that I previously compressed the Attachment Inline Plugin into a .phar file which I bundled in osTicket Awesome.
For the 1.7 release I noticed that there were some small updates to that Plugin, so I obtained the latest version.
Unfortunately, I spent a bunch of time trying (unsuccessfully) to figure out how I had previously created the .phar.
Finally I decided to include Attachment Inline Plugin as an uncompressed directory.
I wish I hadn't done that. I didn't anticipate that this would confuse osTicket and create a mismatch in the database.
I'm sorry for the trouble!
I have now figured out how to create the .phar, and I have released osTicket Awesome for osTicket 1.17 (Revision 3) with the .phar so that other people who upgrade will avoid this issue.
But that doesn't help you guys, or anyone other Attachment Preview users who've already upgraded to Revisions 1 or 2. 🙁
The problem is, even if you resolve this now, you'll run into the same problem (but in reverse) the next time you update osTicket Awesome.
So my advice to you is...
The Solution
Disable and then Delete any instance of Attachment Inline Plugin in Admin Panel > Manage > Plugins
Then connect to your server and delete the /include/plugins/attachment_preview directory.
In its place, upload the .phar, which you can obtain here.
Then enable the plugin as normal (and don't forget to create an instance).
And if you have any trouble, let me know!
Hi Stevland.
The plugin is working but missing buttoms "Show Attach" and "Hide Attach". The Hide configuration is not working and all attachments is showing in the thread every time.
I'm using the latest version 1.17 rev 103 in new clean installation. Php 8.1, mysql 5.
Hi @ablovatto,
It looks like the show and hide buttons have been removed from the plugin in the latest version.
If you press SHIFT + O while looking at the ticket you'll notice that the buttons don't appear in vanilla osTicket either.
But if you go to Admin Panel > Manage > Plugins > Attachment Inline > Instance > select your instance > Config
...you'll see the following option:
Hide Seen:
When auto-showing an attachment, store the ID in the users browser, so they can choose to see it again if they want, but are not forced to.