After installing the module, when I go to my Configuration page /admin/config, it throws this error:

Error: Using $this when not in object context in nearby_places_search_requirements() (line 35 of modules/contrib/nearby_places_search/nearby_places_search.install).

I see that in nearby_places_search.install in function nearby_places_search_requirements(), there are various references to $this, but of course that place is not an object context:

// line 35
'title' => $this->t('Nearby Places Search'),
// line 37
'description' => $this->t('Google Maps API key or Client ID was not found. As of 2016/06/22, keyless access is no longer supported and it may impact rendering of maps. For more information visit: <a href="@link">@link</a>', ['@link' => 'http://googlegeodevelopers.blogspot.ca/2016/06/building-for-scale-updates-to-google.html']),
// line 43
'title' => $this->t('Nearby places marker library'),
// line 45
'description' => $this->t('Nearby places search marker library could not be found. You need to download <a target="_blank" href="@library_exteranl_path">Marker library</a>, extract the archive and rename the folder as "nearby_places_search.markers". Place the marker library directory in the root folder\'s <b>/libraries</b> directory on your server.', ['@library_exteranl_path' => 'https://github.com/ashwinshaharkar/nearbyplace.markers.library']),

This is what I get on /admin/config:

nearby_places_search_error_after_installing.png

Comments

camilo.escobar created an issue. See original summary.

camilo.escobar’s picture

Issue summary: View changes
camilo.escobar’s picture

Issue summary: View changes
bapi_22’s picture

Hi Camilo,

$this->t() is already removed in 8.x-2.x branch, Please wait to merge, or you can pull the code from the 8.x-2.x branch.

Thanks,

ashwinsh’s picture

Status: Active » Fixed

Thank you @camilo.escobar, and @bapi_22

ashwinsh’s picture

Status: Fixed » Closed (fixed)