This question has been answered by andytough. See the first response.
It could be something in the site cache or a plugin that's being triggered by setup.
Try manually deleting all files in the core/cache directory. If that doesn't work, try disabling all plugins by right-clicking on them in the Elements tree and then clear the cache files again before running setup.
That error could be caused by JavaScript code that has something like '[[[' in it and isn't inside cData tags, though why that would affect 2.7 and not 2.6.5 is a mystery.
You might watch the Network tab in Chrome Dev. Tools to see if you can catch a connector returning something from a processor that MODX can't parse.
Parse error: syntax error, unexpected '[' in /home/finca/public_html/test/core/model/modx/modx.class.php on line 283