Created on 16 August 2023, 11 months ago
Updated 17 March 2024, 3 months ago

Problem/Motivation

Steps to reproduce

On a fresh clean Drupal 9.5.8 install with editable field version 1.0.1:
a view on content type "simple page"
with title (format editable fields)
and exposed filter (on Node ID)
works fine until

Ajax has been enabled under views advanced settings
use Ajax : yes

A 404 Ajax error is thrown after submit

{
  "message": "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 404\nDebugging information follows.\nPath: /views/ajax?nid=1&ajax_form=1\nStatusText: Not Found\nResponseText: {\"message\":\"\"}",
  "name": "AjaxError"
}

The changes are then no longer saved.

A notice:

without "use Ajax" is the action url of the form
"/path-to-view" (i.e. the path that was set in the view.

with "use Ajax" is the path then the action is the url of the form
"/views/ajax"

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany zbberlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @zbberlin
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany zbberlin
  • Assigned to kpoornima
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kpoornima

    working on it

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kpoornima

    @zbberlin Did n't get ajax error. it is working fine after enable ajax in view. @zbberlin After enable ajax please clear cache and check.

    Before updating png

    After Updated png

    Please refere video also

  • Issue was unassigned.
  • Status changed to Needs review 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine gilmord ๐Ÿ‡บ๐Ÿ‡ฆUkraine

    @zbberlin if clearing cache does not help - please share the error log (not the ajax error text, but the actual log - in the watchdog or in your server logs)

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany zbberlin

    thanks for your help!

    here is the watchdog log:

    
    Type	page not found
    Date	Thursday, August 24, 2023 - 11:03
    User	admin
    Location	https://master-6zecc6bzaqy2cv2hnwsixtccemehuz50.tugboatqa.com/views/ajax?_wrapper_format=drupal_ajax&ajax_form=1&title=test
    Referrer	https://master-6zecc6bzaqy2cv2hnwsixtccemehuz50.tugboatqa.com/test
    Message	/views/ajax?title=test&ajax_form=1&_wrapper_format=drupal_ajax
    Severity	Warning
    Hostname	172.18.111.2
    Operations
    
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany zbberlin

    The error appears when a
    exposed filters
    was executed and at the same time Ajax is active.
    Then the 404 error appears in the Ajax request

    see my screencast

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sumit-k

    Replicated the mentioned issue, and it appears that enabling AJAX in Views is causing a conflict with the views exposed filter submit functionality. This conflict arises due to the AJAX form action path being overridden, which in turn affects the ability to perform updates.

    Here are the steps to reproduce the issue:

    1. Create a view page that includes the title field and select the "Formatted editable" option.
    2. Add the node ID field to the filter criteria and expose it.
    3. Enable AJAX for the view.
    4. Visit the view page and apply filters.
    5. Notice that the update functionality is no longer working due to the form action path being overridden.
  • Status changed to Active 8 months ago
  • I am unable to click on Update button at all.
    I have tried on Edge first and got this popup error:

    and then I tried with google chrome. I was able to click update button, but after I refreshed page it was reverted. Once I tried to clear cache, again the same popup also on chrome.

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria maxilein

    It seems to be specific to the latest dev.
    On D10.1.6 with 1.0.1 it works..

    While after I installed the dev version. I had strange errors killing the site... Sorry that I cannot reproduce it any better.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada erichomanchuk

    It does not work with 1.0.1 on Drupal 9.5.11. To be more precise it works on a view with AJAX turned on but as soon as you use a filter or a sort on the view via ajax it no longer works the error in the log is "Page not found" when trying to edit a field.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom wturrell

    I am also seeing this, not with the Editable Fields module, but using a (custom written) view bulk operation accessed via a Webform submission listing. So I'm interested to know the root causeโ€ฆ

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia rabindrakumar

    Am also facing the same. Ajax Enabled Views + EditableFields in D-10 is not working. Tried with 1.0.2 / Dev version.
    Any update on this issue?

Production build 0.69.0 2024