- Issue created by @erwangel
I have a simple case: create a map of all user's residence city. "Residence city" is a reference field in user's entity linked to a Cities taxonomy who records the geocoded data. There are about 1300 user's with a residence city.
I can create the map and preview it inside Views with no problem. But when I display either the Views page or the equivalent Views block in a page's layout builder I get a 500 Internal Server Error. In the server logs, there is nothing in php logs. However in Apache logs I get "Premature end of script headers: index.php" followed by "Error parsing script headers" and "Error dispatching request to ".
If I set a "Geofield proximity" filter and I expose it, I can play (inside Views preview) with the proximity distance but only until about 300 cities are displayed. Further the browser crashes to a wsod "500 Internal Server Error". The same thing displaying it as a block with Layout builder I can only get about 130 cities. Greater distances giving more cities make the browser crash.
Why I can display all cities (1300) in Views preview and not in page display ? Why with proximity filter I can only display a maximum of 300 cities in preview and even less (130) in display ? It's like something makes the browser crash. A too long header ?
Tech info: Drupal (10.5.1) and all modules are in their latest version. Php 8.3 (php-fpm). Server configuration: Haproxy - Varnish - Apache. Tested with Firefox as logged user and MS Edge as anonymous user.
- Create a City taxonomy and add a geofield (Geocode from an existing field "Title")
- In admin/config/people/accounts/fields add a field add a Entity reference of type taxonomy term and link it to Vocabulary: City
Create the users (Devel Generate ?)
Create a Views page and block
Format: Leaflet Map
Show: Fields
Add relationship "field_user_current_city: Taxonomy term"
Add fields User's name
Leaflet settings:
Data source: Taxonomy term: Geofield
Entity source: Views base entity (Users)
Active
10.3
Code