ATutor

Learning Management Tools







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


Languageclassphp error after good install


  • 2005-02-17 13:04:19

    Languageclassphp error after good install

    operating system - Linux 2.4.28
    version of ATutor - 1.4.3
    versions of php - 4.3.10
    version of mysq l - 3.23.58
    webserver & version - Apache 1.3.33
    changes to default settings - None
    web browser being used - Mozilla Firefox and Windows Explorer both latest versions

    The Problem:
    I have re-installed ATutor twice and both times after a clean and good install without errors, I get the following message when I try to login for the first time:

    Warning: main(Language.class.php): failed to open stream: No such file or directory in /home/www/htfellow/welcome/ATutor/include/classes/Language/LanguageManager.class.php on line 15

    Fatal error: main(): Failed opening required 'Language.class.php' (include_path='') in /home/www/htfellow/welcome/ATutor/include/classes/Language/LanguageManager.class.php on line 15

    You can go to the website and see: www.htfellow.com/welcome/ATutor

    Thank you so much for your time and help!!

  • 2005-02-17 17:24:36

    correct url

    There does not seem to be anything at the URL provided. Try again. We'll take a look.

    In the meantime, see that register_globals is set to off in php.ini

  • 2005-02-17 18:55:51

    Still down

    I\'m sorry. I was working on the website. I have re0installed a third time and still gives error. Thanks for your time!

  • 2005-02-17 19:09:55

    php.ini

    Ok, I\'m an idiot. Where is this php.ini file? I have a shared unix hosting space that I am using. I have installed all sorts of other programs like postnuke, phpnuke, phpbb2, etc. without problems. Is this something that I will have to contact the hosting company about? Isn\'t there a way to override the php.ini file with my own settings without globally affecting others on the shared server? I am a novice, so thank you for your time Greg!

  • 2005-02-17 19:45:05

    add absolute path

    You won't be able to edit the php.ini file, but you should not need to.

    On the surface I can not see any reason for the problem. It may be something specific to the php installation on your server.

    Here's a few things to try:

    1. Move ATutor out of the moodle directory. There is a moodle session running that may be conflicting with the ATutor session.

    2. Enter the actual path to your content directory in include/config.inc.php. The current path has a symbolic link in it. As a value for AT_CONTENT_DIR use:

    /www/htfellow/welcome/ATutor/content

    (removing /home from the path)

    or

    3. Edit LanguageManager.class.php
    replace "require_once" on line 15 with "require"

    or

    4. Add the full path to Language.class.php in that line using require_once first, then require

    for example

    require_once('/www/htfellow/welcome/ATutor/include/classes/Language/Language.class.php');



    Let us know if any of these work.

  • 2005-02-18 00:31:34

    One problem leads to another

    Greg, I added the full path as you suggested in option #4 and it worked. I was finally able to get in. Then, when I went to create a course I got this message:

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/www/htfellow/welcome/ATutor/include/classes/ContentManager.class.php on line 147

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/htfellow/welcome/ATutor/include/classes/ContentManager.class.php:147) in /home/www/htfellow/welcome/ATutor/users/create_course.php on line 60

    This happens only when I select "create basic content..."
    If I choose empty, the error doesn't occur. Then, as I proceed to select and ADD content to the course, when I save it, I get the following:
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/www/htfellow/welcome/ATutor/include/classes/ContentManager.class.php on line 147

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/htfellow/welcome/ATutor/include/classes/ContentManager.class.php:147) in /home/www/htfellow/welcome/ATutor/include/lib/editor_tab_functions.inc.php on line 153

    Ok, I'm sorry for all these problems. I think ATutor is a wonderful LMS and hope I can get it to work! Thanks again everyone!

  • 2005-02-18 08:29:45

    login access

    We will need login access to your server to help further. Send login details to info//AT//atutor.ca, or through the Contact Us form

    http://atutor.ca/contact.php

  • 2005-10-07 16:02:58

    quick fix

    I did my first clean install of this software and had the same problem. I have a similar setup as jaydarji so here is my quick solution:

    open up ContentManager.class.php with a text editor go down to just before line 147. You will see this code:

    /* insert the related content */
    $sql = "SELECT LAST_INSERT_ID() AS insert_id";
    $result = mysql_query($sql, $this->db);
    $row = mysql_fetch_assoc($result);
    $cid = $row['insert_id'];

    change it to this code:

    /* insert the related content */
    //$sql = "SELECT LAST_INSERT_ID() AS insert_id";
    //$result = mysql_query($sql, $this->db);
    //$row = mysql_fetch_assoc($result);
    //$cid = $row['insert_id'];
    $cid = mysql_insert_id();

    For those of you not using mysql do not do this. The reason you (we) got the error is mysql does not like that query. Most likely to the fact that we are using old versions of mysql.

    Enjoy!