Parse error when using command line

Good morning,

after a longer time using phplist I sent the next newsletter, and wanted to start processing the queue from command line. Then I got an error message

Parse error: syntax error, unexpected ‘{’ in /homepages/33/d31196565/htdocs/lcn_landingpage/lists/admin/checkprerequisites.php on line 47

So I upgraded to the last version (3.4.7), after removing the complete previous installation. But I dont get rid of the error message. Processing the queue in a browser works, but very slowly. Why does this happen?

Rainer

@rainerboettchers Possibly the command line php version is different to that for the web server. Can you check the php version

It’s PHP 7.2.24. The error is the opening bracket of a try statement. So I first thought the PHP version was lower than 7.

Rainer

Grrrrrr … you are right, thanks. The command line version is 4.4.9. That’s the reason why try gives an error.

Thank you very much, I will fix it.

Rainer

Ok, now the script runs ok. But the phpmail has problems. For all mails it reports:

2019-11-12 09:50:29 p7956262 zQxAlh-1iAJV00qpX-00KomO |< – /usr/sbin/sendmail -t -i -fbounce@lcn.eu
2019-11-12 09:50:29 p7956262 zQxAlh-1iAJV00qpX-00KomO <= S=bounce@lcn.eu SZ=443226 D=0 SID=31196565
2019-11-12 09:50:29 p7956262 zQxAlh-1iAJV00qpX-00KomO ** info@xxxxxxxx.de msmtp.kundenserver.de[172.19.35.7] 550 Requested action not taken: mailbox unavailable invalid DNS MX or A/AAAA resource record

Sending a mail with a small script testmail.php works fine.

Rainer

Oooops, and PHPlist version is 3.4.8-RC1, not 3.4.7.

Rainer

Sorry I don’t know. You should raise this with the hosting company.