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).

CommentFileSizeAuthor
#10 ajax-2176681-10.patch708 bytesclaudiu.cristea
Cattura.PNG40.47 KBgiufog
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

interdruper’s picture

Have 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.

interdruper’s picture

Status: Active » Needs review
gcb’s picture

Status: Needs review » Postponed (maintainer needs more info)
blur702’s picture

I 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

kinshuksunil’s picture

Version: 7.x-1.x-dev » 7.x-1.1

Was 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.

bazzmann’s picture

Hi 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.

weavie’s picture

#6 worked for me.
thanks bazzmann.

interdruper’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

#6 seems the way to follow. It would be nice to quote it in the documentation of the module.

GuyPaddock’s picture

Status: Reviewed & tested by the community » Active

This 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.

claudiu.cristea’s picture

Title: Ajax » Token browser creates to meny post variables
Version: 7.x-1.1 » 7.x-1.x-dev
Component: Code » User interface
Priority: Major » Critical
Status: Active » Needs review
Issue tags: -an ajax http error occurred. http result code 200
FileSize
708 bytes

Removed also the fieldset wrapper as now it has lost its scope.

claudiu.cristea’s picture

Title: Token browser creates to meny post variables » Token browser creates to many post variables
RdeBoer’s picture

Good one Claudiu!

Committed.

Available in Leaflet 7.x-1.x-dev and in 7.x-1.2 or later when released.

Rik

RdeBoer’s picture

Assigned: Unassigned » RdeBoer
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.