thanks, I am using old version locally but on the hosting service I thought I was using PHP7. checking the settings it was in compatible mode, changed this to PHP7 and now working... very strange as since the hosting service upgrade to PHP7 the website stopped working...
now getting a lot of other errors on other pages but that's for another thread
thank you