See this screenshot:
See this screenshot:
That error code (13) means CUSTOM_CHECK_FILE_MISSING (see the file moodle/lib/environmentlib.php).
From looking at the code in Moodle 1.9, there are two custom check files: moodle/question/upgrade.php and moodle/lib/customcheckslib.php.
Can you please check that the file both of these files are present in their directories and are readable by your webserver by having the correct permissions.
thanks for offering help. 'question/upgrade.php' is there, but 'lib/customcheckslib.php' isn't. However, that file is also not present in the latest stable18 package. To solve this issue, we should look into 1.8's code.
In fact, Moodle 1.8 expects the file 'lib/customcheckslib.php' which does not ship with Moodle 1.8!
Providing it from the 1.9 bundle satisfies 1.8
This should be filed as a bug of 1.8.
Thanks Ken for your help!
I just upgraded that Moodle from 1.8.3+ to 1.8.4+ and the problem was no longer there. So 1.8.4+ works fine and does not require customcheckslib.php. Only 1.8.3 needs it.
I'm upgrading from 1.8.5 to 1.9.x and I get the same error!
However, copying 'lib/customcheckslib.php' from 1.9 back into 1.8 seems to work!
Hope that helps anyone else running into the same problem.
I'm installing version 1.9 for the first time an dI have the same problem. I have already checked that both files are present in my server. What can I do?
Thanks for your help.
I'm trying to replicate the problem - but the file is there in the download package and in CVS. Can I suggest that you please double-check permissions on the lib/customchecks.lib file, especially that the file is readable by the webserver user as this is what the code checks. If the problem still exists, try this:
- Open the file moodle/lib/environmentlib.php in your text editor.
- Option 1: Find line 550 and replace the text is_readable($file) with stat($file). Save the file and try again.
- Option 2: Find line 452 and remark that line out so that the call to the function which checks for the presence of the file is not done. Do this by adding two "//" at the start of the two lines so they look like this:
//$custom_results = environment_custom_checks($version);
//$results = array_merge($results, $custom_results);
Save the file and try again also.
Does that improve things?
I think you mean lib/customcheckslib.php, as you said in your earlier post.
I'm sorry, I wasn't specific enough. What I meant was that I thought you meant lib/customcheckslib.php instead of lib/customchecks.lib.
Checking your environment ...
We are checking if the various components of your system meet the system requirements
I downloaded the latest version - no upgrade. Is there a fix for this?
Thanks I had the same issue and using your option 3, of editing out 2 lines of code solved my problem, thanks.
I have the same issue "Error reading environment data (13)" and I can’t upgrade to moodle 1.9...
I checked the file "moodle/lib/environmentlib.php" and it contains some characters like this......
How am I going to fix this?
Thank you so much!