I am trying to upgrade from a 3.4.1 to 3.4.2+ moodle version. It is a working installation. I have now tried twice to do the upgrade, with a roll-back to the older version in-between. The older version works, but when I try to run the new instance, it gives the following message:
This page isn’t working
eptdev.eptglobal.co.za is currently unable to handle this request.
I have asked the hosting company to check the log files (Ido not have root access) and they reported as follows:
Hi,
Upon checking I could see the following error message in the logs:
====
[28-Apr-2018 11:08:59 UTC] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/eptgldwj/public_html/eptdev/lib/classes/component.php on line 1266
[28-Apr-2018 11:09:00 UTC] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/eptgldwj/public_html/eptdev/lib/classes/component.php on line 1266
[28-Apr-2018 11:10:18 UTC] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/eptgldwj/public_html/eptdev/lib/classes/component.php on line 1266
[28-Apr-2018 11:13:13 UTC] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/eptgldwj/public_html/eptdev/lib/classes/component.php on line 1266
====
Please consult you developer and check for the issue. In case of any further requirements do let me know.
Also, I could see some cgi errors. Hence I have tweaked the values to prevent the same.
Warm Regards,
Ashmita G
Afrihost.com
The line 1264 - 74 :
* @return array an associative array of components and their corresponding paths.
*/
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;
}
}
It seems to be a mod issue, I have checked that the mods are all the same, old and new.
Would anyone be able to assist, please.
Jan