backdrop-contrib / ip_geoloc

IP Geolocation Views & Maps for Backdrop CMS.
GNU General Public License v2.0
0 stars 2 forks source link

Drupal reference in plugin style map #3

Closed pgrayove-mcpl closed 1 year ago

pgrayove-mcpl commented 1 year ago

Warning: Use of undefined constant BACKDROP_ANONYMOUS_RID - assumed 'BACKDROP_ANONYMOUS_RID' (this will throw an Error in a future version of PHP) in ip_geoloc_plugin_style_map->option_definition() (line 36 of /app/modules/contrib/ip_geoloc/views/ip_geoloc_plugin_style_map.inc). Warning: Use of undefined constant BACKDROP_AUTHENTICATED_RID - assumed 'BACKDROP_AUTHENTICATED_RID' (this will throw an Error in a future version of PHP) in ip_geoloc_plugin_style_map->option_definition() (line 37 of /app/modules/contrib/ip_geoloc/views/ip_geoloc_plugin_style_map.inc).

Warning displays on views displays that are set to "map (Leaflet API, via IPGV&M)" format. Cannot open the format settings in the view with this format enabled. The map will not display in the view.

Getting this error on a Backdrop site converted from a D7 site running on PHP 7.4.

laryn commented 1 year ago

@pgrayove-mcpl Would you like to submit a PR that changes both *_RID constants to *_ROLE? Those constant names changed from Drupal to Backdrop with the move to configuration management, since the role ID was removed in favor of the role name.

pgrayove-mcpl commented 1 year ago

Sure.