This is the first time in more than three years of using Moodle that I have encountered this error. I created a new course a month ago and now when I try to add a forum or edit a topic heading I get this error after I hit the save button."The server encountered an internal error or misconfiguration and was unable to complete your request."
Here is what is listed in the server's error log:
[Tue Mar 27 05:24:57 2007] [error] [client 202.70.239.85] File does not exist: /home/eflwesl/public_html/500.shtml
[Tue Mar 27 05:23:15 2007] [error] [client 61.197.103.151] File does not exist: /home/eflwesl/public_html/500.shtml
[Tue Mar 27 05:21:53 2007] [error] [client 61.197.103.151] File does not exist: /home/eflwesl/public_html/404.shtml
I cannot understand how the file does not exist as I am creating it by hitting the save button, am I not? Puzzled and stressed with the new semester starting soon. Does anyone have any suggestions?
Richard
Hi Richard,
I have two suggestions:
1) Find id of your course (for example http://yourmoodle/course/view.php?id=6 ) and check that permissions of moodledata/6 (id) folder and files there have not changed for some unknown reason
2) It is possible that you have either saved too long text (with html code) to some field of mdl_course table of your database or there are some other errors . If you have phpmyadmin check that table and data of that course id that has problems, edit it or try to repair it.
Next thing, I would try and track down what actually happened. Make sure debugging is turned up full in the Admin pages and that php logging is on (see http://docs.moodle.org/en/Installation_FAQ#Why_is_a_particular_page_blank_or_incomplete.3F). Then try it again, look for additional errors and re-check the logs. Keep your fingers crossed that something shows up.
Just a thought - there's no chance you've run out of disk space?
I'd be surprised if the permissions had got borked on a particular part of the moodledata tree - but you never know. I guess it might also be a database issue rather than the actual saving of the file. It's a strange one!
Another thought.... have you tried loading those particular files that cause the problem into a different course. Have you proved that it really is the course and not the files? For instance, Moodle can be a bit hit and miss about reporting files that are too big.
A couple of days a go I tested Elena Ivanova's problem http://moodle.org/mod/forum/discuss.php?d=63175
and my database and browser crashed. The reason was that I copied a couple of pages from Word, pasted it to a Wiki field and saved. I had to clean it from database table because the link itself did not work anymore...
I could imagine that this is a little bit same sort of a problem (if permissions are ok).
Opne to any further suggestions. Perhaps an upgrade is in order.
If you get errors from all your courses one possible reason is changed (name) server (you could ask from your host if they have made any major changes, upgrading etc).
...and if your host has not made any changes there is still left:
- some .htaccess file or local php.ini file (but if you have not moved or created them it might not be the reason)
- some corrupted file or script (you could replace/upload files of module forum with the original ones) or database error (run repair with phpmyadmin)
Thanks for the suggestion.