Okay, so the problem is that the line does something like explode(args…)[1], which PHP does not support apparently. So I replaced with a temp variable for the return of explode, and then indexed it in the next line to get it to work. Had to do this in the file checker.jury.php too.
Thanks
On 29-May-2016, at 11:36 AM, Parth Mittal parth15069@iiitd.ac.in wrote:
Hi guys
We were running domjudge version 4.0 on Ubuntu 12.04, and over the weekend decided to upgrade 5.1. (I’m not the original maintainer, he has graduated from our institute). So the database upgrade scripts ran mostly fine. I had to change the shortname column fill line (in 4.0 -> 5.0) UPDATE `contest` SET `shortname` = CONCAT(`cid`, UPPER(SUBSTR(REPLACE(`name`, ' ', ''), 1, 10))), `public` = 1; since previous version did not generate unique value for contests with long common prefix. Further I commented out the line to upgrade to support full unicode (in 5.0 -> 5.1) because it refers to a file that I couldn’t find, and gave an error. So after this DB upgrade was complete.
Now for Apache conf, since we are still on 2.2, I didn’t find the a2enconf, and found in /etc/apache2/conf.d a symlink to the previous apache.conf. So I updated the symlink, and then commented out the apache2.4 parts of the new file. Is there something else I need to do?
Because when I run, I get 500s in the web browser. I also tried to look at the apache log file, and I got these errors Sun May 29 11:23:10 2016] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.23 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations [Sun May 29 11:23:17 2016] [error] [client 192.168.1.99] File does not exist: /var/www/contest [Sun May 29 11:23:19 2016] [error] [client 192.168.1.99] PHP Parse error: syntax error, unexpected '[' in /home/foobar/domjudge5.1/domserver/lib/www/print.php on line 126
Could you please advise on how to fix? I have a backup of the database from the 4.0 install, so I can even start the process again if I did something wrong earlier, but I would prefer not to do that since the backup is ~100 GB (because of large number of submissions).
Thank you Parth Mittal _______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel