I am upgrading a 3.4.4 (latest downloaded today) version to 3.5.1 latest version.
Without the debugger on I get an Error 500 before any of the update starts.
With the debuggers enabled I get the following error on screen:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/extapps/public_html/placestolearn/moodle1/lib/classes/component.php on line 1265
I tried changing the ; to a : and that generated this error:
Fatal error: Non-abstract method core_component::get_component_list() must contain body in /home/extapps/public_html/placestolearn/moodle1/lib/classes/component.php on line 1265
My Php version is 7.01
the lines of code starting at 1265 look like this:
public static function get_component_list() : array {
$components = [];
// Get all plugins.
foreach (self::get_plugin_types() as $plugintype => $typedir) {
$components[$plugintype] = [];
foreach (self::get_plugin_list($plugintype) as $pluginname => $plugindir) {
$components[$plugintype][$plugintype . '_' . $pluginname] = $plugindir;
Any suggestions will be very much appreciated. Thank you. Alan