Closed (fixed)
Project:
Autosave
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 19:35 UTC
Updated:
4 Dec 2010 at 10:10 UTC
Jump to comment: Most recent file
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?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | autosave-clean-url.patch | 948 bytes | edmund.kwok |
Comments
Comment #1
liquidcms commenteddid 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.
Comment #2
voipfc commentedI 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?
Comment #3
liquidcms commentedif 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?
Comment #4
voipfc commentedA 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.
Comment #5
voipfc commentedIt 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.
Comment #6
liquidcms commentedhmm.. 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.
Comment #7
edmund.kwok commentedPatch to fix clean urls ;)
Comment #8
liquidcms commentedthanks 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
Comment #9
Hiroaki commentedI'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.
Comment #10
Hiroaki commentedim making this active since its not working
Comment #11
liquidcms commentedi 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.
Comment #12
Hiroaki commentedSorry, 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.