Unable to Login to Moodle

Unable to Login to Moodle

by PSCMRCET ONLINE EDUCATION -
Number of replies: 1
When I tried to login with Admin credentials, getting this error.


This page isn’t working

moodle.pscmr.ac.in is currently unable to handle this request.

HTTP ERROR 500

I have verified the log files and found this information.

[05-Nov-2018 19:52:11 Asia/Kolkata] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/pscmrcet/public_html/pmoodle/lib/classes/component.php on line 1265


Error causing due to this code on line 1265.     
public static function get_component_list() : array {


Could you please help me how to solve this issue?

Average of ratings: -
In reply to PSCMRCET ONLINE EDUCATION

Re: Unable to Login to Moodle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Incorrect version of PHP.

Check the release notes for the Moodle version you are using. It'll be PHP 7-point-something.