Installing and upgrading help

Unable to Login to Moodle

 
Picture of PSCMRCET ONLINE EDUCATION
Unable to Login to Moodle
 
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: -
Picture of Howard Miller
Re: Unable to Login to Moodle
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Incorrect version of PHP.

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

 
Average of ratings: -