XF 1.5 Error on adding admin on install


Well-known member
Install goes fine, but at the end when adding the admin I'm getting this error. Any ideas? Thanks.

Parse error: syntax error, unexpected 'return' (T_RETURN) in /var/www/vhosts/mysite.com/httpdocs/community/library/XenForo/Model/User.php on line 2397


Well-known member
Thanks, I deleted all the files in the community directory. Fresh download and upload of all the xF files, and I get the same error when adding the administrator.


XenForo moderator
Staff member
If you submit a ticket with FTP or cPanel log in credentials, as well as the MySQL database and admin details you are using for the installation, I can take a look.