Edit View: opening Format Settings will result in ajax error instead of opening the settings overlay

Created on 15 July 2023, over 1 year ago
Updated 11 March 2024, 10 months ago

Problem/Motivation

I try to build a View at /admin/structure/views/add . Right next to where I choose the format of the view there is the Formats Settings. Trying to open the Settings wont produce an overlay but an ajax error.

Steps to reproduce

I add View at /admin/structure/views/add or edit one at /admin/structure/views/view/test . I use all the default and just want a view from Content Fields of a given Content Type with one Page.

First I use the "unordered list" Format, because I first have to add a Field with geo-info before I can set the Views Format to "Geofield Google Map". Once I do this, I am no longer able to open the Settings panel.

The error is described in the browsers log console as:

Drupal.AjaxError {message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 20…age_1/style_options\nStatusText: OK\nResponseText: ', name: 'AjaxError'}
message
: 
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /admin/structure/views/ajax/display/test/page_1/style_options\nStatusText: OK\nResponseText: "
name
: 
"AjaxError"
[[Prototype]]
: 
Error at https://.../sites/default/files/js/js_GMQ4J6lPypVyPmCJOvvLtXHPx8EGpD-ZH00mIyp1v74.js:2426:32 at https://.../sites/default/files/js/js_GMQ4J6lPypVyPmCJOvvLtXHPx8EGpD-ZH00mIyp1v74.js:2976:3
constructor
: 
Æ’ (xmlhttp, uri, customMessage)

Proposed resolution

Fix the ajax error i.e. make the view available.

The config code for the view is in https://pastebin.com/ituVxuxH .

💬 Support request
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇩🇪Germany ProperCroc

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

Comments & Activities

  • Issue created by @ProperCroc
  • 🇩🇪Germany ProperCroc

    Otherwise, thanks for all the excellent work on this module, it really makes life a lot easier!

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇮🇹Italy itamair

    Why ar you posting this here, in the Geofield Map module?
    and why did you set this as Major Bug.
    There is nothing in your description that related your issues to the Geofield Map module and that prove that you have found a general bug in this module.

    Everything looks much related to your personal Drupal setup/use case, and not clearly caused by a bug of the Geofield Map module.

    I am closing this as "Cannot reproduce".
    Feel free to re-open but only providing clear details your issues are caused by the Geofield Map module, and mark this as a Bug ONLY if you have and cabn give clear evidence of that ...
    (if something doesn't work on your side it is not given it is a general bug in some module ... especially if no body else is reporting a similar issue).

  • 🇩🇪Germany ProperCroc

    I thought it was an error because it only appears once I set the the Views Format to "Geofield Google Map". Once I do this, I am no longer able to open the Settings panel, as I stated above.

    But nevermind, I found a workaround. Not sure if the problem still persists.

    Sorry for bothering you and thanks for the good work on the module.

  • 🇮🇹Italy itamair

    No problem @ProperCroc ... you didn't bother, and is always good to report your own issues, if you need support.
    Only thing is not to mark them as Bug just because something doesn't work as expected in our own environment.
    Reporting a Bug needs some more detailed documentation and evidence of it, that it could apply on a specific use case but on a general (reproducible) basis. Otherwise it is just a Support Request.

    I strongly suggest you to further inspect you scenario, and try to better / properly get what and why was happening to you.
    Proper debugging (and mostly with xdebug in this PHP/Drupal context) is one of the best ways to improve your Drupal coding skills and tech control of your web app.

  • 🇺🇸United States smd_ksu

    Just wanted to add in case anyone runs into this. The Claro admin them was the issue for me with the Map format in Views. Switching themes allowed the ajax to work again.

Production build 0.71.5 2024