After installing the software (replacing old Moodle folder with new folder and copying config.php over) we went to the WWW browser to initiate the conversion and got a blank screen. A little searching here and we pasted in code to make it display errors. Tried again and this is what we got:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/html/moodle/lib/adminlib.php on line 3517The line being referenced in the error message is the bold line below:
/** * Enrolment manage page */ class admin_enrolment_page extends admin_externalpage { public function admin_enrolment_page() {which doesn't look so bad to me. I did a search here and found multiple entries reporting the same parse error in different situations and the solution is generally to upgrade the version of PHP, which I requested in May when I requested upgrading to Moodle 1.9. If I had control, I would do the PHP upgrade before coming here, but as you can surmise, I do not have any control.
global $CFG; parent::admin_externalpage('enrolment', get_string('enrolments'), $CFG->wwwroot . '/'.$CFG->admin.'/enrol.php'); }
After running into this problem, I went back to Site Administration-->Server-->Environment and noticed that there is an option to update component. I did that and it threw me some hints, but not enough for me to know what is going on. Here are the two hints it gave me:
php_extension | xmlrpc | is recommended to be installed/enabled | Check |
Other checks |
Error reading environment data (13) | Error |
We have fixed the "Other checks" error following the instructions posted here and are checking on the possibility of adding the recommended xmlrpc extension (it is not part of our installation of PHP). However, it does not appear that a missing recommended extension should be responsible for this problem.
The following are the important environment details:
Redhat Linux 2.6.9-55.0.2.ELsmp
PHP Version 4.3.9
Apache/2.0.52
MySQL 4.1.20
Any and all help would be appreciated in getting these problems solved!
Thank you,
Richard