damien
1
Hello,
since a few months, my cronjob for recurring invoices and reminders give an error:
Warning: Unsupported declare ‘strict_types’ in /home/nursesat/public_html/facturatie/vendor/sabre/uri/lib/functions.php on line 1
Parse error: syntax error, unexpected ‘:’, expecting ‘{’ in /home/nursesat/public_html/facturatie/vendor/sabre/uri/lib/functions.php on line 22
I’m running php 7.2, so this should be correct.
can anyone help please?
hillel
2
What do you see if you run php -v
damien
3
how exactly do I do that?
hillel
4
You would need to SSH into the server.
Sometimes the web server and command line use different versions of PHP, I think that may be the case here.
damien
5
I just got the confirmation of the server that there is no problem there the gave me : http://facturatie.tisit.be/phpver.php
hillel
6
That confirms the web version, you’d need to run php -v
from the command line to confirm the CLI version.
damien
7
thank you !!! That was indeed the problem!
After a support chat with my host, they solved it!
hillel
8
Great to hear, thanks for letting us know!