Error running installer : PHPMailer.php on line 304

Look here if you're having trouble with BitShop
Post Reply
PbxKid
Posts: 1
Joined: Fri Aug 03, 2018 1:59 pm

Error running installer : PHPMailer.php on line 304

Post 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!
User avatar
bitfreak
Site Admin
Posts: 98
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

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

Post 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.
Post Reply