Forum

V1.17.2 autosave is...
 
Notifications
Clear all

V1.17.2 autosave issue

3 Posts
3 Users
0 Reactions
23 Views
Posts: 7
Topic starter
(@beon-it)
Member
Joined: 6 years ago

Hi,

we have after upgrading to Version 1.17.2 issues with the autosave function. So when a customer is open a new ticket or create an answer to an existing ticket the javascript autosave does not work. We get an JS alert info window:

 

It is also not possible then to send the answer because of this issue:

 

We use it on apache webserver with PHP 8.0.2. Delte the browsercache does not help.

Anyone know what could be the reason?

regards, Norman


2 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

Hi Norman, I'm sorry for the delay in responding. Your post was mysteriously marked as "Pending" and I had to approve it for some reason (I've never had to do that before).

I used Google Translate to figure out the error you're seeing:

Undefined. Cannot save the draft. Refresh the current page to restore your draft and continue.

This is a problem with osTicket itself... it is not an osTicket Awesome issue.

But, if you're still having trouble, you will find the solution here:

https://forum.osticket.com/d/101954-unable-to-save-draftrefresh-the-current-page-to-restore-and-continue-your-draft/6

In your case you are already running osTicket 1.17.2 (albeit osTicket-1.17.2-Awesome-101). So you'll just need to apply the patch.

1. Open include/class.usersession.php

2. Replace line 140

    if (isset($_SESSION['TIME_BOMB'])

    with this...

    if ($_SERVER['REQUEST_METHOD'] === 'GET'
          && isset($_SESSION['TIME_BOMB'])

I hope this helps!


Reply
Posts: 7
Topic starter
(@beon-it)
Member
Joined: 6 years ago

Hi Stevland,

thanks that works.


Reply
Posts: 7
(@pamconsult)
Member
Joined: 4 years ago

Hello, the same error happens when creating a new FAQ entry. Then saving it and re-opening it to add the other languages. When then entering the other languages (we have 2 others next to German), an autosave error appears.


Reply
Share: