Page MenuHomePhabricator

PHP Parse error during update_monuments.sh
Closed, ResolvedPublic

Description

I found the following when looking in the logs.

PHP Parse error:  syntax error, unexpected '[' in /data/project/heritage/heritage/erfgoedbot/populate_adm_tree.php on line 42
PHP Parse error:  syntax error, unexpected '[' in /data/project/heritage/heritage/api/includes/StatsBuilder.php on line 42
Parse error: syntax error, unexpected '[' in /data/project/heritage/heritage/api/includes/StatsBuilder.php on line 42

Event Timeline

Is this possibly related to the syntax change array();->[];

Was it maybe caused by resolving T134764? Was this in that case related to the php version issue?

Yeah, My money is on this PHP syntax 5.5 executed on a 5.3 worker. I heard @yuvipanda would be able to help us with that?

How is this being executed? Cronjob? I am pretty sure this is a php 5.5 / 5.3 issue, you can fix it by adding '-l release=trusty' to jsub.

How is this being executed? Cronjob? I am pretty sure this is a php 5.5 / 5.3 issue, you can fix it by adding '-l release=trusty' to jsub.

A cron job executing a jsub. I have added the -l release=trusty, let’s see how that goes :)

Did that work ok? I highly suggest adding -l release=trusty to all your jobs :D

This has been resolved in the latest update log