ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Certificates are not uploading


  • 2013-04-04 12:13:49

    Certificates are not uploading

    I have taken over support for ATutor. Currently, I cannot get the upload to the server.
    If I manually upload a certificate, it will print correctly, but if I upload the certificate using the add new certificate tab, the certificate is not written to the correct folder.
    How do I fix the problem?


    This is the line of code in the certify_certificate.php module that I think is causing the issue:
    if ($_FILES['certify_file']['size'] > 0 && $_FILES['certify_file']['error'] == 0) {
    if (move_uploaded_file($_FILES['certify_file']['tmp_name'], $templatefile)) {
    // File ok
    } else {
    unlink($templatefile);
    }
    }
    $templatepresent = file_exists($templatefile);


    The output from the following echo is: templatefile = /xxxxx/local/home/xxxxx/xxxxx.com/ATutor/content/certify/template_.pdf ....

    $templatefile = AT_CONTENT_DIR .'certify/template_'.$certify_id.'.pdf';
    $templatepresent = file_exists($templatefile);
    // echo "templatefile = ";
    // echo $templatefile;
    // echo " .... ";

    Statistics & Information
    ATutor Version:
    2.0.3(r11495 - 2011-09-13 13:27:29).
    PHP Version:
    5.2.17
    MySQL Version:
    5.1.68-community-log
    OS:
    Linux 2.6.18-348.3.1.el5xen

  • 2013-04-04 16:01:33

    Re: Certificates are not uploading

    We created a new version, with that bug and a few other fixed. You can replace the old version with the new one found on the modules page.

    http://atutor.ca/atutor/modules/index.php