This problem suddenly arose recently. Eventually tracked it down to the PHP version I was using. I had php 7.1.3 was was designated as ‘Leading (edge)’. Went back to 5.6.30 which was designated as ‘Stable’ and all is well on 3 sites.
May be coincidence but it occurred only after the latest WordPress reelase.