ATutor

Learning Management Tools







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


ATutor directory is blank


  • 2008-09-06 10:51:54

    ATutor directory is blank

    Any files under ATutor directory comes up empty with "Done" on the lower left side of the screen. It was working after install. Created instructor and student log in, and switched themes from default to classic.

    Thanks for your help. See below for index.php

    <?php
    /****************************************************************/
    /* ATutor */
    /****************************************************************/
    /* Copyright (c) 2002-2008 by Greg Gay & Joel Kronenberg */
    /* Adaptive Technology Resource Centre / University of Toronto */
    /* http://atutor.ca */
    /* */
    /* This program is free software. You can redistribute it and/or*/
    /* modify it under the terms of the GNU General Public License */
    /* as published by the Free Software Foundation. */
    /****************************************************************/
    // $Id: index.php 7461 2008-05-01 14:01:25Z cindy $

    define('AT_INCLUDE_PATH', 'include/');
    require(AT_INCLUDE_PATH . 'vitals.inc.php');

    if (isset($_GET['cid'])) {
    header('Location: '.$_base_href.'content.php?cid='.intval($_GET['cid']));
    exit;
    }

    require(AT_INCLUDE_PATH . 'lib/test_result_functions.inc.php');

    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
    $course_base_href = 'get.php/';
    } else {
    $course_base_href = 'content/' . $_SESSION['course_id'] . '/';
    }

    require(AT_INCLUDE_PATH . 'header.inc.php');

    /* the "home" links: */
    $home_links = get_home_navigation();
    $savant->assign('home_links', $home_links);


    /* the news announcements: */
    $news = array();
    $num_pages = 1;
    $page = isset($_GET['p']) ? intval($_GET['p']) : 1;
    if (!$page) {
    $page = 1;
    }

    $module =& $moduleFactory->getModule(AT_MODULE_DIR_STANDARD.'/announcements');
    if (!$module->isEnabled()) {
    $result = FALSE;
    $news = array();
    } else {
    $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."news WHERE course_id=$_SESSION[course_id]";
    $result = mysql_query($sql, $db);
    }

    if ($result && ($row = mysql_fetch_assoc($result))) {
    $num_results = $row['cnt'];
    $results_per_page = NUM_ANNOUNCEMENTS;
    $num_pages = ceil($num_results / $results_per_page);

    $count = (($page-1) * $results_per_page) + 1;

    $offset = ($page-1)*$results_per_page;

    $sql = "SELECT N.*, DATE_FORMAT(N.date, '%Y-%m-%d %H-%i:%s') AS date, first_name, last_name
    FROM ".TABLE_PREFIX."news N, ".TABLE_PREFIX."members M
    WHERE N.course_id=$_SESSION[course_id]
    AND N.member_id = M.member_id
    ORDER BY date DESC LIMIT $offset, $results_per_page";

    $result = mysql_query($sql, $db);
    while ($row = mysql_fetch_assoc($result)) {
    /* this can't be cached because it called _AT */

    $news[$row['news_id']] = array(
    'date' => AT_date( _AT('announcement_date_format'),
    $row['date'],
    AT_DATE_MYSQL_DATETIME),
    'author' => $row['first_name'] . ' ' . $row['last_name'],
    'title' => AT_print($row['title'], 'news.title'),
    'body' => format_content($row['body'], $row['formatting'], $glossary));

    }
    }

    $sql = "SELECT banner FROM ".TABLE_PREFIX."courses WHERE course_id=$_SESSION[course_id]";
    $result = mysql_query($sql, $db);
    if ($row = mysql_fetch_assoc($result)) {
    $savant->assign('banner', AT_print($row['banner'], 'courses.banner'));
    } else {
    $savant->assign('banner', '');
    }

    $savant->assign('announcements', $news);
    $savant->assign('num_pages', $num_pages);
    $savant->assign('current_page', $page);
    $savant->display('index.tmpl.php');

    require(AT_INCLUDE_PATH.'footer.inc.php');

    ?>

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on - Linux
    ATutor version -1.6
    Patch #s applied - recent install
    ATutor theme name - default
    PHP version -5.2.3
    MySQL version -5.0.41
    Webserver & version -
    Copies of error messages -
    Changes to default settings - changed from default classic to default
    Web browser being used - firefox and IE
    ...and anything else relevant - Was working previously

  • 2008-09-06 11:21:03

    Re: ATutor directory is blank!

    Access your account's control panel and open the phpMyAdmin, or MySQL admin tool. Open the ATutor database and the "themes" table. Switch back to the default theme by setting its status to "2", and classic to "1".

    If you can't get things working, we take a closer look Monday.

  • 2008-09-06 12:00:20

    Re: ATutor directory is blank!

    Greg, under the phpMyAdmin - 2.10.0.2
    Theme style: Original
    Darkblue/orange
    Is this the one you mean?

    When I open the Themes Database.
    # Server version: 5.0.41-community-log
    # Protocol version: 10
    # Server: Localhost via UNIX socket
    # User: mvoberm_atutor@localhost
    # MySQL charset: UTF-8 Unicode (utf8)

    The last row:
    Status tinyint(3) UNSIGNED No 1
    (Status is checked and Default is "1")

    But I can't find the Classic theme to set classic to "1"?
    Am I in the right place?

    I looked under CHECK Table:
    Table Op Msg_type Msg_text
    mvoberm_atutor.AT_themes check status OK

    Is this helpful?
    Is there anything else I can check at this point?

    Thanks.

    Thanks.

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on -
    ATutor version -
    Patch #s applied -
    ATutor theme name -
    PHP version -
    MySQL version -
    Webserver & version -
    Copies of error messages -
    Changes to default settings -
    Web browser being used -
    ...and anything else relevant -

  • 2008-09-06 13:03:04

    Re: ATutor directory is blank!

    Browse through the records in the themes table using phpMyAdmin. You should see a theme called default. There will be a column called status with a value of 1. Change it to 2, after clicking the edit icon for that row, Change the status of the "classic" theme from 2 to 1.

    It should be fairly obvious when you are in the right place. I don't know what you're talking about above with CHECK table.

  • 2008-09-06 13:10:38

    Re: ATutor directory is blank!

    The login name for phpMyAdmin is mvoberm_atutor. The password is the same as your account password.

  • 2008-09-06 15:21:40

    Re: ATutor directory is blank!

    Ok, I found it and changed the default to 2. I could not find the Classic Theme so I could change it back to '1'.

    I got this message when it went back to the table:
    ---
    Table AT_themes has been altered.
    SQL query:
    ALTER TABLE `AT_themes` CHANGE `status` `status` TINYINT( 3 ) UNSIGNED NOT NULL

    DEFAULT '2'
    ---
    The Field choices are:
    title
    version
    dir_name
    last_updated
    extra_info
    status (unsigned)

    Under which field is Classic Theme listed under?