Upgrade stuck on Starting file permission check...

The upgrade seems to be getting stuck on Starting file permission check… We have set-up our file/folder permissions and checked owner they are all good. We have found that the page get stuck on the below on systemCheck.php

$files = uwFindAllFiles(getcwd(), array(), true, $skipDirs);

I have looked at this function within the uw_utils.php file and found that the upgrade page loads when i comment out return $theArray from uw_utils.php however this means that the files aren’t being checked.

Anyone else had this issue?

Upgrading from 7.10.7
Happened on php versions php5.6 & 7.

Did you get any error on your web server log? This is usually called php_errors.log

Also check upgradeWizard.log