Failure to upload to r4wifi using template

dear forum
I am not only a beginner ,but , also very old .
this is my first post attempt .
all attempts to upload the template for r4wifi fail , showing the following error message :
'class CWiFi' has no member named 'ping' int
ping_result = WiFi.ping("time.arduino.cc");
i have three new genuine unor4wifi boards and all of them show the same error
i cant find any reference to this problem hence this plea for help
apologies for errors in etiquette
bds76

Welcome. Please read the pinned post re 'How to get the most from the forum'
BTW, I am 83.

Welcome to the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Please post your full sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination

Hi @bds76.

There are many templates. Please provide the full name of the specific template you are using.

Is there more text than that? If so, please copy and paste all the text in a reply on this forum topic.