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.
Hello to all
I installed the following modules
- "Leaflet (7.x-1.x-dev)"
- "IP Geolocation Views & Maps (7.x-1.x-dev)"
- "More Leaflet Maps (7.x-1.x-dev)"
- "Leaflet Markercluster (7.x-1.x-dev)"
- "Panel"
In "admin / structure / types / manage / shops / display / full" when I try to edit the field with leaflet gives me the following error: "an ajax http error occurred. 200 HTTP result code" and I can not do anything .
Thanks in advance for any advice.
(Sorry for my bad English).
Comment | File | Size | Author |
---|---|---|---|
#10 | ajax-2176681-10.patch | 708 bytes | claudiu.cristea |
Cattura.PNG | 40.47 KB | giufog |
Comments
Comment #1
interdruper CreditAttribution: interdruper commentedHave you tried the suggested action in the error message ?:
Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini
I suggest you to set it to 1500. This is sometimes required by heavy admin pages, like some of the ones used by Commerce module, o precisely this one from Leaflet.
Comment #2
interdruper CreditAttribution: interdruper commentedComment #3
gcbComment #4
blur702I also ran into this problem.
Image of Error
I am using Geofield, address, and (of course) Leaflet.
I increased the max_input_vars to 5000 and still received this error.
If it helps, I made a new content type with a geofield and leaflet map display and received the same error
Comment #5
kinshuksunil CreditAttribution: kinshuksunil commentedWas there any fix for this?
I am trying to create a view with a leaflet map to show listings of addresses, and faced the same error for max_input_vars.
The problem persists, even when I updated the max_input_vars to 5000 from the default 1000.
Comment #6
bazzmann CreditAttribution: bazzmann commentedHi there,
it seems to be a problem from the included new token feature in Leaflet module. We solved using the module https://www.drupal.org/project/token_tweaks and setting the depth parameter to "1" (that's to say that the system load just the first level of token list).
For little project it could work also with greater level number, instead of "1".
With this solution you don't need to change "max_input_vars" value (we still are using 1000).
Hope it helps,
M.
Comment #7
weavie CreditAttribution: weavie commented#6 worked for me.
thanks bazzmann.
Comment #8
interdruper CreditAttribution: interdruper commented#6 seems the way to follow. It would be nice to quote it in the documentation of the module.
Comment #9
GuyPaddock CreditAttribution: GuyPaddock commentedThis is not RTBC -- no patch was supplied (see: https://www.drupal.org/issue-queue/status). Token tweaks is a workaround for the symptom of the actual defect.
Leaflet should NOT be sending down so many variables in POST.
My recommendation is that if this is caused by the Token browser, then move the Tokens to the pop-out Token browser UI. This would also help with the slow load time of the settings for Leaflet fields since AJAX would not be sending down so many things to render.
Comment #10
claudiu.cristeaRemoved also the fieldset wrapper as now it has lost its scope.
Comment #11
claudiu.cristeaComment #12
RdeBoerGood one Claudiu!
Committed.
Available in Leaflet 7.x-1.x-dev and in 7.x-1.2 or later when released.
Rik
Comment #13
RdeBoer