You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm putting together a search on a site of ours which includes a location search. The user has the option to put in a postcode and distance, and the site searches events in that radius. I also have a bunch of other search parameters which can be set so I'm building an array to search by.
When I put a postcode into the search form it's throwing the error deg2rad() expects parameter 1 to be float, string given which is on line 145 of MapService.php.
I understand it's a bit of an edge case and might be due to how I'm building my search query so if that's the case please let me know what I'm doing wrong.
Description
I'm putting together a search on a site of ours which includes a location search. The user has the option to put in a postcode and distance, and the site searches events in that radius. I also have a bunch of other search parameters which can be set so I'm building an array to search by.
The code in question looks like this:
When I put a postcode into the search form it's throwing the error
deg2rad() expects parameter 1 to be float, string given
which is online 145
ofMapService.php
.I understand it's a bit of an edge case and might be due to how I'm building my search query so if that's the case please let me know what I'm doing wrong.
Additional info
Feed Me | 4.1.2
Guest Entries | 2.2.4
Navigation | 1.1.14.1
Redactor | 2.4.0
SEO | 3.6.2
Stamp | 2.1.0
Stripe Payments | 2.1.6
Super Table | 2.3.1
Wordsmith | 3.1.1
The text was updated successfully, but these errors were encountered: