It’s definitely something server specific, because the snippet has ~ 6700 downloads and not very many get this error..
Try changing lines 371 - 378 in maxigallery.php from:
move_uploaded_file( $_FILES['file'.$i]['tmp_name'] , $mg->path_to_gal.$name );
chmod($mg->path_to_gal.$name,0666);
$handleMessage = $mg->handleFile($name, $modx->db->getRecordCount($rsx));
if ($handleMessage != "") {
$manageOuterTplData['messages'] .= $handleMessage;
$upload_error = true;
}
to:
if(move_uploaded_file( $_FILES['file'.$i]['tmp_name'] , $mg->path_to_gal.$name )) {
chmod($mg->path_to_gal.$name,0666);
$handleMessage = $mg->handleFile($name, $modx->db->getRecordCount($rsx));
if ($handleMessage != "") {
$manageOuterTplData['messages'] .= $handleMessage;
$upload_error = true;
}
}
EDIT:
And try changing the chmod line from:
chmod($mg->path_to_gal.$name,0666);
to:
chmod($modx->config['base_path'].$mg->path_to_gal.$name,0666);
And you can also try to add the $modx->config[’base_path’] to the move_uploaded_file function call