Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Autosave is not working for me. I have a multi-language site with different content types. Some have WYSIWYG and some just title and image field. But autosace is not working. In firebug I can see the ajax request for the autosaving and if gets a 403 from the server. Tested as user 1 och normal user.
Have tested the solution in #1768660: Access denied on Log Messages but that did not help me in version 7.
I will update this issue the following days with further finds. Will test clean multi-language site. And try to find a solution.
Comment | File | Size | Author |
---|---|---|---|
#8 | autosave-403_for_ajax_requests-2069235-8.diff | 651 bytes | lklimek |
Comments
Comment #1
kristofferwiklund CreditAttribution: kristofferwiklund commentedWorks with Drupal 7.23 Minimal installation. So now I just need to find the parts that break it. So I have a good version and a bad version. Lets the debugging start. :)
Comment #2
yvesvanlaer CreditAttribution: yvesvanlaer commentedHey kristofferwiklund, found something?
Comment #3
yvesvanlaer CreditAttribution: yvesvanlaer commentedFor some reason menu items is FALSE.
in autosave.module line 264
Adding "$menu = TRUE;" fixes the issue. But I can't figure out why this is turning false.
Anybody has a clue how to debug?
Comment #4
kristofferwiklund CreditAttribution: kristofferwiklund commentedI did have time. This spare time project got low priority then a customer project got high priority. Will try to find some time for it.
Comment #5
RemovE CreditAttribution: RemovE commentedTry in autosave.module on line 408 remove one '=' from '==='
Change:
to:
Comment #6
kristofferwiklund CreditAttribution: kristofferwiklund commentedYes. That did the trick. Now the autosave seems to be working in my limited testing.
Time to but the customer to the test.
Comment #7
lklimek CreditAttribution: lklimek commentedSolution in comment 5 solves the issue. Please see attached patch.
Comment #8
lklimek CreditAttribution: lklimek commentedFixed patch
Comment #9
dariogcode CreditAttribution: dariogcode commentedI have the same issue. The error dissapear after apply the patch but I'm receiving a new error: "Uncaught TypeError: Cannot read property 'formid' of undefined". I think the conflict is with image ajax calls, if I don't use this field the error dissapear and everything works fine. If this isn't related I can open another issue.
Comment #10
czigor CreditAttribution: czigor commentedCommitted, thanks!