I have installed autosave 6.x-2.x-dev and there are no signs on the screen that its working correctly,

What are the indicators that it is working properly?

CommentFileSizeAuthor
#7 autosave-clean-url.patch948 bytesedmund.kwok

Comments

liquidcms’s picture

did you enable it for one of your node types?

if you do, you should see a popup (its pink) at the bottom of your browser window; default time for this is every 5 min.. so will take at least that long to see it. edit this and set to 5 sec to check if its working.

voipfc’s picture

I configured it one of the content types, the popup shows.

When a version is autosaved how can it be restored?

When close the browser tab without saving, and I view the page to start editing it, I expect to return to the point it was before autosaving, but it appears to revert to the previously saved version.

Is there some indicator on the editing page that shows the autosaved version and allows me to return to it?

liquidcms’s picture

if you begin editing a page that has autosaved a form you should get a similar popup that asks if you want to view or ignore the AS version

if you don't then possibly the install didnt work correctly - do you have a table called autosaved_forms? and does it have any records?

voipfc’s picture

A table named autosaved_forms has been created in the database, and I get a blue popup rising at the bottom of the screen saying that the current form has been autosaved, but the table itself remains empty.

voipfc’s picture

Category: bug » support

It is working as you described now. It appears to have a dependency on clean urls.

It started working properly after I turned on mod_rewrite and got clean urls working.

liquidcms’s picture

Title: No sign that autosave is working » Doesn't work without clean urls.
Status: Active » Closed (won't fix)

hmm.. interesting.. wouldn't have thought a dependency on clean urls but perhaps.. not sure i'll both to fix that as i personally do not understand reasoning behind NOT always having clean urls.

but if someone wants to supply a patch; will gladly commit

changed title accordingly

thanks for testing.

edmund.kwok’s picture

Component: User interface » Code
Category: support » bug
Status: Closed (won't fix) » Needs review
StatusFileSize
new948 bytes

Patch to fix clean urls ;)

liquidcms’s picture

thanks Ed, and good to see you are still around.

i have committed your patch to HEAD (not sure if that's enabled on project page; i'll check) - i'll do a release after i sort out #619300: Autosave stops working after disabling rich text

Hiroaki’s picture

I've tried this patch on 2.7
First, the patch failed, so i compared the code, and .module already has the code it needed (i think?)
So I changed the line 75 on autosave.js
from
url: Drupal.settings.basePath + "autosave/handler",
to
url: Drupal.settings.autosave.url,
and now the autosave_forms table is populated.

However, it is populated by the previously "Saved" data and not the work in progress data in the form, so whenever you see the popup saying (view the auto-saved thing) i get the same as before, no change has been saved.

Hiroaki’s picture

Status: Needs review » Active

im making this active since its not working

liquidcms’s picture

Version: master » 6.x-2.7

i just tested AS with Clean URLS DISABLED and with AS 6.x-2.7 (no patches as this patch was committed long before the 2.7 release) and it works just fine.

Perhaps the issue (not the one being reported here though) is that it doesn't work when you are running your site as a subfolder, i.e. not www.mysite.com but as www.somedomain.com/mysite). Can't swear that isn't an issue as your change in #9 seems to be in that area. But if that changes fixes things then it should work.

I do not understand your sequence of events from this:

"However, it is populated by the previously "Saved" data and not the work in progress data in the form, so whenever you see the popup saying (view the auto-saved thing) i get the same as before, no change has been saved."

so hard to tell what's wrong.

Hiroaki’s picture

Status: Active » Closed (fixed)

Sorry, perhaps my problem of "However, it is -----" is due to CKeditor module's emulation failure.
I'm making this closed assuming the problem is on different module.