It was the new pins.h that caused my errors. If I replace it with the old one it works. The new one causes the errors above.
As described earlier, this code made no sense to me:
IF ESP8266 is defined, so will WIFIMANAGER. So I changed the line to below;
//#ifndef WIFIMANAGER //this line may be the pins.h problem??======================================
#ifdef WIFIMANAGER //this added to fix problem======================================
It did allowed me to continue and I also found LCD errors. I am working on those now.