I am trying to create a block, however, I am often receiving this error:
[25-Aug-2024 04:19:43 UTC] PHP Fatal error: Uncaught Error: Call to undefined function distance() in /home/example/htdocs/www.example.com/wp-content/plugins/fs-nearby-resorts-block/template-parts/fs-nearby-resorts-block-template.php:48
I have added the block to two acf posts. Both display well on the front end. 1 works in the back end and the other gives me the fatal error above. I have only used the block once in the post.