Hola Paulo :
Por alguna razón está tratando de crear un directorio en un nivel (obviamente los usuarios no tenemos cómo ingresar a esta área, solo administramos del directorio public_html hacia abajo..)
/home/ontareor/upload/66
fuera del ámbito de moodle
/home/ontareor/public_html/grace/ (tu directorio de moodle se llama : grace y está debajo de public_html, que es el directorio en donde se colocan las aplicaciones web)
Fijate en la función que está dentro del programa : moodlelib.php
=================
function make_upload_directory($directory, $shownotices=true) {
/// $directory = a string of directory names under $CFG->dataroot
/// eg stuff/assignment/1
/// Returns full directory if successful, false if not
global $CFG;
$currdir = $CFG->dataroot;
umask(0000);
if (!file_exists($currdir)) { aquí verifica si no existe ya ese directorio - nivel superior
if (! mkdir($currdir, $CFG->directorypermissions)) { aquí evalua si lo puede crear
if ($shownotices) {
notify("ERROR: You need to create the directory $currdir with web server write access");
}
return false;
}
}
$dirarray = explode("/", $directory);
foreach ($dirarray as $dir) {
$currdir = "$currdir/$dir";
if (! file_exists($currdir)) { aquí verifica si no existe ya ese directorio
if (! mkdir($currdir, $CFG->directorypermissions)) { aquí evalua si lo puede crear
if ($shownotices) {
este es error que te sale : notify("ERROR: Could not find or create a directory ($currdir)");
}
return false;
}
@chmod($currdir, $CFG->directorypermissions); // Just in case mkdir didn't do it
}
}
return $currdir;
}
================
Revisa en tu config.php de tu moodle si todo está OK..
//=========================================================================
// 2. WEB SITE LOCATION esto dependera si es local o esta en un hosting
//=========================================================================
$CFG->wwwroot = "http://".$_SERVER["HTTP_HOST"]."/grace";
$CFG->wwwroot = 'http://tudominio.xxx/grace';
Elige uno de los dos o debe de ser algo muy parecido
//=========================================================================
// 3. SERVER FILES LOCATION
//=========================================================================
// Next, specify the full OS directory path to this same location
// Make sure the upper/lower case is correct. Some examples:
//
// $CFG->dirroot = 'c:\program files\easyphp\www\moodle'; // Windows
// $CFG->dirroot = '/var/www/html/moodle'; // Redhat Linux
// $CFG->dirroot = '/home/example/public_html/moodle'; // Cpanel host
Elige uno de los tres o debe de ser algo muy parecido
$CFG->dirroot = '/web/htdocs/www.tudominio.xxx/home/grace';
$CFG->dirroot = '/home/ontareor/public_html/grace';
$CFG->dirroot = 'D:\xxx\xampp\htdocs\moodle';
//=========================================================================
// 4. DATA FILES LOCATION
//=========================================================================
// Now you need a place where Moodle can save uploaded files. This
// directory should be readable AND WRITEABLE by the web server user
// (usually 'nobody' or 'apache'), but it should not be accessible
// directly via the web.
//
// - On hosting systems you might need to make sure that your "group" has
// no permissions at all, but that "others" have full permissions.
//
// - On Windows systems you might specify something like 'c:\moodledata'
Puede haber algo muy similar - solo una de las tres opciones (no se como de llama tu directorio en donde tienes la data de los cursos y lo que envian los docentes y alumnos, asumo que de llama gracedata - el cual debe de tener permisos 777:
$CFG->dataroot = '/web/htdocs/www.tudominio.xxx/home/moodledata';
$CFG->dataroot = '/home/ontareor/public_html/gracedata';
$CFG->dataroot = 'D:\xxx\xampp\htdocs/gracedata';
//=========================================================================
// 5. DATA FILES PERMISSIONS
//=========================================================================
$CFG->directorypermissions = 0777;
================================================
Bueno, una salida .. ortodoxa :
Por otro lado, crea el curso en blanco.. (solo el nombre del curso, y su nombre corto..) y luego con la opción restaurar,, eliges.. : sobre un curso que ya existe y con la opción de borrarlo previamente..) y ya debes de tener tu curso en el portal
Espero que sea de tu utilidad..
Atte.,
Franklin