Error on Invite

When trying to invite a someone to the site by using the invite function I get this error:

Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /Path/to/mysite/domain/vendor/zendframework/zend-mail/src/Header/ListParser.php on line 10

I have searched the forum and googled but cannot find a fix. Any ideas?

I have reuploaded files etc.

 

  • Which version of Elgg? I suspect you might have an Elgg 3 installation... If that's the case, is it rc1 or a composer-installed site? Which version of PHP? Do you try to send an invitation to 1 recipient or to more than one (one mail address per line). Any special characters in the mail address?

     

  • I have a fresh install of elgg 2.3.8.

    I used regular install uploaded files and ran install (can't get the hang of composer)

    php version 5.6

    sending to one email or trying to create by admin or trying to register throws the same error.

    The host tells me zend is installed and configured properly (arvixe.com)

    No special characters in the email address.

    I will re-upload files today and see what happens.  I do not want to do a clean install as I had already started putting in contents. http://wexpat.net

     

  • Found out what the problem was. My addon domain was not inheriting the php version from the main domain so I had to add the command "AddType application/x-httpd-php56 .php" to my .htaccess file. Works now.