Page 1 of 1

Error running installer : PHPMailer.php on line 304

Posted: Fri Aug 03, 2018 2:05 pm
by PbxKid
Dear, users

I just downloaded the script and upload all the files to my server, but when I run the installer I get the following error :

Parse error: syntax error, unexpected '[' in /home/public_html/lib/PHPMailer/PHPMailer.php on line 304

Any idea why this happens?

Thank you very much!

Re: Error running installer : PHPMailer.php on line 304

Posted: Thu Sep 20, 2018 1:46 pm
by bitfreak
Maybe try updating to the latest version of PHPMailer: https://github.com/PHPMailer/PHPMailer/

Replace the files in /lib/PHPMailer/ with the files from the src folder of PHPMailer.

If that doesn't work I would suggest trying a different version of PHP.