ATutor

Learning Management Tools







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


cannot create course 16 3b Cannot modify header information


  • 2008-01-02 04:54:39

    cannot create course 16 3b Cannot modify header information

    Hello
    I wish you a happy 2008!
    We are trying to work with 1.6.3b. Installation went ok (no warnings, no errors) but we are unable to create a new course.
    More specifically when facing http://myip/ATutor/users/create_course.php, the form is interrupted at the point of custom icon selection. The Apache error.log tells:

    [Wed Jan 02 12:04:08 2008] [error] [client 10.20.0.188] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/ATutor/include/classes/Savant2/Savant2.php:1358) in /var/www/html/ATutor/include/header.inc.php on line 17, referer: http://10.20.0.23/ATutor/users/browse.php
    [Wed Jan 02 12:04:08 2008] [error] [client 10.20.0.188] PHP Fatal error: Cannot redeclare get_num_new_messages() (previously declared in /var/www/html/ATutor/include/lib/menu_pages.php:258) in /var/www/html/ATutor/include/lib/menu_pages.php on line 270, referer: http://10.20.0.23/ATutor/users/browse.php


    Can you please help us?

    My Enviroment is:
    operating system - CentOS 5.1
    version of ATutor - 1.6-beta3
    versions of php - php-5.1.6-15.el5
    version of mysq l - mysql-5.0.22-2.2.el5_1.1
    webserver & version - httpd-2.2.3-11.el5.centos
    copies of error messages - see above
    changes to default settings - atutor content directory is /opt/ATutor/content
    web browser being used - firefox 2.0

  • 2008-01-02 04:57:01

    Re: cannot create course, 1.6 3b, Cannot modify header information

    Also, please see the attached screenshot of the resulting form (note the "pending" or)

    Thanks in advance for your input

  • 2008-01-02 10:50:24

    Re: cannot create course, 1.6 3b, Cannot modify header information

    Try creating a course without the icon. You can add it later through the course properties screen.

    thx for pointing out the problem.

  • 2008-01-02 11:50:34

    Rather clumsy way to solve this problem

    Dear Greg,
    I managed to bypass the problem by commenting out most code of include/html/course_icon.inc.php:

    <?php
    // check if GD is installed
    /*
    if (!extension_loaded('gd')) {
    require(AT_INCLUDE_PATH.'header.inc.php');
    $msg->printInfos('FEATURE_NOT_AVAILABLE');
    require(AT_INCLUDE_PATH.'footer.inc.php');
    exit;
    }

    $gd_info = gd_info();
    $supported_images = array();
    if ($gd_info['GIF Create Support']) {
    $supported_images[] = 'gif';
    }
    if ($gd_info['JPG Support']) {
    $supported_images[] = 'jpg';
    }
    if ($gd_info['PNG Support']) {
    $supported_images[] = 'png';
    }

    if (!$supported_images) {
    require(AT_INCLUDE_PATH.'header.inc.php');
    $msg->printInfos('FEATURE_NOT_AVAILABLE');
    require(AT_INCLUDE_PATH.'footer.inc.php');
    exit;
    }
    */
    ?>


    Then, I managed to get the page working ok and insert my courses.

    Hope this will get resolved in 1.6 (non-beta)

    Thank you