Hi IT-Team can you please let me know how to solve it? I have the same issue
hi,
u can "fix" it by just allowing the preview in ticketview and not in the "overview" screen
https://github.com/clonemeagain/attachment_preview/issues/42#issuecomment-521273949
just edit your code as described there . you wont miss it in any other view and it doesnt cause problems in the ticket-view screen
update in osticket 1.12.3 102:
revise line 1061:
elseif (strpos($url, 'index.php') !== FALSE || strpos($url, 'tickets.php') !== FALSE || strpos($url, 'tasks.php') !== FALSE) { if ($_REQUEST['id'] && ($ticket=Ticket::lookup($_REQUEST['id']))) $tickets_view = TRUE; elseif ($_REQUEST['id'] && ($task=Task::lookup($_REQUEST['id']))) $tickets_view = TRUE; elseif ($_REQUEST['number'] && $ticket=Ticket::lookup(array('number' => $_REQUEST['number']))) $tickets_view = TRUE; } #elseif (strpos($url, 'index.php') !== FALSE || # strpos($url, 'tickets.php') !== FALSE) { // Might be a ticket page.. # $tickets_view = TRUE; #}