I don't find courses in the category

I don't find courses in the category

by Pietro Tamburrano -
Number of replies: 3

I have inserted a course in a category but if i want see the course it isn't showed in the category. If i search the course with a key word it is showed. The count of course in the category is right.

Excuse me for bad english! I hope it is clear what is the problem.

Thank.

 

Average of ratings: -
In reply to Pietro Tamburrano

Re: I don't find courses in the category

by Zbigniew Fiedorowicz -
Go to your Administration/Variables page and set "Debug" to "Yes". What error messages do you get?

There was someone who had a similar problem, which was due to an error in the setup of his MySQL database server. See the following discussion: http://moodle.org/mod/forum/discuss.php?d=7581
In reply to Zbigniew Fiedorowicz

Re: I don't find courses in the category

by Pietro Tamburrano -
I have setted the Debug variable and the result is:

Can't create/write to file '/root/tmp/#sql_97d_0.MYI' (Errcode: 13)

SELECT DISTINCT c.* FROM mdl_course c WHERE c.category = '1' AND c.visible > 0 ORDER BY c.sortorder ASC

I have setted /root/tmp to 777 but the result is not changed.
Have you an idea?

Thank.
In reply to Pietro Tamburrano

Re: I don't find courses in the category

by Zbigniew Fiedorowicz -
In your config.php do you have:
$CFG->dbhost    = 'localhost';
If not, what is your setting?

If you do have 'localhost', what is the output of the command:
ls -ld /root/tmp

Another possibility is that the /root/tmp directory is located on a disk which is full or nearly full.  What happens when you try to copy a large file to this directory:
cp some_very_large_file /root/tmp/