Hi, we have recently been having problems with moodle on our college server, everything was working fine then errors started to happen with the "Display a directory" option on any page. When adding all the details for the directory and going to add it went to "Page cannot be displayed" error with no details on why it came.
I narrowed it down to a problem with the "Courses/mod.php" file, on line 138 this command is entered:
"$return = $addinstancefunction($mod);"
This vairable when set is set as null.
If i seperated the two vairables each have a value.
The next part of the mod.php file checks to see if that vairable is null or not, if its null it goes to open "moderr.html" if it exists, however this file does not exist in and mod directory.
If i run the same thing on our test server the resource is added no problems, there are no changes in the settings between the servers.
Has anyone else had this error and do you need any more information.
Server:
Windows 2003
MySQL 5
IIS 6
Not sure on php version.
Thanks alot
Chris Jackman
Wigan And Leigh College.